|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.io.AbstractDataLocation
org.jppf.io.MultipleBuffersLocation
public class MultipleBuffersLocation
Data location backed by a list of JPPFBuffer.
| Field Summary |
|---|
| Fields inherited from class org.jppf.io.AbstractDataLocation |
|---|
size, transferring |
| Fields inherited from interface org.jppf.io.DataLocation |
|---|
UNKNOWN_SIZE |
| Constructor Summary | |
|---|---|
MultipleBuffersLocation(int size)
Initialize this location with the specified size. |
|
MultipleBuffersLocation(JPPFBuffer buffer)
Initialize this location from a single buffer. |
|
MultipleBuffersLocation(List<JPPFBuffer> list,
int size)
Initialize this location with the specified list of buffers and 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 |
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. |
| Methods inherited from class org.jppf.io.AbstractDataLocation |
|---|
getSize, setSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultipleBuffersLocation(int size)
size - the total size of the data.
public MultipleBuffersLocation(List<JPPFBuffer> list,
int size)
list - the list of buffers that contain the data.size - the total size of the data.public MultipleBuffersLocation(JPPFBuffer buffer)
buffer - the buffer that contains the data.| Method Detail |
|---|
public 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.
public 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.
public InputStream getInputStream()
throws Exception
InputStream instance.
Exception - if an I/O error occurs.
public OutputStream getOutputStream()
throws Exception
OutputStream instance.
Exception - if an I/O error occurs.public DataLocation copy()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||