|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface DataLocation
This interface represents an abstraction of a block of data, regardless of where it is stored.
| Field Summary | |
|---|---|
static int |
UNKNOWN_SIZE
Constant for unknown data location size. |
| Method Summary | |
|---|---|
DataLocation |
copy()
Make a shallow copy of this data location. |
InputStream |
getInputStream()
Get an input stream for this location. |
OutputStream |
getOutputStream()
Get an output stream for this location. |
int |
getSize()
Get the size of the data referenced by this data location. |
int |
transferFrom(InputSource source,
boolean blocking)
Transfer the content of this data location from the specified input source. |
int |
transferTo(OutputDestination dest,
boolean blocking)
Transfer the content of this data location to the specified output destination. |
| Field Detail |
|---|
static final int UNKNOWN_SIZE
| Method Detail |
|---|
int getSize()
int transferFrom(InputSource source,
boolean blocking)
throws Exception
source - - the input source to transfer to.blocking - - if true, the method will block until the entire content has been transferred.
Exception - if an IO error occurs.
int transferTo(OutputDestination dest,
boolean blocking)
throws Exception
dest - - the output destination to transfer to.blocking - - if true, the method will block until the entire content has been transferred.
Exception - if an IO error occurs.
InputStream getInputStream()
throws Exception
InputStream instance.
Exception - if an I/O error occurs.
OutputStream getOutputStream()
throws Exception
OutputStream instance.
Exception - if an I/O error occurs.DataLocation copy()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||