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