PDF4Java Reference Documentation
com.o2sol.pdf4java.core.io Package / Stream Class
Collapse All Expand All Members Options: Show All Members Options: Filtered
Include Inherited Members
Include Protected Members
In This Topic

Stream Class Methods
In This Topic

For a list of all members of this type, see Stream members.

Public Methods

| Name | Description
--- | --- | ---
| asInputStream | Returns this stream as a Java java.io.InputStream.
| asOutputStream | Returns this stream as a Java java.io.OutputStream.
| close | Closes the stream.
| copyFrom | This method supports the internal library infrastructure and should not be used by external client code.
| flush | Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
| getLength | Gets the length in bytes of the stream.
| getPosition | Gets the position within the current stream.
| read | Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
| readByte | Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
| seek | Sets the position within the current stream.
| setLength | Sets the length of the current stream.
| setPosition | Sets the position within the current stream.
| write | Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
| writeByte | Writes a byte to the current position in the stream and advances the position within the stream by one byte.

Top
See Also

#### Reference

Stream Class
com.o2sol.pdf4java.core.io Package

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.