|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RandomAccessData
Interface that provides read-only random access to some underlying data. Implementations must allow concurrent reads in a thread-safe manner.
| Method Summary | |
|---|---|
InputStream |
getInputStream()
Returns an InputStream that can be used to read the underling data. |
long |
getSize()
Returns the size of the data. |
RandomAccessData |
getSubsection(long offset,
long length)
Returns a new RandomAccessData for a specific subsection of this data. |
| Method Detail |
|---|
InputStream getInputStream()
InputStream that can be used to read the underling data. The
caller is responsible close the underlying stream.
RandomAccessData getSubsection(long offset,
long length)
RandomAccessData for a specific subsection of this data.
offset - the offset of the subsectionlength - the length of the subsection
long getSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||