Class XmlWriterWrapper.TextWrapper

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable
    Enclosing class:
    XmlWriterWrapper

    private static class XmlWriterWrapper.TextWrapper
    extends XmlWriterWrapper
    This wrapper directs calls to writeCharacters methods. This means that text content escaping (and, possibly, validation) is done, using default or custom escaping code.
    • Field Summary

      • Fields inherited from class java.io.Writer

        lock
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TextWrapper​(XmlWriter writer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(char[] cbuf, int off, int len)  
      void write​(java.lang.String str)  
      void write​(java.lang.String str, int off, int len)  
      • Methods inherited from class java.io.Writer

        append, append, append, nullWriter
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TextWrapper

        protected TextWrapper​(XmlWriter writer)
    • Method Detail

      • write

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

        public void write​(java.lang.String str)
                   throws java.io.IOException
        Specified by:
        write in class XmlWriterWrapper
        Throws:
        java.io.IOException
      • write

        public void write​(java.lang.String str,
                          int off,
                          int len)
                   throws java.io.IOException
        Specified by:
        write in class XmlWriterWrapper
        Throws:
        java.io.IOException