public class TextIOWrapper extends BinaryIOWrapper
UniversalIOWrapperDEFAULT_BUFFER_SIZECHUNK_SIZE| Constructor | Description |
|---|---|
TextIOWrapper(BufferedIOBase bufferedIO) |
Contruct a TextIOWrapper wrapping the given BufferedIOBase.
|
| Modifier and Type | Method | 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.
|
checkClosed, checkReadable, checkWritable, seekequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasInputStream, asOutputStream, close, closed, fileno, flush, getNewlines, isatty, readable, readinto, seek, tell, truncate, writablepublic TextIOWrapper(BufferedIOBase bufferedIO)
bufferedIO - public java.lang.String read(int size)
TextIOBaseread in class BinaryIOWrappersize - the number of bytes to readpublic java.lang.String readall()
TextIOBasereadall in class BinaryIOWrapperpublic java.lang.String readline(int size)
TextIOBasereadline in class BinaryIOWrappersize - the number of bytes to readpublic int write(java.lang.String buf)
TextIOBasewrite in class BinaryIOWrapperbuf - a String value