|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.rdf.arp.ARPHandlers
public class ARPHandlers
The interface to set the various handlers on ARP. User defined implementations of this interface are not supported. This is a class rather than an interface to have better backward compatibilitiy with earlier versions, however constructing instances of this class is deprecated.
| Method Summary | |
|---|---|
static ARPHandlers |
createNewHandlers()
Internal use only |
ErrorHandler |
getErrorHandler()
Gets the current error handler. |
ExtendedHandler |
getExtendedHandler()
Gets the current extended handler. |
NamespaceHandler |
getNamespaceHandler()
Gets the current namespace handler. |
StatementHandler |
getStatementHandler()
Gets the current statement handler. |
ErrorHandler |
setErrorHandler(ErrorHandler eh)
Sets the error handler, for both XML and RDF parse errors. |
ExtendedHandler |
setExtendedHandler(ExtendedHandler sh)
Sets the ExtendedHandler that provides the callback mechanism for bnodes as they leave scope, and for the start and end of rdf:RDF elements. |
NamespaceHandler |
setNamespaceHandler(NamespaceHandler sh)
Sets the NamespaceHandler that provides the callback mechanism for XML namespace declarations. |
StatementHandler |
setStatementHandler(StatementHandler sh)
Sets the StatementHandler that provides the callback mechanism for each triple in the file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ARPHandlers createNewHandlers()
public ExtendedHandler setExtendedHandler(ExtendedHandler sh)
See note about large files in ARP class documentation.
sh - The handler to use.
public NamespaceHandler setNamespaceHandler(NamespaceHandler sh)
sh - The handler to use.
public StatementHandler setStatementHandler(StatementHandler sh)
sh - The statement handler to use.
public ErrorHandler setErrorHandler(ErrorHandler eh)
void error( SAXParseException e ) throws SAXException {
if ( e instanceof com.hp.hpl.jena.rdf.arp.ParseException ) {
...
} else {
...
}
}
See the ARP documentation for ErrorHandler for details of the ErrorHandler semantics (in particular how to upgrade a warning to an error, and an error to a.errorError).
The Xerces/SAX documentation for ErrorHandler is available on the web.
eh - The error handler to use.
public ErrorHandler getErrorHandler()
public NamespaceHandler getNamespaceHandler()
public ExtendedHandler getExtendedHandler()
public StatementHandler getStatementHandler()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||