|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.DeferredInputStream
Utility for when you have an input stream which you may which to process out of order or repeatedly. Will keep the input stream in memory up to a certain size and them spool to disk.
Constructor Summary | |
DeferredInputStream(java.io.InputStream source,
int maxMemory)
Creates a DeferredInputStream. |
Method Summary | |
void |
cleanup()
Cleans up any temp files associated with the input stream. |
java.io.InputStream |
getInputStream()
Opens the input stream or returns the existing input stream if already open. |
java.lang.String |
toString()
Returns a string acceptible for debugging. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DeferredInputStream(java.io.InputStream source, int maxMemory) throws java.io.IOException, WavesetException
cleanup()
when all done in order to cleanup the temp file if one was created.
Method Detail |
public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
public void cleanup() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |