Class Latin1XmlWriter


  • public final class Latin1XmlWriter
    extends SingleByteXmlWriter
    This is the generic implementation of XmlWriter, used if the destination is byte-based OutputStream, and encoding is ISO-8859-1 (aka Latin1)
    • Field Detail

      • LAST_VALID_CHAR

        static final int LAST_VALID_CHAR
        Decode tables will have enough entries for the full 8-bit range
        See Also:
        Constant Field Values
    • Constructor Detail

      • Latin1XmlWriter

        public Latin1XmlWriter​(WriterConfig cfg,
                               java.io.OutputStream out)
    • Method Detail

      • getHighestEncodable

        public int getHighestEncodable()
        Description copied from class: XmlWriter
        Method called by error reporting code, to figure out if a given character is encodable (without using character entities) with the current encoding or not.
        Specified by:
        getHighestEncodable in class SingleByteXmlWriter
        Returns:
        Character code of the highest character that can be natively encoded.
      • writeRaw

        public void writeRaw​(char[] cbuf,
                             int offset,
                             int len)
                      throws java.io.IOException,
                             javax.xml.stream.XMLStreamException
        Description copied from class: ByteXmlWriter
        This method is heavily encoding-dependant, so it needs to be deferred to sub-classes
        Specified by:
        writeRaw in class SingleByteXmlWriter
        Throws:
        java.io.IOException
        javax.xml.stream.XMLStreamException
      • doConstructName

        protected WName doConstructName​(java.lang.String localName)
                                 throws javax.xml.stream.XMLStreamException
        Specified by:
        doConstructName in class ByteXmlWriter
        Throws:
        javax.xml.stream.XMLStreamException
      • doConstructName

        protected WName doConstructName​(java.lang.String prefix,
                                        java.lang.String localName)
                                 throws javax.xml.stream.XMLStreamException
        Specified by:
        doConstructName in class ByteXmlWriter
        Throws:
        javax.xml.stream.XMLStreamException