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