|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.hul.ois.jhove.Message
public abstract class Message
This class encapsulates a String to be displayed.
Field Summary | |
---|---|
protected java.lang.String |
_message
Message text. |
protected long |
_offset
Byte offset to which message applies. |
protected java.lang.String |
_subMessage
Additional information. |
static long |
NULL
Value indicating a null offset. |
Constructor Summary | |
---|---|
protected |
Message(java.lang.String message)
Create a Message. |
protected |
Message(java.lang.String message,
long offset)
Create a Message. |
protected |
Message(java.lang.String message,
java.lang.String subMessage)
Create a Message. |
protected |
Message(java.lang.String message,
java.lang.String subMessage,
long offset)
Create a Message. |
Method Summary | |
---|---|
java.lang.String |
getMessage()
Get the message string. |
long |
getOffset()
Return the offset to which the information is related. |
java.lang.String |
getSubMessage()
Get the submessage string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long NULL
protected java.lang.String _message
protected java.lang.String _subMessage
protected long _offset
Constructor Detail |
---|
protected Message(java.lang.String message)
message
- Human-readable string.protected Message(java.lang.String message, java.lang.String subMessage)
message
- Human-readable string.subMessage
- Human-readable additional information.protected Message(java.lang.String message, long offset)
message
- Human-readable string.offset
- Byte offset associated with the message.protected Message(java.lang.String message, java.lang.String subMessage, long offset)
message
- Human-readable string.subMessage
- Human-readable additional information.offset
- Byte offset associated with the message.Method Detail |
---|
public java.lang.String getMessage()
public java.lang.String getSubMessage()
public long getOffset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |