|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.python.core.io.IOBase
org.python.core.io.TextIOBase
org.python.core.io.BinaryIOWrapper
org.python.core.io.TextIOWrapper
public class TextIOWrapper
A Buffered text stream. This differs from py3k TextIOWrapper, which currently handles both text mode (py3k text mode is incompatible with Python 2.x's text mode) as well as universal mode.
UniversalIOWrapper| Field Summary |
|---|
| Fields inherited from class org.python.core.io.TextIOBase |
|---|
CHUNK_SIZE |
| Fields inherited from class org.python.core.io.IOBase |
|---|
DEFAULT_BUFFER_SIZE |
| Constructor Summary | |
|---|---|
TextIOWrapper(BufferedIOBase bufferedIO)
Contruct a TextIOWrapper wrapping the given BufferedIOBase. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.python.core.io.TextIOBase |
|---|
asInputStream, asOutputStream, close, closed, fileno, flush, getNewlines, isatty, readable, readinto, seek, tell, truncate, writable |
| Methods inherited from class org.python.core.io.IOBase |
|---|
checkClosed, checkReadable, checkWritable, seek |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextIOWrapper(BufferedIOBase bufferedIO)
bufferedIO - | Method Detail |
|---|
public String read(int size)
TextIOBase
read in class BinaryIOWrappersize - the number of bytes to read
public String readall()
TextIOBase
readall in class BinaryIOWrapperpublic String readline(int size)
TextIOBase
readline in class BinaryIOWrappersize - the number of bytes to read
public int write(String buf)
TextIOBase
write in class BinaryIOWrapperbuf - a String value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||