Output<java.lang.String>, java.io.Closeable, java.lang.AutoCloseableTextFileOutputpublic abstract class TextStreamOutput extends java.lang.Object implements Output<java.lang.String>
BufferedWriter| Modifier and Type | Field | Description |
|---|---|---|
protected java.io.BufferedWriter |
writer |
| Constructor | Description |
|---|---|
TextStreamOutput(java.io.OutputStream out) |
|
TextStreamOutput(java.io.OutputStream out,
int buffSize) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
boolean |
put(java.lang.String line) |
Write the data item
|
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
|
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.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException