public class Extent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Extent |
ALL_CONTENT
A static instance representing an entire object's content.
|
| Constructor and Description |
|---|
Extent(long offset,
long size)
Creates a new extent
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares two extents.
|
java.lang.String |
getHeaderName() |
long |
getOffset()
Returns the starting offset of the extent
|
long |
getSize()
Returns the size of the extent.
|
java.lang.String |
toString() |
public static final Extent ALL_CONTENT
public Extent(long offset,
long size)
offset - the starting offset in the object in bytes,
starting with 0. Use -1 to represent the entire object.size - the number of bytes to transfer. Use -1 to represent
the entire object.public long getSize()
public long getOffset()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getHeaderName()