com.servingxml.components.flatfile
Interface RecordInput
- All Known Implementing Classes:
- ByteRecordInput, CharRecordInput, FixedLengthByteRecordInput, FixedLengthCharRecordInput
public interface RecordInput
toByteArray
byte[] toByteArray()
toCharArray
char[] toCharArray()
done
boolean done()
readBytes
int readBytes(byte[] bytes)
throws java.io.IOException
- Throws:
java.io.IOException
readString
java.lang.String readString(int length)
throws java.io.IOException
- Throws:
java.io.IOException
readString
java.lang.String readString(int maxLength,
FlatFileOptions flatFileOptions)
throws java.io.IOException
- Throws:
java.io.IOException
readStringArray
java.lang.String[] readStringArray(int maxLength,
FlatFileOptions flatFileOptions)
throws java.io.IOException
- Throws:
java.io.IOException
getPosition
int getPosition()
getLast
int getLast()
setPosition
void setPosition(int index)
throws java.io.IOException
- Throws:
java.io.IOException
getCharset
java.nio.charset.Charset getCharset()
wipe
void wipe()
throws java.io.IOException
- Throws:
java.io.IOException
readRepeatingGroup
void readRepeatingGroup(int count,
FlatFileOptions flatFileOptions,
java.util.List<RecordInput> children)
readSegment
RecordInput readSegment(FlatFileOptions flatFileOptions)
readSegment
RecordInput readSegment(int segmentLength)
concatentate
RecordInput concatentate(RecordInput lhs)
toString
java.lang.String toString()
- Overrides:
toString
in class java.lang.Object