Package org.apache.johnzon.core
Class Snippet.Buffer.SnippetWriter.Writing
- java.lang.Object
- 
- java.io.Writer
- 
- org.apache.johnzon.core.Snippet.PassthroughWriter
- 
- org.apache.johnzon.core.Snippet.Buffer.SnippetWriter.Writing
 
 
 
- 
- All Implemented Interfaces:
- Closeable,- Flushable,- Appendable,- AutoCloseable
 - Enclosing class:
- Snippet.Buffer.SnippetWriter
 
 class Snippet.Buffer.SnippetWriter.Writing extends Snippet.PassthroughWriter 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()private voidmaxReached(Snippet.PassthroughWriter mode)voidwrite(char[] cbuf, int off, int len)- 
Methods inherited from class org.apache.johnzon.core.Snippet.PassthroughWriterappend, append, append, write, write, write
 - 
Methods inherited from class java.io.WriternullWriter, write
 
- 
 
- 
- 
- 
Field Detail- 
maxprivate final int max 
 - 
countprivate int count 
 - 
writerprivate final Writer writer 
 
- 
 - 
Constructor Detail- 
Writingpublic Writing(int max, Writer writer)
 
- 
 - 
Method Detail- 
writepublic void write(char[] cbuf, int off, int len) throws IOException- Specified by:
- writein class- Writer
- Throws:
- IOException
 
 - 
flushpublic void flush() throws IOException- Specified by:
- flushin interface- Flushable
- Overrides:
- flushin class- Snippet.PassthroughWriter
- Throws:
- IOException
 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- Snippet.PassthroughWriter
- Throws:
- IOException
 
 - 
maxReachedprivate void maxReached(Snippet.PassthroughWriter mode) throws IOException - Throws:
- IOException
 
 
- 
 
-