public class NullVerifier extends Object implements IDigestVerifier
| Modifier and Type | Field and Description |
|---|---|
boolean |
result |
| Constructor and Description |
|---|
NullVerifier()
Creates a verifier which always returns
true |
NullVerifier(boolean result)
Creates a verifier which always returns
result |
| Modifier and Type | Method and Description |
|---|---|
boolean |
verify(byte[] content) |
boolean |
verify(ByteChannel channel) |
boolean |
verify(File file) |
boolean |
verify(InputStream is) |
public NullVerifier()
truepublic NullVerifier(boolean result)
resultresult - public boolean verify(byte[] content)
verify in interface IDigestVerifierpublic boolean verify(File file) throws IOException
verify in interface IDigestVerifierIOExceptionpublic boolean verify(InputStream is) throws IOException
verify in interface IDigestVerifierIOExceptionpublic boolean verify(ByteChannel channel) throws IOException
verify in interface IDigestVerifierIOExceptionCopyright © 2015. All rights reserved.