org.modeshape.graph.property.basic
Class AbstractBinary
java.lang.Object
org.modeshape.graph.property.basic.AbstractBinary
- All Implemented Interfaces:
- Serializable, Comparable<Binary>, Binary
- Direct Known Subclasses:
- FileSystemBinary, InMemoryBinary
@Immutable
public abstract class AbstractBinary
- extends Object
- implements Binary
An abstract implementation of Binary
that provides some common capabilities for other implementations.
- See Also:
- Serialized Form
ALGORITHMS_NOT_FOUND_AND_LOGGED
protected static final Set<String> ALGORITHMS_NOT_FOUND_AND_LOGGED
EMPTY_CONTENT
protected static final byte[] EMPTY_CONTENT
AbstractBinary
protected AbstractBinary()
computeHash
protected byte[] computeHash(byte[] content)
computeHash
protected byte[] computeHash(File file)
computeHash
protected byte[] computeHash(InputStream stream)
compareTo
public int compareTo(Binary o)
-
- Specified by:
compareTo
in interface Comparable<Binary>
equals
public boolean equals(Object obj)
-
- Overrides:
equals
in class Object
toString
public String toString()
-
- Overrides:
toString
in class Object
getReadableSize
public String getReadableSize()
Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.