net.sf.cobol2j
Class RecordSet
java.lang.Object
net.sf.cobol2j.RecordSet
public class RecordSet
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecordSet
public RecordSet(java.io.InputStream is,
FileFormat ff)
setInputStream
public void setInputStream(java.io.InputStream byteStream)
setFileFormat
public void setFileFormat(FileFormat fFormat)
hasNext
public boolean hasNext()
throws java.io.IOException
- Throws:
java.io.IOException
next
public java.util.List next()
throws java.io.IOException,
FileFormatException,
RecordParseException
- Returns:
- List of next record's fields values. Elements may contain String, BigDecimal, BigInteger, Double or Float.
- Throws:
java.io.IOException
FileFormatException
RecordParseException
getNextRecordAsPlainString
public java.lang.String getNextRecordAsPlainString(java.lang.String fieldSeparator)
throws java.io.IOException,
FileFormatException,
RecordParseException,
FieldParseException
- Deprecated. Use next() and combine with commas,tabs,etc yourselve.
- Returns:
-
- Throws:
java.io.IOException
FileFormatException
RecordParseException
FieldParseException
- See Also:
next()
Copyright © 2009. All Rights Reserved.