|
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.format.delimited.DelimitedRecordFormat
public class DelimitedRecordFormat
A RecordFormat
for delimited records.
A delimited record may be configured to validate a record field count by setting a minimum and maximum length.
Constructor Summary | |
---|---|
DelimitedRecordFormat()
Constructs a new DelimitedRecordFormat. |
Method Summary | |
---|---|
int |
getMaxLength()
Returns the maximum number of fields in the record. |
int |
getMaxMatchLength()
Returns the maximum record length for identifying a record. |
int |
getMinLength()
Returns the minimum number of fields in the record. |
int |
getMinMatchLength()
Returns the minimum record length for identifying a record. |
boolean |
matches(UnmarshallingContext context)
Returns whether the record meets configured matching criteria during unmarshalling. |
void |
setMaxLength(int maxLength)
Sets the maximum number of fields in the record. |
void |
setMaxMatchLength(int maxMatchLength)
Sets the maximum record length for identifying a record. |
void |
setMinLength(int minLength)
Sets the minimum number of fields in the record. |
void |
setMinMatchLength(int minMatchLength)
Sets the minimum record length for identifying a record. |
String |
toString()
|
void |
validate(UnmarshallingContext context)
Validates a record during unmarshalling. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DelimitedRecordFormat()
Method Detail |
---|
public boolean matches(UnmarshallingContext context)
RecordFormat
matches
in interface RecordFormat
context
- the UnmarshallingContext
public void validate(UnmarshallingContext context)
RecordFormat
validate
in interface RecordFormat
context
- the UnmarshallingContext
to validatepublic int getMinLength()
public void setMinLength(int minLength)
minLength
- minimum field countpublic int getMaxLength()
Integer.MAX_VALUE
.
public void setMaxLength(int maxLength)
maxLength
- maximum field countpublic int getMinMatchLength()
public void setMinMatchLength(int minMatchLength)
minMatchLength
- the minimum number of fieldspublic int getMaxMatchLength()
public void setMaxMatchLength(int maxMatchLength)
maxMatchLength
- the maximum number of fieldspublic String toString()
toString
in class Object
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |