es.prodevelop.gvsig.mobile.fmap.util.md5
Class MD5InputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byes.prodevelop.gvsig.mobile.fmap.util.md5.MD5InputStream

public class MD5InputStream
extends java.io.FilterInputStream

* Modfied By: * Prodevelop Integración de Tecnologías SL * Conde Salvatierra de Álava , 34-10 * 46004 Valencia * Spain * * +34 963 510 612 * +34 963 510 968 * gis@prodevelop.es * http://www.prodevelop.es * * gvSIG Mobile Team 2006 * *


Constructor Summary
MD5InputStream(java.io.InputStream in)
          Creates a MD5InputStream
 
Method Summary
 MD5 getMD5()
           
 byte[] hash()
          Returns array of bytes representing hash of the stream as finalized for the current state.
 int read()
          Read a byte of data.
 int read(byte[] bytes, int offset, int length)
          Reads into an array of bytes.
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5InputStream

public MD5InputStream(java.io.InputStream in)
Creates a MD5InputStream

Parameters:
in - The input stream
Method Detail

read

public int read()
         throws java.io.IOException
Read a byte of data.

Throws:
java.io.IOException
See Also:
FilterInputStream

read

public int read(byte[] bytes,
                int offset,
                int length)
         throws java.io.IOException
Reads into an array of bytes.

Throws:
java.io.IOException
See Also:
FilterInputStream

hash

public byte[] hash()
Returns array of bytes representing hash of the stream as finalized for the current state.

See Also:
MD5.Final()

getMD5

public MD5 getMD5()