Class marimba.io.MD5InputStream
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.io.MD5InputStream

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----java.io.FilterInputStream
                   |
                   +----marimba.io.MD5InputStream

public class MD5InputStream
extends FilterInputStream
An input stream which computes an MD5 checksum as it is going along.
Version:
1.3, 01/15/97
Author:
Arthur van Hoff

Constructor Index

 o MD5InputStream(File)
 o MD5InputStream(InputStream)
 o MD5InputStream(InputStream, int[])
 o MD5InputStream(String)

Method Index

 o available()
 o close()
 o getChecksum()
Return the checksum of this stream.
 o getDigest()
Get the current digest for the stream.
 o main(String[])
For testing purposes only.
 o read()
 o read(byte[])
 o read(byte[], int, int)
 o skip(long)

Constructors

 o MD5InputStream
  public MD5InputStream(InputStream in,
                        int digest[])
 o MD5InputStream
  public MD5InputStream(InputStream in)
 o MD5InputStream
  public MD5InputStream(String path) throws IOException
 o MD5InputStream
  public MD5InputStream(File file) throws IOException

Methods

 o read
  public int read() throws IOException
Overrides:
read in class FilterInputStream
 o read
  public int read(byte b[]) throws IOException
Overrides:
read in class FilterInputStream
 o read
  public int read(byte b[],
                  int off,
                  int len) throws IOException
Overrides:
read in class FilterInputStream
 o skip
  public long skip(long n) throws IOException
Overrides:
skip in class FilterInputStream
 o available
  public int available() throws IOException
Overrides:
available in class FilterInputStream
 o close
  public void close() throws IOException
Overrides:
close in class FilterInputStream
 o getChecksum
  public Checksum getChecksum()
Return the checksum of this stream. The checksum can be computed only once.
 o getDigest
  public int[] getDigest()
Get the current digest for the stream.
 o main
  public static void main(String argv[]) throws IOException
For testing purposes only.

All Packages  Class Hierarchy  This Package  Previous  Next  Index