Class Snippet.Buffer.SnippetWriter.Writing

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int count  
      private int max  
      private java.io.Writer writer  
      • Fields inherited from class java.io.Writer

        lock
    • Constructor Summary

      Constructors 
      Constructor Description
      Writing​(int max, java.io.Writer writer)  
    • Field Detail

      • max

        private final int max
      • count

        private int count
      • writer

        private final java.io.Writer writer
    • Constructor Detail

      • Writing

        public Writing​(int max,
                       java.io.Writer writer)
    • Method Detail

      • write

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

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class Snippet.PassthroughWriter
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class Snippet.PassthroughWriter
        Throws:
        java.io.IOException
      • maxReached

        private void maxReached​(Snippet.PassthroughWriter mode)
                         throws java.io.IOException
        Throws:
        java.io.IOException