public class DelimitedUnmarshallingContext extends UnmarshallingContext
UnmarshallingContext for a delimited record.
The record value type for a delimited record is a String array.
MARSHALLING, UNMARSHALLING| Constructor and Description |
|---|
DelimitedUnmarshallingContext()
Constructs a new DelimitedUnmarshallingContext.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFieldCount()
Returns the number of fields read from the input stream.
|
String |
getFieldText(String fieldName,
int position,
int until)
Returns the field text at the given position in the record.
|
void |
setRecordValue(Object value)
Sets the value of the record returned from the RecordReader
|
Object |
toRecordValue(List<String> list)
Converts a
List to a record value. |
Object |
toRecordValue(String[] array)
Converts a String[] to a record value.
|
addFieldError, addRecordError, addRecordError, getLineNumber, getLocale, getMessageFactory, getMode, getRecordContext, getRecordCount, getRecordReader, hasFieldErrors, hasRecordErrors, isEOF, newMalformedRecordException, newUnsatisfiedGroupException, newUnsatisfiedRecordException, nextRecord, prepare, recordCompleted, recordException, recordSkipped, recordStarted, recordUnexpectedException, recordUnidentifiedException, setFieldText, setLocale, setMessageFactory, setRecordReader, toRecordValue, validateclear, createHeap, getAdjustedFieldPosition, getLocal, getRelativeFieldIndex, isRepeating, popIteration, pushIteration, setLocalpublic DelimitedUnmarshallingContext()
public void setRecordValue(Object value)
UnmarshallingContextsetRecordValue in class UnmarshallingContextvalue - the record value read by a record readerRecordReaderpublic int getFieldCount()
public String getFieldText(String fieldName, int position, int until)
position - the position of the field within the recorduntil - the maximum position of the field as an offset
of the field count, for example -2 to indicate the any position
except the last two fields in the recordpublic Object toRecordValue(String[] array)
UnmarshallingContexttoRecordValue in class UnmarshallingContextarray - the String[] to convertpublic Object toRecordValue(List<String> list)
UnmarshallingContextList to a record value.toRecordValue in class UnmarshallingContextlist - the List to convert