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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
private void
maxReached(Snippet.PassthroughWriter mode)
void
write(char[] cbuf, int off, int len)
-
Methods inherited from class org.apache.johnzon.core.Snippet.PassthroughWriter
append, append, append, write, write, write
-
Methods inherited from class java.io.Writer
nullWriter, write
-
-
-
-
Field Detail
-
max
private final int max
-
count
private int count
-
writer
private final Writer writer
-
-
Constructor Detail
-
Writing
public Writing(int max, Writer writer)
-
-
Method Detail
-
write
public void write(char[] cbuf, int off, int len) throws IOException
- Specified by:
write
in classWriter
- Throws:
IOException
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classSnippet.PassthroughWriter
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classSnippet.PassthroughWriter
- Throws:
IOException
-
maxReached
private void maxReached(Snippet.PassthroughWriter mode) throws IOException
- Throws:
IOException
-
-