|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.python.core.PyObject org.python.modules.cStringIO.StringIO
The StringIO object
cStringIO.StringIO()
,
cStringIO.StringIO(String)
,
Serialized FormField Summary | |
boolean |
closed
|
String |
mode
|
String |
name
|
boolean |
softspace
|
Fields inherited from class org.python.core.PyObject |
__class__ |
Method Summary | |
void |
__setattr__(String name,
PyObject value)
A variant of the __setattr__ method which accepts a String as the key. |
void |
close()
Free the memory buffer. |
void |
flush()
Flush the internal buffer. |
String |
getvalue()
Retrieve the entire contents of the ``file'' at any time before the StringIO object's close() method is called. |
boolean |
isatty()
Return false. |
String |
read()
Read all data until EOF is reached. |
String |
read(int size)
Read at most size bytes from the file (less if the read hits EOF). |
String |
readline()
Read one entire line from the file. |
String |
readline(int length)
Read one entire line from the file. |
String |
readlineNoNl()
Read and return a line without the trailing newling. |
PyObject |
readlines()
Read until EOF using readline() and return a list containing the lines thus read. |
PyObject |
readlines(int sizehint)
Read until EOF using readline() and return a list containing the lines thus read. |
void |
seek(long pos)
Position the file pointer to the absolute position. |
void |
seek(long pos,
int mode)
Position the file pointer to the position in the . |
long |
tell()
Return the file position. |
void |
truncate()
truncate the file at the current position. |
void |
truncate(int pos)
truncate the file at the position pos. |
void |
write(String s)
Write a string to the file. |
void |
writeChar(char ch)
Write a char to the file. |
void |
writelines(String[] lines)
Write a list of strings to the file. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public transient boolean softspace
public transient String name
public transient String mode
public transient boolean closed
Method Detail |
public void __setattr__(String name, PyObject value)
PyObject
__setattr__
in class PyObject
name
- the name whose value will be set -
must be an interned string .value
- the value to set this name toPyObject.__setattr__(PyString, PyObject)
public void close()
public boolean isatty()
public void seek(long pos)
pos
- the position in the file.public void seek(long pos, int mode)
pos
- the position in the file.public long tell()
public String read()
public String read(int size)
size
- the number of characters to read.public String readline()
public String readline(int length)
public String readlineNoNl()
public PyObject readlines()
public PyObject readlines(int sizehint)
public void truncate()
public void truncate(int pos)
public void write(String s)
s
- The data to write.public void writeChar(char ch)
ch
- The data to write.public void writelines(String[] lines)
public void flush()
public String getvalue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |