Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

non_com.media.jai.codec
Class StreamSegmentMapperImpl  view StreamSegmentMapperImpl download StreamSegmentMapperImpl.java

java.lang.Object
  extended bynon_com.media.jai.codec.StreamSegmentMapperImpl
All Implemented Interfaces:
StreamSegmentMapper

class StreamSegmentMapperImpl
extends java.lang.Object
implements StreamSegmentMapper

An implementation of the StreamSegmentMapper interface that requires an explicit list of the starting locations and lengths of the source segments.


Field Summary
private  int[] segmentLengths
           
private  long[] segmentPositions
           
 
Constructor Summary
StreamSegmentMapperImpl(long[] segmentPositions, int[] segmentLengths)
          Constructor for the StreamSegmentMapperImpl object
 
Method Summary
 StreamSegment getStreamSegment(long position, int length)
          Gets the StreamSegment attribute of the StreamSegmentMapperImpl object
 void getStreamSegment(long position, int length, StreamSegment seg)
          Gets the StreamSegment attribute of the StreamSegmentMapperImpl object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

segmentPositions

private long[] segmentPositions

segmentLengths

private int[] segmentLengths
Constructor Detail

StreamSegmentMapperImpl

public StreamSegmentMapperImpl(long[] segmentPositions,
                               int[] segmentLengths)
Constructor for the StreamSegmentMapperImpl object

Method Detail

getStreamSegment

public StreamSegment getStreamSegment(long position,
                                      int length)
Gets the StreamSegment attribute of the StreamSegmentMapperImpl object

Specified by:
getStreamSegment in interface StreamSegmentMapper

getStreamSegment

public void getStreamSegment(long position,
                             int length,
                             StreamSegment seg)
Gets the StreamSegment attribute of the StreamSegmentMapperImpl object

Specified by:
getStreamSegment in interface StreamSegmentMapper