backtype.storm.utils
Class CRC32OutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by backtype.storm.utils.CRC32OutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class CRC32OutputStream
extends java.io.OutputStream


Constructor Summary
CRC32OutputStream()
           
 
Method Summary
 long getValue()
           
 void write(byte[] bytes, int start, int end)
           
 void write(int i)
           
 
Methods inherited from class java.io.OutputStream
close, flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRC32OutputStream

public CRC32OutputStream()
Method Detail

getValue

public long getValue()

write

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

write

public void write(byte[] bytes,
                  int start,
                  int end)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException