public class StreamSegment extends Object
long
starting position and an int
length.Constructor and Description |
---|
StreamSegment()
Constructs a
StreamSegment . |
StreamSegment(long startPos,
int segmentLength)
Constructs a
StreamSegment with a
given starting position and length. |
Modifier and Type | Method and Description |
---|---|
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.
|
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.startPos
- The initial position of the segment.segmentLength
- The length of the segment.public final long getStartPos()
setStartPos(long)
public final void setStartPos(long startPos)
startPos
- The initial position of the segment.getStartPos()
public final int getSegmentLength()
setSegmentLength(int)
public final void setSegmentLength(int segmentLength)
segmentLength
- The length of the segment.getSegmentLength()
Copyright © 2014 Open Microscopy Environment