net.sf.cobol2j
Class RecordSet

java.lang.Object
  extended by net.sf.cobol2j.RecordSet

public class RecordSet
extends java.lang.Object


Constructor Summary
RecordSet(java.io.InputStream is, FileFormat ff)
           
 
Method Summary
 java.lang.String getNextRecordAsPlainString(java.lang.String fieldSeparator)
          Deprecated. Use next() and combine with commas,tabs,etc yourselve.
 boolean hasNext()
           
 java.util.List next()
           
 void setFileFormat(FileFormat fFormat)
           
 void setInputStream(java.io.InputStream byteStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordSet

public RecordSet(java.io.InputStream is,
                 FileFormat ff)
Method Detail

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.