com.intersys.objects
Class CacheWriter

java.lang.Object
  extended byjava.io.Writer
      extended bycom.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

Constructor Summary
CacheWriter(CharacterStream stream)
           
 
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)
           
 
Methods inherited from class java.io.Writer
write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheWriter

public CacheWriter(CharacterStream stream)
            throws CacheException
Method Detail

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