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

Quick Search    Search Deep

org.ydp.jai
Class StreamSegment  view StreamSegment download StreamSegment.java

java.lang.Object
  extended byorg.ydp.jai.StreamSegment

public class StreamSegment
extends java.lang.Object

A utility class representing a segment within a stream as a long starting position and an int length.

This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.


Field Summary
private  int segmentLength
           
private  long startPos
           
 
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
 

Field Detail

startPos

private long startPos

segmentLength

private int segmentLength
Constructor Detail

StreamSegment

public StreamSegment()
Constructs a StreamSegment. The starting position and length are set to 0.


StreamSegment

public StreamSegment(long startPos,
                     int segmentLength)
Constructs a StreamSegment with a given starting position and length.

Method Detail

getStartPos

public final long getStartPos()
Returns the starting position of the segment.


setStartPos

public final void setStartPos(long startPos)
Sets the starting position of the segment.


getSegmentLength

public final int getSegmentLength()
Returns the length of the segment.


setSegmentLength

public final void setSegmentLength(int segmentLength)
Sets the length of the segment.