org.python.core.io
Class LineBufferedWriter
java.lang.Object
org.python.core.io.IOBase
org.python.core.io.BufferedIOBase
org.python.core.io.BufferedIOMixin
org.python.core.io.BufferedWriter
org.python.core.io.LineBufferedWriter
public class LineBufferedWriter
- extends BufferedWriter
Line buffering for a writable sequential RawIO object.
- Author:
- Philip Jenvey
Method Summary |
int |
write(ByteBuffer bytes)
Write the given ByteBuffer to the IO stream. |
LineBufferedWriter
public LineBufferedWriter(RawIOBase rawIO)
- Construct a LineBufferedWriter wrapping the given RawIOBase.
- Parameters:
rawIO
-
write
public int write(ByteBuffer bytes)
- Description copied from class:
BufferedIOBase
- Write the given ByteBuffer to the IO stream.
Returns the number of bytes written, which may be less than
bytes.remaining().
- Overrides:
write
in class BufferedWriter
- Parameters:
bytes
- a ByteBuffer value
- Returns:
- the number of bytes written as an int
Jython homepage