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, warning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolveEntity
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
protected CharArrayWriter contents
public void parse(String inLine) throws SAXException, IOException
SAXException
IOException
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
ch
- 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 ContentHandler
startElement
in class DefaultHandler
SAXException
public String getCommandText()
public String getPassword()
public String getUserid()
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
Copyright © 2018. All rights reserved.