| java.lang.Object com.sun.xml.bind.v2.runtime.output.XmlOutputAbstractImpl com.sun.xml.bind.v2.runtime.output.UTF8XmlOutput
All known Subclasses: com.sun.xml.bind.v2.runtime.output.C14nXmlOutput, com.sun.xml.bind.v2.runtime.output.IndentingUTF8XmlOutput,
Method Summary | |
public void | attribute(Name name, String value) | public void | attribute(int prefix, String localName, String value) | public void | beginStartTag(int prefix, String localName) | public void | beginStartTag(Name name) | final protected void | closeStartTag() Writes '>' to close the start tag, if necessary. | public void | endDocument(boolean fragment) | public void | endStartTag() | public void | endTag(Name name) | public void | endTag(int prefix, String localName) | final protected void | flushBuffer() | public void | setHeader(String header) | public void | startDocument(XMLSerializer serializer, boolean fragment, int[] nsUriIndex2prefixIndex, NamespaceContextImpl nsContext) | public void | text(String value, boolean needSP) | public void | text(Pcdata value, boolean needSP) | final public void | text(int value) | public void | text(byte[] data, int dataLen) Writes the given byte[] as base64 encoded binary to the output. | static byte[] | toBytes(String s) | final public void | write(int i) Writes one byte directly into the buffer. | final protected void | write(byte[] b) | final protected void | write(byte[] b, int start, int length) | final protected void | writeNsDecl(int prefixIndex) Writes a single namespace declaration for the specified prefix. | protected void | writeNsDecls(int base) |
closeStartTagPending | protected boolean closeStartTagPending(Code) | | Set to true to indicate that we need to write '>'
to close a start tag. Deferring the write of this char
allows us to write "/>" for empty elements.
|
octetBuffer | final protected byte[] octetBuffer(Code) | | Buffer of octets for writing.
|
octetBufferIndex | protected int octetBufferIndex(Code) | | Index in buffer to write to.
|
UTF8XmlOutput | public UTF8XmlOutput(OutputStream out, Encoded[] localNames)(Code) | | Parameters: localNames - local names encoded in UTF-8. |
closeStartTag | final protected void closeStartTag() throws IOException(Code) | | Writes '>' to close the start tag, if necessary.
|
text | public void text(byte[] data, int dataLen) throws IOException(Code) | | Writes the given byte[] as base64 encoded binary to the output.
Being defined on this class allows this method to access the buffer directly,
which translates to a better performance.
|
write | final public void write(int i) throws IOException(Code) | | Writes one byte directly into the buffer.
This method can be used somewhat like the
text method,
but it doesn't perform character escaping.
|
write | final protected void write(byte[] b, int start, int length) throws IOException(Code) | | |
writeNsDecl | final protected void writeNsDecl(int prefixIndex) throws IOException(Code) | | Writes a single namespace declaration for the specified prefix.
|
Methods inherited from com.sun.xml.bind.v2.runtime.output.XmlOutputAbstractImpl | public void attribute(Name name, String value) throws IOException, XMLStreamException(Code)(Java Doc) abstract public void attribute(int prefix, String localName, String value) throws IOException, XMLStreamException(Code)(Java Doc) public void beginStartTag(Name name) throws IOException, XMLStreamException(Code)(Java Doc) abstract public void beginStartTag(int prefix, String localName) throws IOException, XMLStreamException(Code)(Java Doc) public void endDocument(boolean fragment) throws IOException, SAXException, XMLStreamException(Code)(Java Doc) abstract public void endStartTag() throws IOException, SAXException(Code)(Java Doc) public void endTag(Name name) throws IOException, SAXException, XMLStreamException(Code)(Java Doc) abstract public void endTag(int prefix, String localName) throws IOException, SAXException, XMLStreamException(Code)(Java Doc) public void startDocument(XMLSerializer serializer, boolean fragment, int[] nsUriIndex2prefixIndex, NamespaceContextImpl nsContext) throws IOException, SAXException, XMLStreamException(Code)(Java Doc)
|
|
|