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

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byes.prodevelop.gvsig.mobile.fmap.util.md5.MD5OutputStream

public class MD5OutputStream
extends java.io.FilterOutputStream

* 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
MD5OutputStream(java.io.OutputStream out)
          Creates MD5OutputStream
 
Method Summary
 MD5 getMD5()
           
 byte[] hash()
          Returns array of bytes representing hash of the stream as finalized for the current state.
 void write(byte[] b, int off, int len)
          Writes a sub array of bytes.
 void write(int b)
          Writes a byte.
 
Methods inherited from class java.io.FilterOutputStream
close, flush, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5OutputStream

public MD5OutputStream(java.io.OutputStream out)
Creates MD5OutputStream

Parameters:
out - The output stream
Method Detail

write

public void write(int b)
           throws java.io.IOException
Writes a byte.

Throws:
java.io.IOException
See Also:
FilterOutputStream

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Writes a sub array of bytes.

Throws:
java.io.IOException
See Also:
FilterOutputStream

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()