public class EntitySaxReader extends Object implements ContentHandler, ErrorHandler
| Modifier and Type | Field and Description |
|---|---|
protected String |
currentFieldName |
protected String |
currentFieldValue |
protected GenericValue |
currentValue |
protected GenericDelegator |
delegator |
protected Locator |
locator |
static String |
module |
protected long |
numberRead |
protected int |
transactionTimeout |
protected int |
valuesPerMessage |
protected int |
valuesPerWrite |
protected List<GenericValue> |
valuesToWrite |
| Modifier | Constructor and Description |
|---|---|
protected |
EntitySaxReader() |
|
EntitySaxReader(GenericDelegator delegator) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] values,
int offset,
int count) |
void |
endDocument() |
void |
endElement(String namespaceURI,
String localName,
String fullName) |
void |
endPrefixMapping(String prefix) |
void |
error(SAXParseException exception) |
void |
fatalError(SAXParseException exception) |
int |
getTransactionTimeout() |
int |
getValuesPerMessage() |
int |
getValuesPerWrite() |
void |
ignorableWhitespace(char[] values,
int offset,
int count) |
long |
parse(InputStream is,
String docDescription) |
long |
parse(String content) |
long |
parse(URL location) |
void |
processingInstruction(String target,
String instruction) |
void |
setDocumentLocator(Locator locator) |
void |
setTransactionTimeout(int transactionTimeout) |
void |
setValuesPerMessage(int valuesPerMessage) |
void |
setValuesPerWrite(int valuesPerWrite) |
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String namepsaceURI,
String localName,
String fullName,
Attributes attributes) |
void |
startPrefixMapping(String prefix,
String uri) |
void |
warning(SAXParseException exception) |
public static final String module
protected Locator locator
protected GenericDelegator delegator
protected GenericValue currentValue
protected String currentFieldName
protected String currentFieldValue
protected long numberRead
protected int valuesPerWrite
protected int valuesPerMessage
protected int transactionTimeout
protected List<GenericValue> valuesToWrite
protected EntitySaxReader()
public EntitySaxReader(GenericDelegator delegator)
public int getValuesPerWrite()
public void setValuesPerWrite(int valuesPerWrite)
public int getValuesPerMessage()
public void setValuesPerMessage(int valuesPerMessage)
public int getTransactionTimeout()
public void setTransactionTimeout(int transactionTimeout)
throws GenericTransactionException
GenericTransactionExceptionpublic long parse(String content) throws SAXException, IOException
SAXExceptionIOExceptionpublic long parse(URL location) throws SAXException, IOException
SAXExceptionIOExceptionpublic long parse(InputStream is, String docDescription) throws SAXException, IOException
SAXExceptionIOExceptionpublic void characters(char[] values,
int offset,
int count)
throws SAXException
characters in interface ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void endElement(String namespaceURI, String localName, String fullName) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void ignorableWhitespace(char[] values,
int offset,
int count)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionpublic void processingInstruction(String target, String instruction) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void startElement(String namepsaceURI, String localName, String fullName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void error(SAXParseException exception) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException exception) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionpublic void warning(SAXParseException exception) throws SAXException
warning in interface ErrorHandlerSAXExceptionCopyright © 2015 Atlassian. All rights reserved.