class Snippet.Buffer.SnippetWriter.Writing extends Snippet.PassthroughWriter
| Modifier and Type | Field and Description |
|---|---|
private int |
count |
private int |
max |
private java.io.Writer |
writer |
| Constructor and Description |
|---|
Writing(int max,
java.io.Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
private void |
maxReached(Snippet.PassthroughWriter mode) |
void |
write(char[] cbuf,
int off,
int len) |
private final int max
private int count
private final java.io.Writer writer
public void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class Snippet.PassthroughWriterjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class Snippet.PassthroughWriterjava.io.IOExceptionprivate void maxReached(Snippet.PassthroughWriter mode) throws java.io.IOException
java.io.IOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.