bt.data.DataRange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bt-core Show documentation
Show all versions of bt-core Show documentation
BitTorrent Client Library (Core)
package bt.data;
import bt.data.range.Range;
/**
* Represents a range of binary data, abstracting the mapping of data onto the storage layer.
* Real data may span over several storage units or reside completely inside a single storage unit.
*
* @since 1.2
*/
public interface DataRange extends Range {
/**
* Traverse the storage units in this data range.
*
* @since 1.2
*/
void visitUnits(DataRangeVisitor visitor);
/**
* {@inheritDoc}
*
* @since 1.3
*/
DataRange getSubrange(long offset, long length);
/**
* {@inheritDoc}
*
* @since 1.3
*/
DataRange getSubrange(long offset);
}