|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.media.imageio.stream.StreamSegment
A utility class representing a segment within a stream as a
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StreamSegment()
StreamSegment
.
The starting position and length are set to 0.
public StreamSegment(long startPos, int segmentLength)
StreamSegment
with a
given starting position and length.
Method Detail |
public final long getStartPos()
public final void setStartPos(long startPos)
public final int getSegmentLength()
public final void setSegmentLength(int segmentLength)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |