public abstract class TextStreamOutput extends java.lang.Object implements Output<java.lang.String>
BufferedWriter| Modifier and Type | Field and Description |
|---|---|
protected java.io.BufferedWriter |
writer |
| Constructor and Description |
|---|
TextStreamOutput(java.io.OutputStream out) |
TextStreamOutput(java.io.OutputStream out,
int buffSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
put(java.util.List<java.lang.String> lines)
Uses the thread local string builder to concatenate the lines into the single text block for better performance
|
int |
put(java.util.List<java.lang.String> lines,
int from,
int to)
Uses the thread local string builder to concatenate the lines into the single text block for better performance
|
boolean |
put(java.lang.String line)
Write the data item
|
public TextStreamOutput(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic TextStreamOutput(java.io.OutputStream out,
int buffSize)
throws java.io.IOException
java.io.IOExceptionpublic boolean put(java.lang.String line)
throws java.io.IOException
Outputpublic int put(java.util.List<java.lang.String> lines,
int from,
int to)
throws java.io.IOException
public int put(java.util.List<java.lang.String> lines)
throws java.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException