public class SocketCommandParser extends DefaultHandler implements EntityResolver, ContentHandler
| Modifier and Type | Field and Description |
|---|---|
protected CharArrayWriter |
contents
simple string processor
|
| Constructor and Description |
|---|
SocketCommandParser()
construct the factory with a xml parser
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Method handles #PCDATA
|
void |
endElement(String uri,
String localName,
String qName) |
String |
getCommandText() |
String |
getPassword() |
String |
getUserid() |
void |
parse(String inLine) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveEntityendDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMappingprotected CharArrayWriter contents
public void parse(String inLine) throws SAXException, IOException
SAXExceptionIOExceptionpublic void characters(char[] ch,
int start,
int length)
characters in interface ContentHandlercharacters in class DefaultHandlerch - arraystart - position in array where next has been placedlength - intpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic String getCommandText()
public String getPassword()
public String getUserid()
public void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionCopyright © 2017. All rights reserved.