|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.os.dtrace.PrintfRecord
public final class PrintfRecord
A formatted string generated by the DTrace printf()
action.
Immutable. Supports persistence using XMLEncoder
.
Constructor Summary | |
---|---|
PrintfRecord(java.util.List<ValueRecord> v,
java.lang.String s)
Creates a record with the unformatted elements passed to the DTrace printf() action and the resulting formatted
output. |
Method Summary | |
---|---|
java.lang.String |
getFormattedString()
Gets the formatted string output of the DTrace printf()
action. |
ValueRecord |
getRecord(int i)
Gets the unformatted element passed to the DTrace printf() action at the given offset in the printf()
argument list after the format string, starting at offset zero
for the first unformatted element. |
int |
getRecordCount()
Gets the number of DTrace printf() unformatted elements
(arguments following the format string). |
java.util.List<ValueRecord> |
getRecords()
Gets the unfomatted elements passed to the DTrace printf() action after the format string. |
java.lang.String |
toString()
Gets the formatted string output of the DTrace printf()
action. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrintfRecord(java.util.List<ValueRecord> v, java.lang.String s)
printf()
action and the resulting formatted
output. Supports XML persistence.
v
- variable number of unformatted elements passed to the
DTrace printf()
actions
- formatted printf()
output
java.lang.NullPointerException
- if the given list or any of its
elements is null
, or if the given formatted string is
null
Method Detail |
---|
public java.lang.String getFormattedString()
printf()
action.
printf()
actionpublic java.util.List<ValueRecord> getRecords()
printf()
action after the format string.
printf()
action that generated this
record, in the order they appear in the argument list after the
format stringpublic int getRecordCount()
printf()
unformatted elements
(arguments following the format string). For example, the
following action
printf("%s %d\n", "cat", 9);
generates a PrintfRecord
with a record count of two.
printf()
action that generated this record.public ValueRecord getRecord(int i)
printf()
action at the given offset in the printf()
argument list after the format string, starting at offset zero
for the first unformatted element.
printf()
element at the given index (using the same order that
they appear in the printf()
argument list)
java.lang.ArrayIndexOutOfBoundsException
- if the given index is
out of range (index < 0 || index >= getRecordCount())public java.lang.String toString()
printf()
action.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |