com.sun.xml.internal.org.jvnet.staxex.XMLStreamWriterEx Java Examples
The following examples show how to use
com.sun.xml.internal.org.jvnet.staxex.XMLStreamWriterEx.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XMLStreamReaderToXMLStreamWriter.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
protected void handleCharacters() throws XMLStreamException { CharSequence c = null; if (optimizeBase64Data) { c = ((XMLStreamReaderEx)in).getPCDATA(); } if ((c != null) && (c instanceof Base64Data)) { if (mtomAttachmentMarshaller != null) { Base64Data b64d = (Base64Data) c; ((XMLStreamWriterEx)out).writeBinary(b64d.getDataHandler()); } else { try { ((Base64Data)c).writeTo(out); } catch (IOException e) { throw new XMLStreamException(e); } } } else { for (int start=0,read=buf.length; read == buf.length; start+=buf.length) { read = in.getTextCharacters(start, buf, 0, buf.length); out.writeCharacters(buf, 0, read); } } }
Example #2
Source File: XMLStreamReaderToXMLStreamWriter.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
protected void handleCharacters() throws XMLStreamException { CharSequence c = null; if (optimizeBase64Data) { c = ((XMLStreamReaderEx)in).getPCDATA(); } if ((c != null) && (c instanceof Base64Data)) { if (mtomAttachmentMarshaller != null) { Base64Data b64d = (Base64Data) c; ((XMLStreamWriterEx)out).writeBinary(b64d.getDataHandler()); } else { try { ((Base64Data)c).writeTo(out); } catch (IOException e) { throw new XMLStreamException(e); } } } else { for (int start=0,read=buf.length; read == buf.length; start+=buf.length) { read = in.getTextCharacters(start, buf, 0, buf.length); out.writeCharacters(buf, 0, read); } } }
Example #3
Source File: XMLStreamReaderToXMLStreamWriter.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
protected void handleCharacters() throws XMLStreamException { CharSequence c = null; if (optimizeBase64Data) { c = ((XMLStreamReaderEx)in).getPCDATA(); } if ((c != null) && (c instanceof Base64Data)) { if (mtomAttachmentMarshaller != null) { Base64Data b64d = (Base64Data) c; ((XMLStreamWriterEx)out).writeBinary(b64d.getDataHandler()); } else { try { ((Base64Data)c).writeTo(out); } catch (IOException e) { throw new XMLStreamException(e); } } } else { for (int start=0,read=buf.length; read == buf.length; start+=buf.length) { read = in.getTextCharacters(start, buf, 0, buf.length); out.writeCharacters(buf, 0, read); } } }
Example #4
Source File: XMLStreamReaderToXMLStreamWriter.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
protected void handleCharacters() throws XMLStreamException { CharSequence c = null; if (optimizeBase64Data) { c = ((XMLStreamReaderEx)in).getPCDATA(); } if ((c != null) && (c instanceof Base64Data)) { if (mtomAttachmentMarshaller != null) { Base64Data b64d = (Base64Data) c; ((XMLStreamWriterEx)out).writeBinary(b64d.getDataHandler()); } else { try { ((Base64Data)c).writeTo(out); } catch (IOException e) { throw new XMLStreamException(e); } } } else { for (int start=0,read=buf.length; read == buf.length; start+=buf.length) { read = in.getTextCharacters(start, buf, 0, buf.length); out.writeCharacters(buf, 0, read); } } }
Example #5
Source File: XMLStreamReaderToXMLStreamWriter.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
protected void handleCharacters() throws XMLStreamException { CharSequence c = null; if (optimizeBase64Data) { c = ((XMLStreamReaderEx)in).getPCDATA(); } if ((c != null) && (c instanceof Base64Data)) { if (mtomAttachmentMarshaller != null) { Base64Data b64d = (Base64Data) c; ((XMLStreamWriterEx)out).writeBinary(b64d.getDataHandler()); } else { try { ((Base64Data)c).writeTo(out); } catch (IOException e) { throw new XMLStreamException(e); } } } else { for (int start=0,read=buf.length; read == buf.length; start+=buf.length) { read = in.getTextCharacters(start, buf, 0, buf.length); out.writeCharacters(buf, 0, read); } } }
Example #6
Source File: XMLStreamReaderToXMLStreamWriter.java From hottub with GNU General Public License v2.0 | 6 votes |
protected void handleCharacters() throws XMLStreamException { CharSequence c = null; if (optimizeBase64Data) { c = ((XMLStreamReaderEx)in).getPCDATA(); } if ((c != null) && (c instanceof Base64Data)) { if (mtomAttachmentMarshaller != null) { Base64Data b64d = (Base64Data) c; ((XMLStreamWriterEx)out).writeBinary(b64d.getDataHandler()); } else { try { ((Base64Data)c).writeTo(out); } catch (IOException e) { throw new XMLStreamException(e); } } } else { for (int start=0,read=buf.length; read == buf.length; start+=buf.length) { read = in.getTextCharacters(start, buf, 0, buf.length); out.writeCharacters(buf, 0, read); } } }
Example #7
Source File: XMLStreamReaderToXMLStreamWriter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
protected void handleCharacters() throws XMLStreamException { CharSequence c = null; if (optimizeBase64Data) { c = ((XMLStreamReaderEx)in).getPCDATA(); } if ((c != null) && (c instanceof Base64Data)) { if (mtomAttachmentMarshaller != null) { Base64Data b64d = (Base64Data) c; ((XMLStreamWriterEx)out).writeBinary(b64d.getDataHandler()); } else { try { ((Base64Data)c).writeTo(out); } catch (IOException e) { throw new XMLStreamException(e); } } } else { for (int start=0,read=buf.length; read == buf.length; start+=buf.length) { read = in.getTextCharacters(start, buf, 0, buf.length); out.writeCharacters(buf, 0, read); } } }
Example #8
Source File: XMLStreamReaderToXMLStreamWriter.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
protected void handleCharacters() throws XMLStreamException { CharSequence c = null; if (optimizeBase64Data) { c = ((XMLStreamReaderEx)in).getPCDATA(); } if ((c != null) && (c instanceof Base64Data)) { if (mtomAttachmentMarshaller != null) { Base64Data b64d = (Base64Data) c; ((XMLStreamWriterEx)out).writeBinary(b64d.getDataHandler()); } else { try { ((Base64Data)c).writeTo(out); } catch (IOException e) { throw new XMLStreamException(e); } } } else { for (int start=0,read=buf.length; read == buf.length; start+=buf.length) { read = in.getTextCharacters(start, buf, 0, buf.length); out.writeCharacters(buf, 0, read); } } }
Example #9
Source File: XMLStreamReaderToXMLStreamWriter.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
protected void handleCharacters() throws XMLStreamException { CharSequence c = null; if (optimizeBase64Data) { c = ((XMLStreamReaderEx)in).getPCDATA(); } if ((c != null) && (c instanceof Base64Data)) { if (mtomAttachmentMarshaller != null) { Base64Data b64d = (Base64Data) c; ((XMLStreamWriterEx)out).writeBinary(b64d.getDataHandler()); } else { try { ((Base64Data)c).writeTo(out); } catch (IOException e) { throw new XMLStreamException(e); } } } else { for (int start=0,read=buf.length; read == buf.length; start+=buf.length) { read = in.getTextCharacters(start, buf, 0, buf.length); out.writeCharacters(buf, 0, read); } } }
Example #10
Source File: StAXExStreamWriterOutput.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public StAXExStreamWriterOutput(XMLStreamWriterEx out) { super(out); this.out = out; }
Example #11
Source File: StAXExStreamWriterOutput.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public StAXExStreamWriterOutput(XMLStreamWriterEx out) { super(out); this.out = out; }
Example #12
Source File: StAXExStreamWriterOutput.java From hottub with GNU General Public License v2.0 | 4 votes |
public StAXExStreamWriterOutput(XMLStreamWriterEx out) { super(out); this.out = out; }
Example #13
Source File: StAXExStreamWriterOutput.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public StAXExStreamWriterOutput(XMLStreamWriterEx out) { super(out, NoEscapeHandler.theInstance); this.out = out; }
Example #14
Source File: StAXExStreamWriterOutput.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public StAXExStreamWriterOutput(XMLStreamWriterEx out) { super(out, NoEscapeHandler.theInstance); this.out = out; }
Example #15
Source File: StAXExStreamWriterOutput.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public StAXExStreamWriterOutput(XMLStreamWriterEx out) { super(out, NoEscapeHandler.theInstance); this.out = out; }
Example #16
Source File: StAXExStreamWriterOutput.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public StAXExStreamWriterOutput(XMLStreamWriterEx out) { super(out); this.out = out; }
Example #17
Source File: StAXExStreamWriterOutput.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public StAXExStreamWriterOutput(XMLStreamWriterEx out) { super(out, NoEscapeHandler.theInstance); this.out = out; }
Example #18
Source File: StreamWriterBufferProcessor.java From openjdk-jdk9 with GNU General Public License v2.0 | 3 votes |
/** * Writes the buffer as a fragment, meaning * the writer will not receive start/endDocument events. * Any inscope namespaces present will be written as namespace * delcarations on each top-level element. * <p> * If {@link XMLStreamBuffer} has a forest, this method will write all the forests. */ public void writeFragment(XMLStreamWriter writer) throws XMLStreamException { if (writer instanceof XMLStreamWriterEx) { writeFragmentEx((XMLStreamWriterEx)writer); } else { writeFragmentNoEx(writer); } }
Example #19
Source File: StreamWriterBufferProcessor.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 3 votes |
/** * Writes the buffer as a fragment, meaning * the writer will not receive start/endDocument events. * Any inscope namespaces present will be written as namespace * delcarations on each top-level element. * <p> * If {@link XMLStreamBuffer} has a forest, this method will write all the forests. */ public void writeFragment(XMLStreamWriter writer) throws XMLStreamException { if (writer instanceof XMLStreamWriterEx) { writeFragmentEx((XMLStreamWriterEx)writer); } else { writeFragmentNoEx(writer); } }
Example #20
Source File: StreamWriterBufferProcessor.java From hottub with GNU General Public License v2.0 | 3 votes |
/** * Writes the buffer as a fragment, meaning * the writer will not receive start/endDocument events. * Any inscope namespaces present will be written as namespace * delcarations on each top-level element. * <p> * If {@link XMLStreamBuffer} has a forest, this method will write all the forests. */ public void writeFragment(XMLStreamWriter writer) throws XMLStreamException { if (writer instanceof XMLStreamWriterEx) { writeFragmentEx((XMLStreamWriterEx)writer); } else { writeFragmentNoEx(writer); } }
Example #21
Source File: StreamWriterBufferProcessor.java From openjdk-jdk8u with GNU General Public License v2.0 | 3 votes |
/** * Writes the buffer as a fragment, meaning * the writer will not receive start/endDocument events. * Any inscope namespaces present will be written as namespace * delcarations on each top-level element. * <p> * If {@link XMLStreamBuffer} has a forest, this method will write all the forests. */ public void writeFragment(XMLStreamWriter writer) throws XMLStreamException { if (writer instanceof XMLStreamWriterEx) { writeFragmentEx((XMLStreamWriterEx)writer); } else { writeFragmentNoEx(writer); } }
Example #22
Source File: StreamWriterBufferProcessor.java From openjdk-8-source with GNU General Public License v2.0 | 3 votes |
/** * Writes the buffer as a fragment, meaning * the writer will not receive start/endDocument events. * Any inscope namespaces present will be written as namespace * delcarations on each top-level element. * <p> * If {@link XMLStreamBuffer} has a forest, this method will write all the forests. */ public void writeFragment(XMLStreamWriter writer) throws XMLStreamException { if (writer instanceof XMLStreamWriterEx) { writeFragmentEx((XMLStreamWriterEx)writer); } else { writeFragmentNoEx(writer); } }
Example #23
Source File: StreamWriterBufferProcessor.java From jdk8u60 with GNU General Public License v2.0 | 3 votes |
/** * Writes the buffer as a fragment, meaning * the writer will not receive start/endDocument events. * Any inscope namespaces present will be written as namespace * delcarations on each top-level element. * <p> * If {@link XMLStreamBuffer} has a forest, this method will write all the forests. */ public void writeFragment(XMLStreamWriter writer) throws XMLStreamException { if (writer instanceof XMLStreamWriterEx) { writeFragmentEx((XMLStreamWriterEx)writer); } else { writeFragmentNoEx(writer); } }
Example #24
Source File: StreamWriterBufferProcessor.java From openjdk-8 with GNU General Public License v2.0 | 3 votes |
/** * Writes the buffer as a fragment, meaning * the writer will not receive start/endDocument events. * Any inscope namespaces present will be written as namespace * delcarations on each top-level element. * <p> * If {@link XMLStreamBuffer} has a forest, this method will write all the forests. */ public void writeFragment(XMLStreamWriter writer) throws XMLStreamException { if (writer instanceof XMLStreamWriterEx) { writeFragmentEx((XMLStreamWriterEx)writer); } else { writeFragmentNoEx(writer); } }
Example #25
Source File: StreamWriterBufferProcessor.java From TencentKona-8 with GNU General Public License v2.0 | 3 votes |
/** * Writes the buffer as a fragment, meaning * the writer will not receive start/endDocument events. * Any inscope namespaces present will be written as namespace * delcarations on each top-level element. * <p> * If {@link XMLStreamBuffer} has a forest, this method will write all the forests. */ public void writeFragment(XMLStreamWriter writer) throws XMLStreamException { if (writer instanceof XMLStreamWriterEx) { writeFragmentEx((XMLStreamWriterEx)writer); } else { writeFragmentNoEx(writer); } }