- java.lang.Object
-
- com.ibm.jvm.format.Message
-
public final class Message extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getComponent()
returns the component this message corresponds to, as determined by the message fileprotected String
getFormattingTemplate()
String
getMessage(byte[] buffer, int offset, int end)
retrieve the text of the message, parsing any percent directives and replacing them with data from the bufferprotected int
getType()
returns the type of entry this message corresponds to, as determined by the message file and TraceRecordprotected StringBuffer
processPercents(String str, byte[] buffer, int offset)
processs all the percent sign directives in a string, much like a call to printfprotected static void
setPointerSize()
protected StringBuffer
skipPercents(String str, byte[] buffer, int offset)
process all the percent sign directives in a string, making them "???"
-
-
-
Method Detail
-
processPercents
protected StringBuffer processPercents(String str, byte[] buffer, int offset)
processs all the percent sign directives in a string, much like a call to printf- Parameters:
str
- a string- Returns:
- the string with percent directive replaces by their associated values
-
skipPercents
protected StringBuffer skipPercents(String str, byte[] buffer, int offset)
process all the percent sign directives in a string, making them "???"- Parameters:
str
- a string- Returns:
- the string with percent directives replaced by "???"
-
setPointerSize
protected static void setPointerSize()
-
getMessage
public String getMessage(byte[] buffer, int offset, int end)
retrieve the text of the message, parsing any percent directives and replacing them with data from the buffer- Parameters:
buffer
- an array of bytesoffset
- an int- Returns:
- a string that is the message from the file with any percent directives replaces by data from the buffer
-
getComponent
protected String getComponent()
returns the component this message corresponds to, as determined by the message file- Returns:
- an String that is component from which this message came from
-
getType
protected int getType()
returns the type of entry this message corresponds to, as determined by the message file and TraceRecord- Returns:
- an int that is one of the types defined in TraceRecord
- See Also:
TraceRecord
-
getFormattingTemplate
protected String getFormattingTemplate()
-
-