Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sixlegs.image.png
Class CRCInputStream  view CRCInputStream download CRCInputStream.java

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended bycom.sixlegs.image.png.CRCInputStream
All Implemented Interfaces:
java.io.Closeable

final class CRCInputStream
extends java.io.FilterInputStream


Field Summary
private  byte[] byteArray
           
private  int byteCount
           
private  java.util.zip.CRC32 crc
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
CRCInputStream(java.io.InputStream in)
           
 
Method Summary
 int count()
           
 long getValue()
           
 int read()
          Calls the in.read() method
 int read(byte[] b, int off, int len)
          Calls the in.read(byte[], int, int) method.
 void reset()
          Calls the in.reset() method.
 long skip(long n)
          Calls the in.skip(long) method
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

crc

private java.util.zip.CRC32 crc

byteCount

private int byteCount

byteArray

private byte[] byteArray
Constructor Detail

CRCInputStream

public CRCInputStream(java.io.InputStream in)
Method Detail

getValue

public long getValue()

reset

public void reset()
Description copied from class: java.io.FilterInputStream
Calls the in.reset() method.


count

public int count()

read

public int read()
         throws java.io.IOException
Description copied from class: java.io.FilterInputStream
Calls the in.read() method


read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Description copied from class: java.io.FilterInputStream
Calls the in.read(byte[], int, int) method.


skip

public long skip(long n)
          throws java.io.IOException
Description copied from class: java.io.FilterInputStream
Calls the in.skip(long) method