|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.adobe.acrobat.bytearray.ContiguousByteRange
Class representing a start and an end of a continguous range of integers. Ordered, non-overlapping collections of these are used to represent ByteRanges.
| Constructor Summary |
ContiguousByteRange(int start,
int end) Create a new ContiguousByteRange spanning all the integers between start and end inclusive. |
| Method Summary | |
ContiguousByteRange |
decapitate(int byteIndex)
|
boolean |
equals(java.lang.Object o)
Compares two ContiguousByteRanges. |
int |
getEnd() Get the highest integer in this ContiguousByteRange. |
int |
getLength() Get the total number of integers contained in this ContiguousByteRange |
int |
getStart() Get the lowest integer in this ContiguousByteRange. |
ByteRange |
toByteRange()
Create a ByteRange containing exactly the integers contained in this ContiguousByteRange |
java.lang.String |
toString() Create a string representation of this ContiguousByteRange |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ContiguousByteRange(int start,
int end)
start - the first integer in this ContiguousByteRangeend - the last integer in this ContiguousByteRange| Method Detail |
public ByteRange toByteRange()
public ContiguousByteRange decapitate(int byteIndex)
public int getStart()
public int getEnd()
public int getLength()
public boolean equals(java.lang.Object o)
o - the other ContiguousByteRange being comparedpublic java.lang.String toString()
x-y, where x is the start
and y is the end of this ContiguousByteRange
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||