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 void
close()
void
flush()
private void
maxReached(Snippet.PassthroughWriter mode)
void
write(char[] cbuf, int off, int len)
-
-
-
Method Detail
-
write
public void write(char[] cbuf, int off, int len) throws java.io.IOException
- Specified by:
write
in classjava.io.Writer
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classSnippet.PassthroughWriter
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classSnippet.PassthroughWriter
- Throws:
java.io.IOException
-
maxReached
private void maxReached(Snippet.PassthroughWriter mode) throws java.io.IOException
- Throws:
java.io.IOException
-
-