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.Writer
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class Snippet.PassthroughWriter
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class Snippet.PassthroughWriter
java.io.IOException
private void maxReached(Snippet.PassthroughWriter mode) throws java.io.IOException
java.io.IOException
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.