Module org.apache.johnzon.core
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:
java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
- Enclosing class:
- Snippet.Buffer.SnippetWriter
class Snippet.Buffer.SnippetWriter.Writing extends Snippet.PassthroughWriter
-
-
Constructor Summary
Constructors Constructor Description Writing(int max, java.io.Writer writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()private voidmaxReached(Snippet.PassthroughWriter mode)voidwrite(char[] cbuf, int off, int len)
-
-
-
Method Detail
-
write
public void write(char[] cbuf, int off, int len) throws java.io.IOException- Specified by:
writein classjava.io.Writer- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classSnippet.PassthroughWriter- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classSnippet.PassthroughWriter- Throws:
java.io.IOException
-
maxReached
private void maxReached(Snippet.PassthroughWriter mode) throws java.io.IOException
- Throws:
java.io.IOException
-
-