public interface Record
| Modifier and Type | Method and Description |
|---|---|
void |
clearRecord()
Clear the entire record area to the fill character required.
|
Object |
clone()
clone this record, including the underlying ByteArray and it's wrapped bytes.
|
Object |
duplicate()
Create a copy of this record, including the underlying ByteArray, but keeping the
same underlying bytes.
|
String |
fieldName(int fieldNumber)
The name of the field.
|
Object |
getField(int fieldNumber)
The field value.
|
int |
length()
This is the length of the current record.
|
int |
numberOfFields()
The number of fields defined for this record.
|
long |
offsetPosition()
The offset of this record in an input stream.
|
Record |
offsetPosition(long offset)
This is used to set the current record offset of this record in the input
stream.
|
ByteArray |
record() |
int |
recordPosition()
The position of this record in an input stream.
|
Record |
recordPosition(int position)
This is used to set the current record position of this record in the
input stream.
|
Record |
setField(int value,
int fieldNumber)
Set the contents of the field to the specified int value.
|
Record |
setField(long value,
int fieldNumber)
Set the contents of the field to the specified long value.
|
Record |
setField(String value,
int fieldNumber)
Set the contents of the field to the specified string value.
|
String |
toXml()
Creates an XML representation of the record based on it's fields.
|
String |
toXml(boolean useAttributes)
Creates an XML representation of the record based on it's fields.
|
Object clone()
Object duplicate()
void clearRecord()
int numberOfFields()
Object getField(int fieldNumber) throws InvalidDataException
fieldNumber - InvalidDataExceptionRecord setField(String value, int fieldNumber)
value - fieldNumber - Record setField(long value, int fieldNumber)
value - fieldNumber - Record setField(int value, int fieldNumber)
value - fieldNumber - int length()
ByteArray record()
String fieldName(int fieldNumber)
fieldNumber - int recordPosition()
Record recordPosition(int position)
position - long offsetPosition()
Record offsetPosition(long offset)
offset - String toXml()
String toXml(boolean useAttributes)
useAttributes - if true, then fields are attributes, if false, then they are
tagged and subordinate to the record tags.Copyright © 2009–2016 The Last Check, LLC. All rights reserved.