Class ISOLatin1XmlWriter


  • public final class ISOLatin1XmlWriter
    extends EncodingXmlWriter
    Concrete implementation of EncodingXmlWriter used when output is to be encoded using ISO-8859-1, aka ISO-Latin1 encoding.

    Regarding surrogate pair handling: most of the checks are in the base class, and here we only need to worry about writeRaw methods.

    • Constructor Detail

      • ISOLatin1XmlWriter

        public ISOLatin1XmlWriter​(java.io.OutputStream out,
                                  WriterConfig cfg,
                                  boolean autoclose)
                           throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • writeRaw

        public void writeRaw​(char[] cbuf,
                             int offset,
                             int len)
                      throws java.io.IOException
        Specified by:
        writeRaw in class EncodingXmlWriter
        Throws:
        java.io.IOException
      • writeRaw

        public void writeRaw​(java.lang.String str,
                             int offset,
                             int len)
                      throws java.io.IOException
        Specified by:
        writeRaw in class EncodingXmlWriter
        Throws:
        java.io.IOException
      • writeAttrValue

        protected void writeAttrValue​(java.lang.String data)
                               throws java.io.IOException
        Specified by:
        writeAttrValue in class EncodingXmlWriter
        Throws:
        java.io.IOException
      • writeAttrValue

        protected void writeAttrValue​(char[] data,
                                      int offset,
                                      int len)
                               throws java.io.IOException
        Specified by:
        writeAttrValue in class EncodingXmlWriter
        Throws:
        java.io.IOException
      • writeCDataContent

        protected int writeCDataContent​(java.lang.String data)
                                 throws java.io.IOException
        Specified by:
        writeCDataContent in class EncodingXmlWriter
        Throws:
        java.io.IOException
      • writeCDataContent

        protected int writeCDataContent​(char[] cbuf,
                                        int start,
                                        int len)
                                 throws java.io.IOException
        Specified by:
        writeCDataContent in class EncodingXmlWriter
        Throws:
        java.io.IOException
      • writeCommentContent

        protected int writeCommentContent​(java.lang.String data)
                                   throws java.io.IOException
        Specified by:
        writeCommentContent in class EncodingXmlWriter
        Throws:
        java.io.IOException
      • writePIData

        protected int writePIData​(java.lang.String data)
                           throws java.io.IOException,
                                  javax.xml.stream.XMLStreamException
        Specified by:
        writePIData in class EncodingXmlWriter
        Throws:
        java.io.IOException
        javax.xml.stream.XMLStreamException
      • writeTextContent

        protected void writeTextContent​(java.lang.String data)
                                 throws java.io.IOException
        Specified by:
        writeTextContent in class EncodingXmlWriter
        Throws:
        java.io.IOException
      • writeTextContent

        protected void writeTextContent​(char[] cbuf,
                                        int offset,
                                        int len)
                                 throws java.io.IOException
        Specified by:
        writeTextContent in class EncodingXmlWriter
        Throws:
        java.io.IOException
      • handleInvalidLatinChar

        protected void handleInvalidLatinChar​(int c)
                                       throws java.io.IOException
        Throws:
        java.io.IOException