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

MemoryStream Class Members
In This Topic

The following tables list the members exposed by MemoryStream.

Public Constructors

| Name | Description
--- | --- | ---
| MemoryStream Constructor | Overloaded.

Top
Public Methods

| Name | Description
--- | --- | ---
| asInputStream | Returns this stream as a Java java.io.InputStream. (Inherited from com.o2sol.pdf4java.core.io.Stream)
| asOutputStream | Returns this stream as a Java java.io.OutputStream. (Inherited from com.o2sol.pdf4java.core.io.Stream)
| close | Closes the stream.
| copyFrom | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.core.io.Stream)
| flush | Clears all buffers for this stream and causes any buffered data to be written to the underlying device. (Inherited from com.o2sol.pdf4java.core.io.Stream)
| getBuffer |
| 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.
| toArray | Converts the stream to a byte array
| 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

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

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.