PDF4Java Reference Documentation
com.o2sol.pdf4java.core.io Package / MemoryStream Class / write Method
An array of bytes. This method copies count bytes from buffer to the current stream.
The zero-based byte offset in buffer at which to begin copying bytes to the current stream.
The number of bytes to be written to the current stream.
Collapse All Expand All
In This Topic

write Method
In This Topic
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
Syntax

    public void write(
       byte[] buffer,
       int offset,
       int count
    )

#### Parameters

buffer
  An array of bytes. This method copies count bytes from buffer to the current stream.
offset
  The zero-based byte offset in buffer at which to begin copying bytes to the current stream.
count
  The number of bytes to be written to the current stream.

Exceptions

Exception | Description
--- | ---
com.o2sol.pdf4java.core.exceptions.PDFIOException | if the stream is closed or the stream length is too long.

See Also

#### Reference

MemoryStream Class
MemoryStream Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.