Constructor and Description |
---|
ResourceRegion(Resource resource,
long position,
long count)
Create a new
ResourceRegion from a given Resource . |
Modifier and Type | Method and Description |
---|---|
long |
getCount()
Return the byte count of this region in the underlying
Resource . |
long |
getPosition()
Return the start position of this region in the underlying
Resource . |
Resource |
getResource()
Return the underlying
Resource for this ResourceRegion . |
public ResourceRegion(Resource resource, long position, long count)
ResourceRegion
from a given Resource
.
This region of a resource is represented by a start position
and a byte count
within the given Resource
.resource
- a Resourceposition
- the start position of the region in that resourcecount
- the byte count of the region in that resource