| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static class | cStringIO.
The StringIO object |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static PyType | |
| public static PyType | |
| private static String[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static String | |
| public static cStringIO. | |
| public static cStringIO. | Returns: a new StringIO object.The initial value. buffer)Create a StringIO object, initialized by the value. |
| public static cStringIO. |
| __doc__ | back to summary |
|---|---|
| public static final String __doc__ | |
| __doc__StringIO | back to summary |
|---|---|
| public static final String __doc__StringIO | |
| InputType | back to summary |
|---|---|
| public static PyType InputType | |
| OutputType | back to summary |
|---|---|
| public static PyType OutputType | |
| strings | back to summary |
|---|---|
| private static String[] strings | |
| cStringIO | back to summary |
|---|---|
| public cStringIO() | |
| getString | back to summary |
|---|---|
| pack-priv static String getString(char ch) | |
| StringIO | back to summary |
|---|---|
| public static cStringIO. | |
| StringIO | back to summary |
|---|---|
| public static cStringIO. Create a StringIO object, initialized by the value.
| |
| StringIO | back to summary |
|---|---|
| public static cStringIO. Create a StringIO object, initialized by an array's byte stream. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| private |
| SEEK_CUR | back to summary |
|---|---|
| public static final int SEEK_CUR | |
| SEEK_END | back to summary |
|---|---|
| public static final int SEEK_END | |
| SEEK_SET | back to summary |
|---|---|
| public static final int SEEK_SET | |
| os | back to summary |
|---|---|
| private os() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private final StringBuilder | |
| public boolean | |
| public int | |
| public boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PyObject | __iternext__()
Implements abstract org. Return the next element of the sequence that this is an iterator for. |
| public void | __setattr__(String
the name whose value will be set - must be an interned string . name, PyObject the value to set this name to value)Overrides org. A variant of the __setattr__ method which accepts a String as the key. |
| private void | |
| private int | |
| public void | |
| public void | |
| public synchronized PyString | Returns: the contents of the StringIO.Retrieve the entire contents of the ``file'' at any time before the StringIO object's close() method is called. |
| public boolean | |
| public PyString | |
| public synchronized PyString | Returns: A string containing the data read.the number of characters to read. size)Read at most size bytes from the file (less if the read hits EOF). |
| public PyString | Returns: data from the file up to and including the newline.Read one entire line from the file. |
| public synchronized PyString | Returns: data from the file up to and including the newline.Read one entire line from the file. |
| public synchronized PyString | |
| public PyObject | Returns: a list of the lines.Read until EOF using readline() and return a list containing the lines thus read. |
| public PyObject | Returns: a list of the lines.Read until EOF using readline() and return a list containing the lines thus read. |
| public synchronized void | |
| public void | |
| public synchronized void | seek(long
the position in the file. pos, int 0=from the start, 1=relative, 2=from the end. mode)Position the file pointer to the position in the . |
| public synchronized int | |
| public synchronized void | |
| public synchronized void | |
| public void | |
| public synchronized void | |
| public synchronized void | |
| public void |
| __doc__close | back to summary |
|---|---|
| public static final String __doc__close | |
| __doc__flush | back to summary |
|---|---|
| public static final String __doc__flush | |
| __doc__getvalue | back to summary |
|---|---|
| public static final String __doc__getvalue | |
| __doc__isatty | back to summary |
|---|---|
| public static final String __doc__isatty | |
| __doc__read | back to summary |
|---|---|
| public static final String __doc__read | |
| __doc__readline | back to summary |
|---|---|
| public static final String __doc__readline | |
| __doc__readlines | back to summary |
|---|---|
| public static final String __doc__readlines | |
| __doc__reset | back to summary |
|---|---|
| public static final String __doc__reset | |
| __doc__seek | back to summary |
|---|---|
| public static final String __doc__seek | |
| __doc__tell | back to summary |
|---|---|
| public static final String __doc__tell | |
| __doc__truncate | back to summary |
|---|---|
| public static final String __doc__truncate | |
| __doc__write | back to summary |
|---|---|
| public static final String __doc__write | |
| __doc__writelines | back to summary |
|---|---|
| public static final String __doc__writelines | |
| buf | back to summary |
|---|---|
| private final StringBuilder buf | |
| closed | back to summary |
|---|---|
| public boolean closed | |
| pos | back to summary |
|---|---|
| public int pos | |
| softspace | back to summary |
|---|---|
| public boolean softspace | |
| StringIO | back to summary |
|---|---|
| public StringIO() | |
| StringIO | back to summary |
|---|---|
| public StringIO(CharSequence buffer) | |
| StringIO | back to summary |
|---|---|
| public StringIO(PyArray array) | |
| __iternext__ | back to summary |
|---|---|
| public PyObject __iternext__() Implements abstract org. Doc from org. Return the next element of the sequence that this is an iterator for. Returns null when the end of the sequence is reached.
| |
| __setattr__ | back to summary |
|---|---|
| public void __setattr__(String name, PyObject value) Overrides org. Doc from org. A variant of the __setattr__ method which accepts a String as the key. This String must be interned.
| |
| _complain_ifclosed | back to summary |
|---|---|
| private void _complain_ifclosed() | |
| _convert_to_int | back to summary |
|---|---|
| private int _convert_to_int(long val) | |
| close | back to summary |
|---|---|
| public void close() Free the memory buffer. | |
| flush | back to summary |
|---|---|
| public void flush() Flush the internal buffer. Does nothing. | |
| getvalue | back to summary |
|---|---|
| public synchronized PyString getvalue() Retrieve the entire contents of the ``file'' at any time before the StringIO object's close() method is called.
| |
| isatty | back to summary |
|---|---|
| public boolean isatty() Return false.
| |
| read | back to summary |
|---|---|
| public PyString read() Read all data until EOF is reached. An empty string is returned when EOF is encountered immediately.
| |
| read | back to summary |
|---|---|
| public synchronized PyString read(long size) Read at most size bytes from the file (less if the read hits EOF). If the size argument is negative, read all data until EOF is reached. An empty string is returned when EOF is encountered immediately.
| |
| readline | back to summary |
|---|---|
| public PyString readline() Read one entire line from the file. A trailing newline character is kept in the string (but may be absent when a file ends with an incomplete line). An empty string is returned when EOF is hit immediately.
| |
| readline | back to summary |
|---|---|
| public synchronized PyString readline(long size) Read one entire line from the file. A trailing newline character is kept in the string (but may be absent when a file ends with an incomplete line). If the size argument is non-negative, it is a maximum byte count (including the trailing newline) and an incomplete line may be returned.
| |
| readlineNoNl | back to summary |
|---|---|
| public synchronized PyString readlineNoNl() Read and return a line without the trailing newline. Usind by cPickle as an optimization. | |
| readlines | back to summary |
|---|---|
| public PyObject readlines() Read until EOF using readline() and return a list containing the lines thus read.
| |
| readlines | back to summary |
|---|---|
| public PyObject readlines(long sizehint) Read until EOF using readline() and return a list containing the lines thus read.
| |
| reset | back to summary |
|---|---|
| public synchronized void reset() Reset the file position to the beginning of the file. | |
| seek | back to summary |
|---|---|
| public void seek(long pos) Position the file pointer to the absolute position.
| |
| seek | back to summary |
|---|---|
| public synchronized void seek(long pos, int mode) Position the file pointer to the position in the .
| |
| tell | back to summary |
|---|---|
| public synchronized int tell() Return the file position.
| |
| truncate | back to summary |
|---|---|
| public synchronized void truncate() truncate the file at the current position. | |
| truncate | back to summary |
|---|---|
| public synchronized void truncate(long pos) truncate the file at the position pos. | |
| write | back to summary |
|---|---|
| public void write(PyObject obj) Write a string to the file.
| |
| write | back to summary |
|---|---|
| public synchronized void write(String s) | |
| writeChar | back to summary |
|---|---|
| public synchronized void writeChar(char ch) Write a char to the file. Used by cPickle as an optimization.
| |
| writelines | back to summary |
|---|---|
| public void writelines(PyObject lines) Write a list of strings to the file. | |