com.intersys.objects
Class CacheOutputStream
java.lang.Object
java.io.OutputStream
com.intersys.objects.CacheOutputStream
- All Implemented Interfaces:
- Serializable
- public class CacheOutputStream
- extends OutputStream
- implements Serializable
A CacheOutputStream
obtains input bytes from a Cache
Database. Usually it is mapped to some global in Cache. This is a
wrapper class around BinaryStream
. Note, that if
you use this wrapper class it is not reommended to use direct calls
to BinaryStream
.
- See Also:
- Class
BinaryStream
in Cache ,
GlobalBinaryStream
,
Serialized Form
Method Summary |
void |
close()
|
void |
flush()
|
void |
rewind()
Rewinds stream, so the next byte will overwrite the first byte,
stored in this Cache Stream (the first byte stored in global). |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
CacheOutputStream
public CacheOutputStream(BinaryStream stream)
throws CacheException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Throws:
IOException
write
public void write(int b)
throws IOException
- Throws:
IOException
flush
public void flush()
throws IOException
- Throws:
IOException
rewind
public void rewind()
throws CacheException
- Rewinds stream, so the next byte will overwrite the first byte,
stored in this Cache Stream (the first byte stored in global).
- Throws:
CacheException
close
public void close()
throws IOException
- Throws:
IOException