|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Input source capable of redirecting the data to an output stream. It means that instead of reading data into an array and then feeding it to the output stream, the data may be moved directly from the input to the output.
Method Summary | |
int |
redirect(java.io.OutputStream dest,
int len)
Reads and redirects up to the len bytes of data to a
specified output stream. |
int |
redirectAll(java.io.OutputStream dest)
Readirects all further data from this input into the specified output stream, until EOF. |
Methods inherited from interface edu.emory.mathcs.util.io.Input |
available, close, mark, markSupported, read, read, read, reset, skip |
Method Detail |
public int redirect(java.io.OutputStream dest, int len) throws java.io.IOException
len
bytes of data to a
specified output stream. Returns the number of bytes actually redirected.
dest
- the destination streamlen
- the maximum number of bytes to redirect
java.io.IOException
- if I/O error occurspublic int redirectAll(java.io.OutputStream dest) throws java.io.IOException
dest
- the destination stream
java.io.IOException
- if I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |