class SectorStreamSegmentMapper extends Object implements StreamSegmentMapper
StreamSegmentMapper interface
 for segments of equal length.| Modifier and Type | Field and Description | 
|---|---|
| (package private) int | lastSegmentLength | 
| (package private) int | segmentLength | 
| (package private) long[] | segmentPositions | 
| (package private) int | totalLength | 
| Constructor and Description | 
|---|
| SectorStreamSegmentMapper(long[] segmentPositions,
                         int segmentLength,
                         int totalLength) | 
| Modifier and Type | Method and Description | 
|---|---|
| StreamSegment | getStreamSegment(long position,
                int length)Returns a  StreamSegmentobject indicating the
 location of the initial portion of a desired segment in the
 source stream. | 
| void | getStreamSegment(long position,
                int length,
                StreamSegment seg)Sets the values of a  StreamSegmentobject
 indicating the location of the initial portion of a desired
 segment in the source stream. | 
| (package private) long | length() | 
long[] segmentPositions
int segmentLength
int totalLength
int lastSegmentLength
public SectorStreamSegmentMapper(long[] segmentPositions,
                         int segmentLength,
                         int totalLength)
public StreamSegment getStreamSegment(long position, int length)
StreamSegmentMapperStreamSegment object indicating the
 location of the initial portion of a desired segment in the
 source stream.  The length of the returned
 StreamSegment may be smaller than the desired
 length.getStreamSegment in interface StreamSegmentMapperposition - The desired starting position in the
 SegmentedImageInputStream, as a long.length - The desired segment length.public void getStreamSegment(long position,
                    int length,
                    StreamSegment seg)
StreamSegmentMapperStreamSegment object
 indicating the location of the initial portion of a desired
 segment in the source stream.  The length of the returned
 StreamSegment may be smaller than the desired
 length.getStreamSegment in interface StreamSegmentMapperposition - The desired starting position in the
 SegmentedImageInputStream, as a long.length - The desired segment length.seg - A StreamSegment object to be overwritten.long length()
Copyright © 2016 Open Microscopy Environment