| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private TextIOBase | |
| private int | |
| private String | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| public static final PyType |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | __del_builtin__()
Implements org.
|
| public PyObject | __iter__()
Overrides org. Return an iterator that is used to iterate the element of this sequence. |
| public PyObject | |
| public boolean | |
| pack-priv final void | |
| private void | |
| public void | |
| private void | |
| public PyObject | |
| public PyObject | |
| public PyString | |
| public PyList | |
| public void | |
| public PyLong | |
| public void | |
| public void | |
| public PyList | |
| private void | |
| private void | |
| private void | |
| private void | |
| public PyObject |
| buffer | back to summary |
|---|---|
| private TextIOBase buffer | |
| buffering | back to summary |
|---|---|
| private int buffering | |
| fileName | back to summary |
|---|---|
| private String fileName | |
| inIterMode | back to summary |
|---|---|
| private boolean inIterMode | |
| inReadMode | back to summary |
|---|---|
| private boolean inReadMode | |
| inUniversalNewlineMode | back to summary |
|---|---|
| private boolean inUniversalNewlineMode | |
| inWriteMode | back to summary |
|---|---|
| private boolean inWriteMode | |
| needReadBufferInit | back to summary |
|---|---|
| private boolean needReadBufferInit | |
| TYPE | back to summary |
|---|---|
| public static final PyType TYPE | |
| PyBZ2File | back to summary |
|---|---|
| public PyBZ2File() | |
| PyBZ2File | back to summary |
|---|---|
| public PyBZ2File(PyType subType) | |
| __del__ | back to summary |
|---|---|
| public void __del__() Implements org.
| |
| __del_builtin__ | back to summary |
|---|---|
| public void __del_builtin__() Implements org. Doc from org.
| |
| __iter__ | back to summary |
|---|---|
| public PyObject __iter__() Overrides org. Doc from org. Return an iterator that is used to iterate the element of this sequence. From version 2.2, this method is the primary protocol for looping over sequences. If a PyObject subclass should support iteration based in the __finditem__() method, it must supply an implementation of __iter__() like this:
public PyObject __iter__() {
return new PySequenceIter(this);
}
When iterating over a python sequence from java code, it should be done with code like
this:
for (PyObject item : seq.asIterable()) {
// Do something with item
}
| |
| BZ2File___enter__ | back to summary |
|---|---|
public PyObject BZ2File___enter__()
| |
| BZ2File___exit__ | back to summary |
|---|---|
public boolean BZ2File___exit__(PyObject exc_type, PyObject exc_value, PyObject traceback)
| |
| BZ2File___init__ | back to summary |
|---|---|
pack-priv final void BZ2File___init__(PyObject[] args, String[] kwds)
| |
| BZ2File___init__ | back to summary |
|---|---|
| private void BZ2File___init__(PyString inFileName, String mode, int buffering, int compresslevel) | |
| BZ2File_close | back to summary |
|---|---|
public void BZ2File_close()
| |
| BZ2File_flush | back to summary |
|---|---|
| private void BZ2File_flush() | |
| BZ2File_next | back to summary |
|---|---|
public PyObject BZ2File_next(PyObject[] args, String[] kwds)
| |
| BZ2File_read | back to summary |
|---|---|
public PyObject BZ2File_read(PyObject[] args, String[] kwds)
| |
| BZ2File_readline | back to summary |
|---|---|
public PyString BZ2File_readline(PyObject[] args, String[] kwds)
| |
| BZ2File_readlines | back to summary |
|---|---|
public PyList BZ2File_readlines(PyObject[] args, String[] kwds)
| |
| BZ2File_seek | back to summary |
|---|---|
public void BZ2File_seek(PyObject[] args, String[] kwds)
| |
| BZ2File_tell | back to summary |
|---|---|
public PyLong BZ2File_tell()
| |
| BZ2File_write | back to summary |
|---|---|
public void BZ2File_write(PyObject[] args, String[] kwds)
| |
| BZ2File_writelines | back to summary |
|---|---|
public void BZ2File_writelines(PyObject[] args, String[] kwds)
| |
| BZ2File_xreadlines | back to summary |
|---|---|
public PyList BZ2File_xreadlines()
| |
| checkFileWritable | back to summary |
|---|---|
| private void checkFileWritable() | |
| checkInIterMode | back to summary |
|---|---|
| private void checkInIterMode() | |
| checkReadBufferInit | back to summary |
|---|---|
| private void checkReadBufferInit() | |
| makeReadBuffer | back to summary |
|---|---|
| private void makeReadBuffer() | |
| PyBZ2File_newlines | back to summary |
|---|---|
public PyObject PyBZ2File_newlines()
| |
| Access | Constructor and Description |
|---|---|
| private |
| 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. |
| BZ2FileIterator | back to summary |
|---|---|
| private BZ2FileIterator() | |
| __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.
| |
| Modifier and Type | Field and Description |
|---|---|
| private long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | readinto(ByteBuffer
a ByteBuffer to read bytes into buf)Overrides org. Read up to buf.remaining() bytes into buf. |
| public long | seek(long
a long position value offset, int an int whence value whence)Overrides org. Seek to byte offset |
| public long |
| position | back to summary |
|---|---|
| private long position | |
| SkippableStreamIO | back to summary |
|---|---|
| public SkippableStreamIO(InputStream inputStream, boolean closefd) | |
| SkippableStreamIO | back to summary |
|---|---|
| public SkippableStreamIO(OutputStream outputStream, boolean closefd) | |
| readinto | back to summary |
|---|---|
| public int readinto(ByteBuffer buf) Overrides org. Doc from org. Read up to buf.remaining() bytes into buf. Returns number of bytes read (0 for EOF).
| |
| seek | back to summary | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public long seek(long offset, int whence) Overrides org. Doc from org. Seek to byte offset
a long position value seeked to | |||||||||||||
| tell | back to summary |
|---|---|
| public long tell() Overrides org. Doc from org. Return the current stream position.
| |