com.alachisoft.ncache.web.caching
Class OutputCacheStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.alachisoft.ncache.web.caching.OutputCacheStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class OutputCacheStream
extends java.io.OutputStream

OutputCacheStream is derived from System.IO.OutputStream. It is designed to put/fetch BLOB using standard OutputStream Interface


Method Summary
 boolean canRead()
           
 boolean canSeek()
           
 boolean canWrite()
           
 void close()
           
 boolean closed()
           
 void flush()
           
 long length()
           
 long position()
           
 long seek(long offset)
           
 void setLength(long value)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

canRead

public boolean canRead()

canSeek

public boolean canSeek()

canWrite

public boolean canWrite()

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException

closed

public boolean closed()

flush

public void flush()
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream

length

public long length()
            throws java.lang.Exception
Throws:
java.lang.Exception

position

public long position()
              throws java.lang.Exception
Throws:
java.lang.Exception

seek

public long seek(long offset)
          throws NotSupportedException
Throws:
NotSupportedException

setLength

public void setLength(long value)
               throws NotSupportedException
Throws:
NotSupportedException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException