Package org.ofbiz.core.entity
Class EntitySaxReader
java.lang.Object
org.ofbiz.core.entity.EntitySaxReader
- All Implemented Interfaces:
ContentHandler,ErrorHandler
SAX XML Parser Content Handler for Entity Engine XML files
- Since:
- 2.0
- Version:
- $Revision: 1.1 $
- Author:
- David E. Jones
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected GenericValueprotected GenericDelegatorprotected Locatorstatic final Stringprotected longprotected intprotected intprotected intprotected List<GenericValue> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] values, int offset, int count) voidvoidendElement(String namespaceURI, String localName, String fullName) voidendPrefixMapping(String prefix) voiderror(SAXParseException exception) voidfatalError(SAXParseException exception) intintintvoidignorableWhitespace(char[] values, int offset, int count) longparse(InputStream is, String docDescription) longlongvoidprocessingInstruction(String target, String instruction) voidsetDocumentLocator(Locator locator) voidsetTransactionTimeout(int transactionTimeout) voidsetValuesPerMessage(int valuesPerMessage) voidsetValuesPerWrite(int valuesPerWrite) voidskippedEntity(String name) voidvoidstartElement(String namepsaceURI, String localName, String fullName, Attributes attributes) voidstartPrefixMapping(String prefix, String uri) voidwarning(SAXParseException exception) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
module
-
locator
-
delegator
-
currentValue
-
currentFieldName
-
currentFieldValue
-
numberRead
protected long numberRead -
valuesPerWrite
protected int valuesPerWrite -
valuesPerMessage
protected int valuesPerMessage -
transactionTimeout
protected int transactionTimeout -
valuesToWrite
-
-
Constructor Details
-
EntitySaxReader
protected EntitySaxReader() -
EntitySaxReader
-
-
Method Details
-
getValuesPerWrite
public int getValuesPerWrite() -
setValuesPerWrite
public void setValuesPerWrite(int valuesPerWrite) -
getValuesPerMessage
public int getValuesPerMessage() -
setValuesPerMessage
public void setValuesPerMessage(int valuesPerMessage) -
getTransactionTimeout
public int getTransactionTimeout() -
setTransactionTimeout
- Throws:
GenericTransactionException
-
parse
- Throws:
SAXExceptionIOException
-
parse
- Throws:
SAXExceptionIOException
-
parse
- Throws:
SAXExceptionIOException
-
characters
- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
startElement
public void startElement(String namepsaceURI, String localName, String fullName, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
error
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
warning
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-