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
-
MD5InputStream(File)
-
-
MD5InputStream(InputStream)
-
-
MD5InputStream(InputStream, int[])
-
-
MD5InputStream(String)
-
-
available()
-
-
close()
-
-
getChecksum()
- Return the checksum of this stream.
-
getDigest()
- Get the current digest for the stream.
-
main(String[])
- For testing purposes only.
-
read()
-
-
read(byte[])
-
-
read(byte[], int, int)
-
-
skip(long)
-
MD5InputStream
public MD5InputStream(InputStream in,
int digest[])
MD5InputStream
public MD5InputStream(InputStream in)
MD5InputStream
public MD5InputStream(String path) throws IOException
MD5InputStream
public MD5InputStream(File file) throws IOException
read
public int read() throws IOException
- Overrides:
- read in class FilterInputStream
read
public int read(byte b[]) throws IOException
- Overrides:
- read in class FilterInputStream
read
public int read(byte b[],
int off,
int len) throws IOException
- Overrides:
- read in class FilterInputStream
skip
public long skip(long n) throws IOException
- Overrides:
- skip in class FilterInputStream
available
public int available() throws IOException
- Overrides:
- available in class FilterInputStream
close
public void close() throws IOException
- Overrides:
- close in class FilterInputStream
getChecksum
public Checksum getChecksum()
- Return the checksum of this stream. The checksum can be computed
only once.
getDigest
public int[] getDigest()
- Get the current digest for the stream.
main
public static void main(String argv[]) throws IOException
- For testing purposes only.
All Packages Class Hierarchy This Package Previous Next Index