TextIOWrapper
public class BinaryIOWrapper extends TextIOBase
DEFAULT_BUFFER_SIZE
CHUNK_SIZE
Constructor | Description |
---|---|
BinaryIOWrapper(BufferedIOBase bufferedIO) |
Contruct a TextIOBase in binary mode, 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, seek
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asInputStream, asOutputStream, close, closed, fileno, flush, getNewlines, isatty, readable, readinto, seek, tell, truncate, writable
public BinaryIOWrapper(BufferedIOBase bufferedIO)
bufferedIO
- public java.lang.String read(int size)
TextIOBase
read
in class TextIOBase
size
- the number of bytes to readpublic java.lang.String readall()
TextIOBase
readall
in class TextIOBase
public java.lang.String readline(int size)
TextIOBase
readline
in class TextIOBase
size
- the number of bytes to readpublic int write(java.lang.String buf)
TextIOBase
write
in class TextIOBase
buf
- a String value