public class TypedSAXBufferCreator extends com.sun.xml.stream.buffer.AbstractCreator implements EntityResolver, DTDHandler, ContentHandler, ErrorHandler, LexicalHandler
XMLStreamBuffer that that produces the XML infoset
using a XMLReader and converts text content and attribute values from
the lexical space to value space.| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Set<XSDataType>> |
_attributes
The map of attribute local names to sets of types.
|
protected Map<String,Set<XSDataType>> |
_elements
The map of element local names to sets of types.
|
protected String[] |
_namespaceAttributes |
protected int |
_namespaceAttributesPtr |
protected boolean |
_storeTextContent |
protected AccessibleStringBuilder |
_textContent |
protected Set<XSDataType> |
_textContentTypes |
_contentCharactersBuffer, _contentCharactersBufferPtr, _contentObjects, _contentObjectsPtr, _currentContentCharactersBufferFragment, _currentContentObjectFragment, _currentStructureFragment, _currentStructureStringFragment, _structure, _structurePtr, _structureStrings, _structureStringsPtr, CHAR_ARRAY_LENGTH_MEDIUM, CHAR_ARRAY_LENGTH_MEDIUM_SIZE, CHAR_ARRAY_LENGTH_SMALL, CHAR_ARRAY_LENGTH_SMALL_SIZE, CONTENT_TYPE_CHAR_ARRAY, CONTENT_TYPE_CHAR_ARRAY_COPY, CONTENT_TYPE_OBJECT, CONTENT_TYPE_STRING, FLAG_DOCUMENT_FRAGMENT, FLAG_PREFIX, FLAG_QUALIFIED_NAME, FLAG_URI, T_ATTRIBUTE, T_ATTRIBUTE_LN, T_ATTRIBUTE_LN_OBJECT, T_ATTRIBUTE_P_U_LN, T_ATTRIBUTE_P_U_LN_OBJECT, T_ATTRIBUTE_U_LN, T_ATTRIBUTE_U_LN_OBJECT, T_ATTRIBUTE_U_LN_QN, T_ATTRIBUTE_U_LN_QN_OBJECT, T_COMMENT, T_COMMENT_AS_CHAR_ARRAY, T_COMMENT_AS_CHAR_ARRAY_COPY, T_COMMENT_AS_CHAR_ARRAY_MEDIUM, T_COMMENT_AS_CHAR_ARRAY_SMALL, T_COMMENT_AS_STRING, T_DOCUMENT, T_DOCUMENT_FRAGMENT, T_ELEMENT, T_ELEMENT_LN, T_ELEMENT_P_U_LN, T_ELEMENT_U_LN, T_ELEMENT_U_LN_QN, T_END, T_END_OF_BUFFER, T_NAMESPACE_ATTRIBUTE, T_NAMESPACE_ATTRIBUTE_P, T_NAMESPACE_ATTRIBUTE_P_U, T_NAMESPACE_ATTRIBUTE_U, T_PROCESSING_INSTRUCTION, T_TEXT, T_TEXT_AS_CHAR_ARRAY, T_TEXT_AS_CHAR_ARRAY_COPY, T_TEXT_AS_CHAR_ARRAY_MEDIUM, T_TEXT_AS_CHAR_ARRAY_SMALL, T_TEXT_AS_OBJECT, T_TEXT_AS_STRING, T_UNEXPANDED_ENTITY_REFERENCE, TYPE_MASK, VALUE_TYPE_OBJECT, VALUE_TYPE_STRING| Constructor and Description |
|---|
TypedSAXBufferCreator(Map<String,Set<XSDataType>> elements,
Map<String,Set<XSDataType>> attributes) |
TypedSAXBufferCreator(Map<String,Set<XSDataType>> elements,
Map<String,Set<XSDataType>> attributes,
com.sun.xml.stream.buffer.MutableXMLStreamBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
comment(char[] ch,
int start,
int length) |
static com.sun.xml.stream.buffer.XMLStreamBuffer |
create(Map<String,Set<XSDataType>> elements,
Map<String,Set<XSDataType>> attributes,
InputStream in) |
com.sun.xml.stream.buffer.MutableXMLStreamBuffer |
create(XMLReader reader,
InputStream in) |
com.sun.xml.stream.buffer.MutableXMLStreamBuffer |
create(XMLReader reader,
InputStream in,
String systemId) |
static com.sun.xml.stream.buffer.XMLStreamBuffer |
createNewBufferFromXMLReader(Map<String,Set<XSDataType>> elements,
Map<String,Set<XSDataType>> attributes,
XMLReader reader,
InputStream in) |
static com.sun.xml.stream.buffer.XMLStreamBuffer |
createNewBufferFromXMLReader(Map<String,Set<XSDataType>> elements,
Map<String,Set<XSDataType>> attributes,
XMLReader reader,
InputStream in,
String systemId) |
void |
endCDATA() |
void |
endDocument() |
void |
endDTD() |
void |
endElement(String uri,
String localName,
String qName) |
void |
endEntity(String name) |
void |
endPrefixMapping(String prefix) |
void |
error(SAXParseException e) |
void |
fatalError(SAXParseException e) |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
notationDecl(String name,
String publicId,
String systemId) |
void |
processingInstruction(String target,
String data) |
void |
reset() |
InputSource |
resolveEntity(String publicId,
String systemId) |
void |
setDocumentLocator(Locator locator) |
void |
skippedEntity(String name) |
void |
startCDATA() |
void |
startDocument() |
void |
startDTD(String name,
String publicId,
String systemId) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
void |
startEntity(String name) |
void |
startPrefixMapping(String prefix,
String uri) |
void |
unparsedEntityDecl(String name,
String publicId,
String systemId,
String notationName) |
void |
warning(SAXParseException e) |
createBuffer, getXMLStreamBuffer, increaseTreeCount, peekAtContentObject, resizeContentCharacters, resizeContentObjects, resizeStructure, resizeStructureStrings, setBuffer, setHasInternedStrings, setXMLStreamBuffer, storeContentCharacters, storeContentCharactersCopy, storeContentObject, storeContentString, storeStructure, storeStructureStringprotected Map<String,Set<XSDataType>> _elements
protected Map<String,Set<XSDataType>> _attributes
protected String[] _namespaceAttributes
protected int _namespaceAttributesPtr
protected AccessibleStringBuilder _textContent
protected boolean _storeTextContent
protected Set<XSDataType> _textContentTypes
public TypedSAXBufferCreator(Map<String,Set<XSDataType>> elements, Map<String,Set<XSDataType>> attributes)
public TypedSAXBufferCreator(Map<String,Set<XSDataType>> elements, Map<String,Set<XSDataType>> attributes, com.sun.xml.stream.buffer.MutableXMLStreamBuffer buffer)
public static com.sun.xml.stream.buffer.XMLStreamBuffer create(Map<String,Set<XSDataType>> elements, Map<String,Set<XSDataType>> attributes, InputStream in) throws SAXException, IOException, ParserConfigurationException
public static com.sun.xml.stream.buffer.XMLStreamBuffer createNewBufferFromXMLReader(Map<String,Set<XSDataType>> elements, Map<String,Set<XSDataType>> attributes, XMLReader reader, InputStream in) throws SAXException, IOException, ParserConfigurationException
public static com.sun.xml.stream.buffer.XMLStreamBuffer createNewBufferFromXMLReader(Map<String,Set<XSDataType>> elements, Map<String,Set<XSDataType>> attributes, XMLReader reader, InputStream in, String systemId) throws SAXException, IOException, ParserConfigurationException
public com.sun.xml.stream.buffer.MutableXMLStreamBuffer create(XMLReader reader, InputStream in) throws IOException, SAXException
IOExceptionSAXExceptionpublic com.sun.xml.stream.buffer.MutableXMLStreamBuffer create(XMLReader reader, InputStream in, String systemId) throws IOException, SAXException
IOExceptionSAXExceptionpublic void reset()
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerSAXExceptionpublic InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
resolveEntity in interface EntityResolverIOExceptionSAXExceptionpublic void notationDecl(String name, String publicId, String systemId) throws SAXException
notationDecl in interface DTDHandlerSAXExceptionpublic void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException
unparsedEntityDecl in interface DTDHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionpublic void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD in interface LexicalHandlerSAXExceptionpublic void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXExceptionpublic void startEntity(String name) throws SAXException
startEntity in interface LexicalHandlerSAXExceptionpublic void endEntity(String name) throws SAXException
endEntity in interface LexicalHandlerSAXExceptionpublic void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXExceptionpublic void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXExceptionpublic void warning(SAXParseException e) throws SAXException
warning in interface ErrorHandlerSAXExceptionpublic void error(SAXParseException e) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException e) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionCopyright © 2016 Oracle Corpration. All rights reserved.