com.caucho.distcache.cluster
Class TempDigestOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.caucho.vfs.TempOutputStream
          extended by com.caucho.distcache.cluster.TempDigestOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class TempDigestOutputStream
extends TempOutputStream

Manages the backing for the file store.


Method Summary
 void close()
           
 byte[] getDigest()
           
static java.lang.String hashToString(byte[] hash)
           
 void write(byte[] buffer, int offset, int length)
           
 void write(int ch)
           
 
Methods inherited from class com.caucho.vfs.TempOutputStream
clear, destroy, flush, getHead, getInputStream, getLength, getTail, openInputStream, openInputStreamNoFree, openRead, readAll, readAll, toByteArray, write, writeToStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hashToString

public static java.lang.String hashToString(byte[] hash)

getDigest

public byte[] getDigest()

write

public void write(int ch)
Overrides:
write in class TempOutputStream

write

public void write(byte[] buffer,
                  int offset,
                  int length)
Overrides:
write in class TempOutputStream

close

public void close()
Specified by:
close in interface java.io.Closeable
Overrides:
close in class TempOutputStream