PDF4Java Reference Documentation
com.o2sol.pdf4java.core.io Package / Stream Class / seek Method
A byte offset relative to the origin parameter.
A value of type SeekOrigin indicating the reference point used to obtain the new position.
Collapse All Expand All
In This Topic

seek Method
In This Topic
Sets the position within the current stream.
Syntax

    public long seek(
       long offset,
       SeekOrigin origin
    )

#### Parameters

offset
  A byte offset relative to the origin parameter.
origin
  A value of type SeekOrigin indicating the reference point used to obtain the new position.

#### Return Value

The new position within the current stream.
See Also

#### Reference

Stream Class
Stream Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.