|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.internal.parser.ParsingContext org.beanio.internal.parser.UnmarshallingContext org.beanio.internal.parser.format.delimited.DelimitedUnmarshallingContext
public class DelimitedUnmarshallingContext
An UnmarshallingContext
for a delimited record.
The record value type for a delimited record is a String array.
Field Summary |
---|
Fields inherited from class org.beanio.internal.parser.ParsingContext |
---|
MARSHALLING, UNMARSHALLING |
Constructor Summary | |
---|---|
DelimitedUnmarshallingContext()
Constructs a new DelimitedUnmarshallingContext. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.beanio.internal.parser.ParsingContext |
---|
createHeap, getAdjustedFieldPosition, getLocal, getRelativeFieldIndex, isRepeating, popIteration, pushIteration, setLocal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelimitedUnmarshallingContext()
Method Detail |
---|
public void setRecordValue(Object value)
UnmarshallingContext
setRecordValue
in class UnmarshallingContext
value
- the record value read by a record readerRecordReader
public 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 record
public Object toRecordValue(String[] array)
UnmarshallingContext
toRecordValue
in class UnmarshallingContext
array
- the String[] to convert
public Object toRecordValue(List<String> list)
UnmarshallingContext
List
to a record value.
toRecordValue
in class UnmarshallingContext
list
- the List to convert
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |