public class StdfPrinter extends java.lang.Object implements RecordUser
Constructor and Description |
---|
StdfPrinter(java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
void |
finish()
Called when reading of the current file has finished
|
boolean |
isFinished() |
boolean |
isPrintHeader() |
boolean |
isRecordNamesOnly() |
static void |
main(java.lang.String[] args) |
void |
processRecord(DataRecord record,
long offset) |
DataRecord |
processRecord(int length,
short type,
short subType,
java.nio.ByteBuffer buffer,
long offset) |
void |
setPrintHeader(boolean printHeader)
If printHeader is true, the STDF header for each record
will be printed
|
void |
setRecordNamesOnly(boolean recordNamesOnly)
If recordNamesOnly is true, only record types and not
attributes will be printed
|
public boolean isPrintHeader()
public void setPrintHeader(boolean printHeader)
printHeader
- The printHeader to set.public boolean isRecordNamesOnly()
public void setRecordNamesOnly(boolean recordNamesOnly)
recordNamesOnly
- The recordNamesOnly to set.public void finish()
RecordUser
finish
in interface RecordUser
public void processRecord(DataRecord record, long offset)
processRecord
in interface RecordUser
record
- A generic DataRecord to be processed in some wayoffset
- The number of bytes offset from the beginning of the file at which the record startedpublic boolean isFinished()
public DataRecord processRecord(int length, short type, short subType, java.nio.ByteBuffer buffer, long offset)
public static void main(java.lang.String[] args)