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