public abstract class Message extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
_message
Message text.
|
protected long |
_offset
Byte offset to which message applies.
|
protected String |
_subMessage
Additional information.
|
static long |
NULL
Value indicating a null offset.
|
Modifier | Constructor and Description |
---|---|
protected |
Message(String message)
Create a Message.
|
protected |
Message(String message,
long offset)
Create a Message.
|
protected |
Message(String message,
String subMessage)
Create a Message.
|
protected |
Message(String message,
String subMessage,
long offset)
Create a Message.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Get the message string.
|
long |
getOffset()
Return the offset to which the information is related.
|
String |
getSubMessage()
Get the submessage string.
|
public static final long NULL
protected String _message
protected String _subMessage
protected long _offset
protected Message(String message)
message
- Human-readable string.protected Message(String message, String subMessage)
message
- Human-readable string.subMessage
- Human-readable additional information.protected Message(String message, long offset)
message
- Human-readable string.offset
- Byte offset associated with the message.protected Message(String message, String subMessage, long offset)
message
- Human-readable string.subMessage
- Human-readable additional information.offset
- Byte offset associated with the message.Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.