Package org.jibx.runtime.impl

Examples of org.jibx.runtime.impl.UTF8StreamWriter


                // create a new writer instance
                if (charcode == null) {
                    charcode = DEFAULT_ENCODING;
                }
                if ("UTF-8".equalsIgnoreCase(charcode)) {
                    m_writer = new UTF8StreamWriter(uris);
                } else if ("ISO-8859-1".equalsIgnoreCase(charcode)) {
                    m_writer = new ISO88591StreamWriter(uris);
                } else {
                    throw new IllegalStateException("Unimplemented character encoding " + charcode);
                }
View Full Code Here


    
     * {@inheritDoc}
     */
  public IXMLWriter getNormalWriter(String[] uris) throws IOException {
      if (m_writer == null) {
          UTF8StreamWriter writer = new UTF8StreamWriter(uris);
            m_os = new ByteArrayOutputStream(BUFFER_SIZE);
            OutByteBuffer buff = new OutByteBuffer();
            buff.setOutput(m_os);
            writer.setBuffer(buff);
            initializeWriter(writer);
            m_writer = writer;
      }
        return m_writer;
  }
View Full Code Here

TOP

Related Classes of org.jibx.runtime.impl.UTF8StreamWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.