|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.arch4j.xml.XMLHandlerAdapter
This class implements the XMLHandler interface and allows you to only override methods you care about.
Constructor Summary | |
XMLHandlerAdapter()
Creates a new instance of XMLHandlerAdapter |
Method Summary | |
void |
characters(char[] buffer,
int start,
int length)
this method is called when the parser encounters plain text outside of a bracketed tag. |
void |
endDocument()
called when parser reaches the end of the document |
void |
endElement(String name)
this method is called whenever the parser encounters the end of an element |
void |
error(String message,
String source,
int line,
int column)
this method is called by the parser if it encounters a recoverable error. |
void |
fatalError(String message,
String source,
int line,
int column)
this method is called by the parser if it encounters a non-recoverable error. |
void |
startDocument()
this method is called by the parser at the start of a document |
void |
startElement(String name,
Map attributes)
this method is called when the parser encounters a starting element tag. |
void |
warning(String message,
String source,
int line,
int column)
this method is called by the parser if it encounters a warning situation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLHandlerAdapter()
Method Detail |
public void characters(char[] buffer, int start, int length)
characters
in interface XMLHandler
buffer
- buffer containing plain text charactersstart
- start index of plain text characters in bufferlength
- number of characters in plain textpublic void endDocument()
endDocument
in interface XMLHandler
public void endElement(String name)
endElement
in interface XMLHandler
name
- the tag of the element that is endingpublic void error(String message, String source, int line, int column)
error
in interface XMLHandler
message
- error message generated by parsersource
- source of XML document - generally a file nameline
- line number of document on which error occurred.column
- column number at which error occurred.public void fatalError(String message, String source, int line, int column)
fatalError
in interface XMLHandler
message
- error message generated by parsersource
- source of XML document - generally a file nameline
- line number of document on which error occurred.column
- column number at which error occurred.public void startDocument()
startDocument
in interface XMLHandler
public void startElement(String name, Map attributes)
startElement
in interface XMLHandler
attributes
- a map of attribute names and values found in this elementpublic void warning(String message, String source, int line, int column)
warning
in interface XMLHandler
message
- error message generated by parsersource
- source of XML document - generally a file nameline
- line number of document on which error occurred.column
- column number at which error occurred.
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |