Save This Page
Home » openjdk-7 » com.sun.xml.internal » fastinfoset » stax » [javadoc | source]
com.sun.xml.internal.fastinfoset.stax
public class: StAXDocumentSerializer [javadoc | source]
java.lang.Object
   org.xml.sax.helpers.DefaultHandler
      com.sun.xml.internal.fastinfoset.Encoder
         com.sun.xml.internal.fastinfoset.stax.StAXDocumentSerializer

All Implemented Interfaces:
    XMLStreamWriter, FastInfosetSerializer, ContentHandler, DTDHandler, ErrorHandler, EntityResolver

The Fast Infoset StAX serializer.

Instantiate this serializer to serialize a fast infoset document in accordance with the StAX API.

More than one fast infoset document may be encoded to the java.io.OutputStream .
Nested Class Summary:
protected class  StAXDocumentSerializer.NamespaceContextImpl   
Field Summary
protected  StAXManager _manager     
protected  String _encoding     
protected  String _currentLocalName    Local name of current element. 
protected  String _currentUri    Namespace of current element. 
protected  String _currentPrefix    Prefix of current element. 
protected  boolean _inStartElement    This flag indicates when there is a pending start element event. 
protected  boolean _isEmptyElement    This flag indicates if the current element is empty. 
protected  String[] _attributesArray    List of attributes qnames and values defined in the current element. 
protected  int _attributesArrayIndex     
protected  NamespaceSupport _nsSupport    Mapping between uris and prefixes. 
protected  boolean[] _nsSupportContextStack     
protected  int _stackCount     
protected  NamespaceContext _nsContext     
protected  String[] _namespacesArray    List of namespaces defined in the current element. 
protected  int _namespacesArrayIndex     
Fields inherited from com.sun.xml.internal.fastinfoset.Encoder:
CHARACTER_ENCODING_SCHEME_SYSTEM_PROPERTY,  _characterEncodingSchemeSystemDefault,  _v,  _terminate,  _b,  _s,  _charBuffer,  _octetBuffer,  _octetBufferIndex,  _markIndex,  attributeValueSizeConstraint,  characterContentChunkSizeContraint
Constructor:
 public StAXDocumentSerializer() 
 public StAXDocumentSerializer(OutputStream outputStream) 
 public StAXDocumentSerializer(OutputStream outputStream,
    StAXManager manager) 
