Package 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
Line buffering for a writable sequential RawIO object.
- Author:
- Philip Jenvey
-
Field Summary
Fields inherited from class org.python.core.io.IOBase
DEFAULT_BUFFER_SIZE
-
Constructor Summary
ConstructorDescriptionLineBufferedWriter
(RawIOBase rawIO) Construct a LineBufferedWriter wrapping the given RawIOBase. -
Method Summary
Modifier and TypeMethodDescriptionint
write
(ByteBuffer bytes) Write the given ByteBuffer to the IO stream.Methods inherited from class org.python.core.io.BufferedWriter
buffered, flush, read1, readable, readall, readinto, seek, tell
Methods inherited from class org.python.core.io.BufferedIOMixin
asInputStream, asOutputStream, close, closed, fileno, isatty, truncate, writable
Methods inherited from class org.python.core.io.BufferedIOBase
clear, peek, read
Methods inherited from class org.python.core.io.IOBase
checkClosed, checkReadable, checkWritable, seek
-
Constructor Details
-
LineBufferedWriter
Construct a LineBufferedWriter wrapping the given RawIOBase.- Parameters:
rawIO
-
-
-
Method Details
-
write
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 classBufferedWriter
- Parameters:
bytes
- a ByteBuffer value- Returns:
- the number of bytes written as an int
-