public interface FoundURICallback
Modifier and Type | Method and Description |
---|---|
void |
foundURI(FreenetURI uri)
Called when a Freenet URI is found.
|
void |
foundURI(FreenetURI uri,
boolean inline)
Called when a Freenet URI is found.
|
void |
onFinishedPage() |
void |
onText(java.lang.String text,
java.lang.String type,
java.net.URI baseURI)
Called when some plain text is processed.
|
void foundURI(FreenetURI uri)
uri
- The URI.
FIXME: Indicate the type of the link e.g. inline image, hyperlink, etc??void foundURI(FreenetURI uri, boolean inline)
uri
- The URI.
FIXME: Indicate the type of the link e.g. inline image, hyperlink, etc??void onText(java.lang.String text, java.lang.String type, java.net.URI baseURI)
text
- The text. Will already have been fed through whatever decoding
is necessary depending on the type of the source document e.g. HTMLDecoder.
Will need to be re-encoded before being sent to e.g. a browser.type
- Can be null, or may be for example the name of the HTML tag
directly surrounding the text. E.g. "title" lets you find page titles.baseURI
- The current base URI for this page. The base URI is not
necessarily the URI of the page. It's the URI against which URIs on the
page are resolved. It defaults to the URI of the page but can be overridden
by base href in html, for example.void onFinishedPage()