Method from com.sun.xml.internal.fastinfoset.stax.StAXDocumentSerializer Summary:
close,   encodeTerminationAndCurrentElement,   flush,   getNamespaceContext,   getPrefix,   getProperty,   reset,   setDefaultNamespace,   setEncoding,   setManager,   setNamespaceContext,   setPrefix,   writeAttribute,   writeAttribute,   writeAttribute,   writeCData,   writeCharacters,   writeCharacters,   writeComment,   writeDTD,   writeDefaultNamespace,   writeEmptyElement,   writeEmptyElement,   writeEmptyElement,   writeEndDocument,   writeEndElement,   writeEntityRef,   writeNamespace,   writeOctets,   writeProcessingInstruction,   writeProcessingInstruction,   writeStartDocument,   writeStartDocument,   writeStartDocument,   writeStartElement,   writeStartElement,   writeStartElement
Methods from com.sun.xml.internal.fastinfoset.Encoder:
encodeAIIBuiltInAlgorithmData,   encodeAIIObjectAlgorithmData,   encodeAIIOctetAlgorithmData,   encodeAlphabetCharacters,   encodeAttributeQualifiedNameOnSecondBit,   encodeCIIBuiltInAlgorithmData,   encodeCIIBuiltInAlgorithmDataAsCDATA,   encodeCIIObjectAlgorithmData,   encodeCIIOctetAlgorithmData,   encodeCharacters,   encodeCharactersNoClone,   encodeComment,   encodeCommentNoClone,   encodeDocumentTermination,   encodeElementQualifiedNameOnThirdBit,   encodeElementTermination,   encodeFourBitCharacters,   encodeHeader,   encodeIdentifyingNonEmptyStringOnFirstBit,   encodeInitialVocabulary,   encodeLiteralAttributeQualifiedNameOnSecondBit,   encodeLiteralElementQualifiedNameOnThirdBit,   encodeNamespaceAttribute,   encodeNonEmptyCharacterStringOnFifthBit,   encodeNonEmptyCharacterStringOnFifthBit,   encodeNonEmptyCharacterStringOnSeventhBit,   encodeNonEmptyFourBitCharacterStringOnSeventhBit,   encodeNonEmptyNBitCharacterStringOnSeventhBit,   encodeNonEmptyOctetStringOnSecondBit,   encodeNonEmptyUTF8StringAsOctetString,   encodeNonEmptyUTF8StringAsOctetString,   encodeNonIdentifyingStringOnFirstBit,   encodeNonIdentifyingStringOnFirstBit,   encodeNonIdentifyingStringOnFirstBit,   encodeNonIdentifyingStringOnFirstBit,   encodeNonIdentifyingStringOnThirdBit,   encodeNonIdentifyingStringOnThirdBit,   encodeNonIdentifyingStringOnThirdBit,   encodeNonZeroInteger,   encodeNonZeroIntegerOnFourthBit,   encodeNonZeroIntegerOnSecondBitFirstBitOne,   encodeNonZeroIntegerOnSecondBitFirstBitZero,   encodeNonZeroIntegerOnThirdBit,   encodeNonZeroOctetStringLength,   encodeNonZeroOctetStringLengthOnFifthBit,   encodeNonZeroOctetStringLengthOnSecondBit,   encodeNonZeroOctetStringLengthOnSenventhBit,   encodeProcessingInstruction,   encodeTermination,   encodeUTF8String,   encodeUTF8String,   encodeUtf16String,   encodeUtf16String,   getAttributeValueSizeLimit,   getCharacterContentChunkSizeLimit,   getCharacterEncodingScheme,   getIgnoreComments,   getIgnoreProcesingInstructions,   getIgnoreWhiteSpaceTextContent,   getPrefixFromQualifiedName,   getRegisteredEncodingAlgorithms,   isWhiteSpace,   isWhiteSpace,   mark,   reset,   resetMark,   setAttributeValueSizeLimit,   setCharacterContentChunkSizeLimit,   setCharacterEncodingScheme,   setExternalVocabulary,   setIgnoreComments,   setIgnoreProcesingInstructions,   setIgnoreWhiteSpaceTextContent,   setOutputStream,   setRegisteredEncodingAlgorithms,   setVocabulary,   write,   write,   write
Methods from org.xml.sax.helpers.DefaultHandler:
characters,   endDocument,   endElement,   endPrefixMapping,   error,   fatalError,   ignorableWhitespace,   notationDecl,   processingInstruction,   resolveEntity,   setDocumentLocator,   skippedEntity,   startDocument,   startElement,   startPrefixMapping,   unparsedEntityDecl,   warning
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.xml.internal.fastinfoset.stax.StAXDocumentSerializer Detail:
 public  void close() throws XMLStreamException 
 protected  void encodeTerminationAndCurrentElement(boolean terminateAfter) throws XMLStreamException 
 public  void flush() throws XMLStreamException 
 public NamespaceContext getNamespaceContext() 
 public String getPrefix(String uri) throws XMLStreamException 
 public Object getProperty(String name) throws IllegalArgumentException 
 public  void reset() 
 public  void setDefaultNamespace(String uri) throws XMLStreamException 
 public  void setEncoding(String encoding) 
 public  void setManager(StAXManager manager) 
 public  void setNamespaceContext(NamespaceContext context) throws XMLStreamException 
    Sets the current namespace context for prefix and uri bindings. This context becomes the root namespace context for writing and will replace the current root namespace context. Subsequent calls to setPrefix and setDefaultNamespace will bind namespaces using the context passed to the method as the root context for resolving namespaces. This method may only be called once at the start of the document. It does not cause the namespaces to be declared. If a namespace URI to prefix mapping is found in the namespace context it is treated as declared and the prefix may be used by the StreamWriter.
 public  void setPrefix(String prefix,
    String uri) throws XMLStreamException 
 public  void writeAttribute(String localName,
    String value) throws XMLStreamException 
 public  void writeAttribute(String namespaceURI,
    String localName,
    String value) throws XMLStreamException 
 public  void writeAttribute(String prefix,
    String namespaceURI,
    String localName,
    String value) throws XMLStreamException 
 public  void writeCData(String data) throws XMLStreamException 
 public  void writeCharacters(String text) throws XMLStreamException 
 public  void writeCharacters(char[] text,
    int start,
    int len) throws XMLStreamException 
 public  void writeComment(String data) throws XMLStreamException 
 public  void writeDTD(String dtd) throws XMLStreamException 
 public  void writeDefaultNamespace(String namespaceURI) throws XMLStreamException 
 public  void writeEmptyElement(String localName) throws XMLStreamException 
 public  void writeEmptyElement(String namespaceURI,
    String localName) throws XMLStreamException 
 public  void writeEmptyElement(String prefix,
    String localName,
    String namespaceURI) throws XMLStreamException 
 public  void writeEndDocument() throws XMLStreamException 
 public  void writeEndElement() throws XMLStreamException 
 public  void writeEntityRef(String name) throws XMLStreamException 
 public  void writeNamespace(String prefix,
    String namespaceURI) throws XMLStreamException 
 public  void writeOctets(byte[] b,
    int start,
    int len) throws XMLStreamException 
 public  void writeProcessingInstruction(String target) throws XMLStreamException 
 public  void writeProcessingInstruction(String target,
    String data) throws XMLStreamException 
 public  void writeStartDocument() throws XMLStreamException 
 public  void writeStartDocument(String version) throws XMLStreamException 
 public  void writeStartDocument(String encoding,
    String version) throws XMLStreamException 
 public  void writeStartElement(String localName) throws XMLStreamException 
 public  void writeStartElement(String namespaceURI,
    String localName) throws XMLStreamException 
 public  void writeStartElement(String prefix,
    String localName,
    String namespaceURI) throws XMLStreamException