| java.lang.Object net.sourceforge.chaperon.process.LexicalProcessor
LexicalProcessor | public class LexicalProcessor implements ContentHandler,LexicalHandler(Code) | | The processor convert a stream text into lexical tokens, like a tokenizer.
author: Stephan Michels version: CVS $Id: LexicalProcessor.java,v 1.22 2004/01/04 16:54:34 benedikta Exp $ |
Method Summary | |
public void | characters(char[] ch, int start, int length) Receive notification of character data. | public void | comment(char[] ch, int start, int len) Report an XML comment anywhere in the document. | public void | endCDATA() Report the end of a CDATA section. | public void | endDTD() Report the end of DTD declarations. | public void | endDocument() Receive notification of the end of a document. | public void | endElement(String namespaceURI, String localName, String qName) Receive notification of the end of an element. | public void | endEntity(String name) Report the end of an entity. | public void | endPrefixMapping(String prefix) End the scope of a prefix-URI mapping. | public void | handleEndDocument() Receives the notification, that the text stream ended. | public void | ignorableWhitespace(char[] ch, int start, int length) Receive notification of ignorable whitespace in element content. | public void | processingInstruction(String target, String data) Receive notification of a processing instruction. | public void | setContentHandler(ContentHandler handler) Set the ContentHandler that will receive XML data. | public void | setDocumentLocator(Locator locator) Receive an object for locating the origin of SAX document events. | public void | setGrouping(boolean grouping) | public void | setLexicalAutomaton(LexicalAutomaton automaton) Set the lexical automaton, which the processor should use. | public void | setLexicalHandler(LexicalHandler handler) Set the LexicalHandler that will receive XML data. | public void | setLocalizable(boolean localizable) | public void | setLog(Log log) Set the log, which should be used. | public void | skippedEntity(String name) Receive notification of a skipped entity. | public void | startCDATA() Report the start of a CDATA section. | public void | startDTD(String name, String publicId, String systemId) Report the start of DTD declarations, if any. | public void | startDocument() Receive notification of the beginning of a document. | public void | startElement(String namespaceURI, String localName, String qName, Attributes atts) Receive notification of the beginning of an element. | public void | startEntity(String name) Report the beginning of an entity. | public void | startPrefixMapping(String prefix, String uri) Begin the scope of a prefix-URI Namespace mapping. |
LexicalProcessor | public LexicalProcessor()(Code) | | Create a new lexical processor.
|
LexicalProcessor | public LexicalProcessor(LexicalAutomaton automaton)(Code) | | Create a new lexical processor.
Parameters: automaton - Lexical automaton, which should be used. Parameters: handler - Handler, which should receives the events. |
characters | public void characters(char[] ch, int start, int length) throws SAXException(Code) | | Receive notification of character data.
|
comment | public void comment(char[] ch, int start, int len) throws SAXException(Code) | | Report an XML comment anywhere in the document.
|
endCDATA | public void endCDATA() throws SAXException(Code) | | Report the end of a CDATA section.
|
endDocument | public void endDocument() throws SAXException(Code) | | Receive notification of the end of a document.
|
endPrefixMapping | public void endPrefixMapping(String prefix) throws SAXException(Code) | | End the scope of a prefix-URI mapping.
|
handleEndDocument | public void handleEndDocument() throws SAXException(Code) | | Receives the notification, that the text stream ended.
|
ignorableWhitespace | public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException(Code) | | Receive notification of ignorable whitespace in element content.
|
processingInstruction | public void processingInstruction(String target, String data) throws SAXException(Code) | | Receive notification of a processing instruction.
|
setContentHandler | public void setContentHandler(ContentHandler handler)(Code) | | Set the ContentHandler that will receive XML data.
|
setDocumentLocator | public void setDocumentLocator(Locator locator)(Code) | | Receive an object for locating the origin of SAX document events.
|
setGrouping | public void setGrouping(boolean grouping)(Code) | | |
setLexicalAutomaton | public void setLexicalAutomaton(LexicalAutomaton automaton)(Code) | | Set the lexical automaton, which the processor should use.
Parameters: automaton - Lexical automaton, which should be used. |
setLexicalHandler | public void setLexicalHandler(LexicalHandler handler)(Code) | | Set the LexicalHandler that will receive XML data.
|
setLocalizable | public void setLocalizable(boolean localizable)(Code) | | |
setLog | public void setLog(Log log)(Code) | | Set the log, which should be used.
Parameters: log - Log. |
startCDATA | public void startCDATA() throws SAXException(Code) | | Report the start of a CDATA section.
|
startDocument | public void startDocument() throws SAXException(Code) | | Receive notification of the beginning of a document.
|
startPrefixMapping | public void startPrefixMapping(String prefix, String uri) throws SAXException(Code) | | Begin the scope of a prefix-URI Namespace mapping.
|
|
|