public class UniversalIOWrapper extends TextIOBase
DEFAULT_BUFFER_SIZECHUNK_SIZE| Constructor | Description |
|---|---|
UniversalIOWrapper(BufferedIOBase bufferedIO) |
Contruct a UniversalIOWrapper wrapping the given
BufferedIOBase.
|
| Modifier and Type | Method | Description |
|---|---|---|
PyObject |
getNewlines() |
Return the known Newline types, as a PyObject, encountered
while reading this file.
|
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.
|
long |
seek(long pos,
int whence) |
Seek to byte offset pos relative to position indicated by whence: 0 Start of stream (the
default). pos should be >= 0; 1 Current position - whence may be negative; 2 End of stream -
whence usually negative.
|
long |
tell() |
Return the current stream position.
|
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, isatty, readable, readinto, truncate, writablepublic UniversalIOWrapper(BufferedIOBase bufferedIO)
bufferedIO - public java.lang.String read(int size)
TextIOBaseread in class TextIOBasesize - the number of bytes to readpublic java.lang.String readall()
TextIOBasereadall in class TextIOBasepublic java.lang.String readline(int size)
TextIOBasereadline in class TextIOBasesize - the number of bytes to readpublic int write(java.lang.String buf)
TextIOBasewrite in class TextIOBasebuf - a String valuepublic long seek(long pos,
int whence)
IOBaseseek in class TextIOBasepos - a long position valuewhence - an int whence valuepublic long tell()
IOBasetell in class TextIOBasepublic PyObject getNewlines()
TextIOBasegetNewlines in class TextIOBase