|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.simonstl.midp.xml.TAMHandlerImpl | +--com.simonstl.midp.xml.HandlerTest
HandlerTest is a very basic extension of TAMHandlerImpl
that reports events to System.out.
Constructor Summary | |
HandlerTest()
Creates a new instance of HandlerTest |
Method Summary | |
void |
characters(char[] buf,
int offset,
int length)
The characters() method behaves like its SAX2 equivalent. |
void |
comment(char[] buf,
int offset,
int length)
The comment() method behaves like its SAX2 ext LexicalHandler equivalent. |
void |
doctype(char[] buf,
int offset,
int length)
This event provides applications with the complete contents of the DOCTYPE declaration. |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String prefix)
endElement behaves like SAX2, except that it reports the prefix rather than the QName. |
void |
fatalError(TAMException e)
The fatalError() method behaves like its SAX2 equivalent except that it uses TAMExceptions instead of SAXExceptions. |
static void |
main(java.lang.String[] args)
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
The processingInstruction() method behaves like its SAX2 equivalent. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String prefix,
TamAttributes attributes)
startElement behaves like SAX2 except that it reports the prefix rather than the QName. |
void |
test()
|
void |
XMLDecl(java.lang.String version,
java.lang.String encoding,
java.lang.String standalone)
The XMLDecl method is new, and may be useful to applications who need to know if the encoding used by a given document is supported by their environment. |
Methods inherited from class com.simonstl.midp.xml.TAMHandlerImpl |
endCDATA, endDocument, error, skippedEntity, startCDATA, startDocument, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HandlerTest()
Method Detail |
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String prefix, TamAttributes attributes) throws TAMException
TamHandler
startElement
in class TAMHandlerImpl
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String prefix) throws TAMException
TamHandler
endElement
in class TAMHandlerImpl
public void characters(char[] buf, int offset, int length) throws TAMException
TamHandler
characters
in class TAMHandlerImpl
public void comment(char[] buf, int offset, int length) throws TAMException
TamHandler
comment
in class TAMHandlerImpl
public void doctype(char[] buf, int offset, int length) throws TAMException
TamHandler
doctype
in class TAMHandlerImpl
public void XMLDecl(java.lang.String version, java.lang.String encoding, java.lang.String standalone)
TamHandler
XMLDecl
in class TAMHandlerImpl
public void processingInstruction(java.lang.String target, java.lang.String data)
TamHandler
processingInstruction
in class TAMHandlerImpl
public void fatalError(TAMException e)
TamHandler
fatalError
in class TAMHandlerImpl
public void test() throws TAMException
public static void main(java.lang.String[] args) throws java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |