|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.InputStream
org.jppf.utils.streams.MultipleBuffersInputStream
public class MultipleBuffersInputStream
An output stream implementation that minimizes memory usage.
| Constructor Summary | |
|---|---|
MultipleBuffersInputStream(JPPFBuffer... buffers)
Intialize this input stream with the specified buffers. |
|
MultipleBuffersInputStream(List<JPPFBuffer> buffers)
Intialize this input stream with the specified buffers. |
|
| Method Summary | |
|---|---|
JPPFBuffer |
getCurrentBuffer()
Get the JPPFBuffer currently being read from. |
int |
read()
Read a single byte from this input stream. |
int |
read(byte[] b)
Writes the specified byte array to this output stream. |
int |
read(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to this output stream. |
String |
toString()
|
| Methods inherited from class java.io.InputStream |
|---|
available, close, mark, markSupported, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultipleBuffersInputStream(JPPFBuffer... buffers)
buffers - an array of JPPFBuffer instances.public MultipleBuffersInputStream(List<JPPFBuffer> buffers)
buffers - an array of JPPFBuffer instances.| Method Detail |
|---|
public int read()
throws IOException
read in class InputStreamIOException - if any error occurs.OutputStream.write(int)
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamb - the data.off - the start offset in the data.len - the number of bytes to write.
IOException - if any error occurs.OutputStream.write(byte[], int, int)
public int read(byte[] b)
throws IOException
read in class InputStreamb - the data to write.
IOException - if any error occurs.OutputStream.write(byte[])public JPPFBuffer getCurrentBuffer()
JPPFBuffer instance.public String toString()
toString in class Object
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||