com.starbase.util
Class MD5Stream
java.lang.Object
|
+--java.io.OutputStream
|
+--com.starbase.util.MD5Stream
- public class MD5Stream
- extends java.io.OutputStream
|
Constructor Summary |
MD5Stream(java.io.OutputStream out)
|
|
Method Summary |
void |
close()
|
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
void |
flush()
|
byte[] |
getMD5()
Finalize the MD5 computation and return the final 16-byte MD5 value. |
int |
hashCode()
returns a unique hash for all instances of this type |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
MD5Stream
public MD5Stream(java.io.OutputStream out)
close
public void close()
throws java.io.IOException
- Overrides:
close in class java.io.OutputStream
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Overrides:
flush in class java.io.OutputStream
java.io.IOException
getMD5
public byte[] getMD5()
- Finalize the MD5 computation and return the final 16-byte MD5 value. This method
should be called only after the stream is closed.
- Returns:
- byte[] 16-byte final MD5 value.
write
public void write(int b)
throws java.io.IOException
- Specified by:
write in class java.io.OutputStream
java.io.IOException
write
public void write(byte[] b)
throws java.io.IOException
- Overrides:
write in class java.io.OutputStream
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
write in class java.io.OutputStream
java.io.IOException
equals
public boolean equals(java.lang.Object source)
- returns true if this object instance is equal to the source
- Overrides:
equals in class java.lang.Object
- Parameters:
source - Object the source to comapre with
- Returns:
- boolean true if this object is equal to the source
hashCode
public int hashCode()
- returns a unique hash for all instances of this type
- Overrides:
hashCode in class java.lang.Object
- Returns:
- int a unique hash for all instances of this type
StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.