|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.harvard.hul.ois.jhove.Signature
public abstract class Signature
This class encapsulates information about format signatures, both internal and external. The value of a Signature may be either a String or a byte array (stored as an int array to avoid signed byte problems).
| Constructor Summary | |
|---|---|
protected |
Signature(int[] value,
SignatureType type,
SignatureUseType use)
A Signature cannot be created directly; this constructor can be called as the superclass constructor from a subclass. |
protected |
Signature(int[] value,
SignatureType type,
SignatureUseType use,
java.lang.String note)
A Signature cannot be created directly; this constructor can be called as the superclass constructor from a subclass. |
protected |
Signature(java.lang.String value,
SignatureType type,
SignatureUseType use)
A Signature cannot be created directly; this constructor can be called as the superclass constructor from a subclass. |
protected |
Signature(java.lang.String value,
SignatureType type,
SignatureUseType use,
java.lang.String note)
A Signature cannot be created directly; this constructor can be called as the superclass constructor from a subclass. |
| Method Summary | |
|---|---|
java.lang.String |
getNote()
Returns the note specified for this Signature, or null if no note was specified. |
SignatureType |
getType()
Returns the type of this Signature |
SignatureUseType |
getUse()
Returns the use requirement for this Signature |
int[] |
getValue()
Returns the byte array value for this Signature. |
java.lang.String |
getValueHexString()
Returns the value of this Signature as a hexadecimal string. |
java.lang.String |
getValueString()
Returns the string value of this Signature. |
boolean |
isStringValue()
Returns true if this Signature's value was provided as a String, false if as an array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Signature(java.lang.String value,
SignatureType type,
SignatureUseType use)
protected Signature(int[] value,
SignatureType type,
SignatureUseType use)
protected Signature(java.lang.String value,
SignatureType type,
SignatureUseType use,
java.lang.String note)
protected Signature(int[] value,
SignatureType type,
SignatureUseType use,
java.lang.String note)
| Method Detail |
|---|
public SignatureType getType()
public SignatureUseType getUse()
public int[] getValue()
public java.lang.String getNote()
public boolean isStringValue()
public java.lang.String getValueString()
public java.lang.String getValueHexString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||