Class FastStringWriter

  • All Implemented Interfaces:
    , ,

    public final class FastStringWriter
    extends 

    Fast implementation of that avoids the need to use a thread-safe .

    Since:
    3.0.0
    Author:
    Daniel Fernández
    • Field Summary

      • Fields inherited from class java.io.

    • Method Summary

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

        , ,
      • Methods inherited from class java.lang.

        , , , , , , , , ,
    • Constructor Detail

      • FastStringWriter

        public FastStringWriter()
      • FastStringWriter

        public FastStringWriter​(int initialSize)
    • Method Detail

      • write

        public void write​(int c)
        Overrides:
         in class 
      • write

        public void write​( str)
        Overrides:
         in class 
      • write

        public void write​( str,
                          int off,
                          int len)
        Overrides:
         in class 
      • write

        public void write​(char[] cbuf)
        Overrides:
         in class 
      • write

        public void write​(char[] cbuf,
                          int off,
                          int len)
        Specified by:
         in class 
      • flush

        public void flush()
                   throws 
        Specified by:
         in interface 
        Specified by:
         in class 
        Throws:
      • close

        public void close()
                   throws 
        Specified by:
         in interface 
        Specified by:
         in class 
        Throws:
      • toString

        public  toString()
        Overrides:
         in class