| |
|
| java.lang.Object com.quadcap.io.SaveRestoreStream
SaveRestoreStream | public class SaveRestoreStream (Code) | | This class implements a simple persistent object which can be written
as an OutputStream and read as an InputStream. Small objects can be
stored in memory, larger objects can be stored in temp files on disk.
author: Stan Bailes |
tmpFileCount | static int tmpFileCount(Code) | | |
SaveRestoreStream | public SaveRestoreStream()(Code) | | Construct a new SaveRestoreStream with the default max buffered
|
SaveRestoreStream | public SaveRestoreStream(int max)(Code) | | Construct a new SaveRestoreStream with the specified max buffered
size.
Parameters: max - the maximum amount of data to be buffered in memory. |
SaveRestoreStream | public SaveRestoreStream(InputStream in) throws IOException(Code) | | Construct a new SaveRestoreStream using the data in the specified
InputStream.
Parameters: in - the InputStream supplying the data for this stream |
close | public void close()(Code) | | |
doWrite | public void doWrite(int c) throws IOException(Code) | | Write a byte to the stream.
Parameters: c - the byte exception: IOException - may be thrown |
finalize | public void finalize()(Code) | | |
getInputStream | public InputStream getInputStream() throws IOException(Code) | | Return an input stream that the user can use to get his data back
the input stream |
getOutputStream | public OutputStream getOutputStream() throws IOException(Code) | | Return an output stream that the caller can use to save his object
the output stream |
length | public int length()(Code) | | |
reset | public void reset()(Code) | | |
toString | public String toString()(Code) | | Return the data as a string
|
|
|
|