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

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

The Fast Infoset SAX serializer.

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

This utilizes the SAX API in a reverse manner to that of parsing. It is the responsibility of the client to call the appropriate event methods on the SAX handlers, and to ensure that such a sequence of methods calls results in the production well-formed fast infoset documents. The SAXDocumentSerializer performs no well-formed checks.

More than one fast infoset document may be encoded to the java.io.OutputStream .
Field Summary
protected  boolean _elementHasNamespaces     
protected  boolean _charactersAsCDATA     
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 SAXDocumentSerializer() 
Method from com.sun.xml.internal.fastinfoset.sax.SAXDocumentSerializer Summary:
alphabetCharacters,   booleans,   bytes,   characters,   comment,   countAttributes,   dateTimeCharacters,   doubles,   encodeAttribute,   encodeElement,   endCDATA,   endDTD,   endDocument,   endElement,   endEntity,   floats,   ignorableWhitespace,   ints,   longs,   numericCharacters,   object,   octets,   processingInstruction,   reset,   setDocumentLocator,   shorts,   skippedEntity,   startCDATA,   startDTD,   startDocument,   startElement,   startEntity,   startPrefixMapping,   uuids
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.sax.SAXDocumentSerializer Detail:
 public  void alphabetCharacters(String alphabet,
    char[] ch,
    int start,
    int length) throws SAXException 
 public final  void booleans(boolean[] b,
    int start,
    int length) throws SAXException 
 public final  void bytes(byte[] b,
    int start,
    int length) throws SAXException 
 public final  void characters(char[] ch,
    int start,
    int length) throws SAXException 
 public final  void comment(char[] ch,
    int start,
    int length) throws SAXException 
 public final int countAttributes(Attributes atts) 
 public  void dateTimeCharacters(char[] ch,
    int start,
    int length) throws SAXException 
 public final  void doubles(double[] d,
    int start,
    int length) throws SAXException 
 protected final boolean encodeAttribute(String namespaceURI,
    String qName,
    String localName) throws IOException 
 protected final  void encodeElement(String namespaceURI,
    String qName,
    String localName) throws IOException 
 public final  void endCDATA() throws SAXException 
 public final  void endDTD() throws SAXException 
 public final  void endDocument() throws SAXException 
 public final  void endElement(String namespaceURI,
    String localName,
    String qName) throws SAXException 
 public final  void endEntity(String name) throws SAXException 
 public final  void floats(float[] f,
    int start,
    int length) throws SAXException 
 public final  void ignorableWhitespace(char[] ch,
    int start,
    int length) throws SAXException 
 public final  void ints(int[] i,
    int start,
    int length) throws SAXException 
 public final  void longs(long[] l,
    int start,
    int length) throws SAXException 
 public  void numericCharacters(char[] ch,
    int start,
    int length) throws SAXException 
 public final  void object(String URI,
    int id,
    Object data) throws SAXException 
 public final  void octets(String URI,
    int id,
    byte[] b,
    int start,
    int length) throws SAXException 
 public final  void processingInstruction(String target,
    String data) throws SAXException 
 public  void reset() 
 public final  void setDocumentLocator(Locator locator) 
 public final  void shorts(short[] s,
    int start,
    int length) throws SAXException 
 public final  void skippedEntity(String name) throws SAXException 
 public final  void startCDATA() throws SAXException 
 public final  void startDTD(String name,
    String publicId,
    String systemId) throws SAXException 
 public final  void startDocument() throws SAXException 
 public final  void startElement(String namespaceURI,
    String localName,
    String qName,
    Attributes atts) throws SAXException 
 public final  void startEntity(String name) throws SAXException 
 public final  void startPrefixMapping(String prefix,
    String uri) throws SAXException 
 public  void uuids(long[] msblsb,
    int start,
    int length) throws SAXException