Top Description Fields Constructors Methods
org.python.core.io

public Class LineBufferedWriter

extends BufferedWriter
Class Inheritance
Imports
java.nio.BufferOverflowException, .ByteBuffer

Line buffering for a writable sequential RawIO object.
Author
Philip Jenvey

Field Summary

Inherited from org.python.core.io.BufferedWriter:
buffer

Constructor Summary

AccessConstructor and Description
public
LineBufferedWriter(RawIOBase rawIO)

Construct a LineBufferedWriter wrapping the given RawIOBase.

Method Summary

Modifier and TypeMethod and Description
public int
write(ByteBuffer
a ByteBuffer value
bytes
)

Overrides org.python.core.io.BufferedWriter.write.

Write the given ByteBuffer to the IO stream.

Inherited from org.python.core.io.BufferedWriter:
bufferedflushread1readablereadallreadintoseektell

Constructor Detail

LineBufferedWriterback to summary
public LineBufferedWriter(RawIOBase rawIO)

Construct a LineBufferedWriter wrapping the given RawIOBase.

Method Detail

writeback to summary
public int write(ByteBuffer bytes)

Overrides org.python.core.io.BufferedWriter.write.

Doc from org.python.core.io.BufferedIOBase.write.

Write the given ByteBuffer to the IO stream. Returns the number of bytes written, which may be less than bytes.remaining().

Parameters
bytes:ByteBuffer

a ByteBuffer value

Returns:int

the number of bytes written as an int

Annotations
@Override