com.sun.media.imageio.stream
public class StreamSegment extends Object
long starting position and an int
length.
| Constructor Summary | |
|---|---|
| StreamSegment()
Constructs a StreamSegment.
| |
| StreamSegment(long startPos, int segmentLength)
Constructs a StreamSegment with a
given starting position and length.
| |
| Method Summary | |
|---|---|
| int | getSegmentLength()
Returns the length of the segment.
|
| long | getStartPos()
Returns the starting position of the segment.
|
| void | setSegmentLength(int segmentLength)
Sets the length of the segment.
|
| void | setStartPos(long startPos)
Sets the starting position of the segment.
|
StreamSegment.
The starting position and length are set to 0.StreamSegment with a
given starting position and length.
Parameters: startPos The initial position of the segment. segmentLength The length of the segment.
Returns: The length of the segment.
See Also: StreamSegment
Returns: The initial position of the segment.
See Also: StreamSegment
Parameters: segmentLength The length of the segment.
See Also: StreamSegment
Parameters: startPos The initial position of the segment.
See Also: StreamSegment