public class TextIOWrapper extends BinaryIOWrapper
UniversalIOWrapper
bufferedIO, builder, CHUNK_SIZE, CR_BYTE, interimBuilder, readahead
DEFAULT_BUFFER_SIZE, LF_BYTE
Constructor and Description |
---|
TextIOWrapper(BufferedIOBase bufferedIO)
Contruct a TextIOWrapper wrapping the given BufferedIOBase.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
read(int size)
Read and return up to size bytes, contained in a String.
|
java.lang.String |
readall()
Read until EOF.
|
java.lang.String |
readline(int size)
Read until size, newline or EOF.
|
int |
write(java.lang.String buf)
Write the given String to the IO stream.
|
asInputStream, asOutputStream, atEOF, clearReadahead, close, closed, drainBuilder, fileno, flush, getNewlines, isatty, packReadahead, readable, readChunk, readChunk, readinto, seek, tell, truncate, writable
checkClosed, checkReadable, checkWritable, seek, unsupported
public TextIOWrapper(BufferedIOBase bufferedIO)
bufferedIO
- public java.lang.String read(int size)
TextIOBase
read
in class BinaryIOWrapper
size
- the number of bytes to readpublic java.lang.String readall()
TextIOBase
readall
in class BinaryIOWrapper
public java.lang.String readline(int size)
TextIOBase
readline
in class BinaryIOWrapper
size
- the number of bytes to readpublic int write(java.lang.String buf)
TextIOBase
write
in class BinaryIOWrapper
buf
- a String value