Class WriterHelper

    • Field Detail

      • EMPTY

        protected static final char[] EMPTY
      • ISO8859_1_ENTITIES

        protected static final char[][] ISO8859_1_ENTITIES
    • Constructor Detail

      • WriterHelper

        public WriterHelper​(Writer out,
                            Charset charset)
    • Method Detail

      • writeText

        public void writeText​(char[] text,
                              int start,
                              int length)
                       throws IOException
        Throws:
        IOException
      • writeEncodedValue

        protected abstract void writeEncodedValue​(char[] text,
                                                  int start,
                                                  int length,
                                                  boolean isAttribute)
                                           throws IOException
        Throws:
        IOException
      • writeDecRef

        protected void writeDecRef​(char ch)
                            throws IOException
        Writes a character as a decimal escape. Hex escapes are smaller than the decimal version, but Netscape didn't support hex escapes until 4.7.4.
        Throws:
        IOException
      • getOut

        protected final Writer getOut()
      • isUtf8

        protected final boolean isUtf8()