Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.util
Class SequentialFileReader

java.lang.Object
  extended by com.ibm.etools.iseries.util.SequentialFileReader
All Implemented Interfaces:
ISequentialFileReader

public class SequentialFileReader
extends Object
implements ISequentialFileReader

Read any member from QSYS and return its contents line by line as Java Strings Does not handle DDM files Does not replace DBCS shift characters with blanks If logical bidi, does the conversion of the sequence numbers separately to avoid roundtrip errors Call the close() method to unlock the file


Field Summary
 
Fields inherited from interface com.ibm.etools.iseries.comm.interfaces.ISequentialFileReader
copyright
 
Constructor Summary
SequentialFileReader(AS400 ibmi, int ccsid, String library, String srcfile, String member)
           
 
Method Summary
 void close()
           
 String readNextLine()
           
 void setLeaveVisual()
           
 void setRemoveSequenceNumber()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequentialFileReader

public SequentialFileReader(AS400 ibmi,
                            int ccsid,
                            String library,
                            String srcfile,
                            String member)
                     throws AS400Exception,
                            AS400SecurityException,
                            InterruptedException,
                            IOException,
                            PropertyVetoException
Throws:
AS400Exception
AS400SecurityException
InterruptedException
IOException
PropertyVetoException
Method Detail

setRemoveSequenceNumber

public void setRemoveSequenceNumber()

setLeaveVisual

public void setLeaveVisual()

close

public void close()
           throws AS400Exception,
                  AS400SecurityException,
                  InterruptedException,
                  IOException
Throws:
AS400Exception
AS400SecurityException
InterruptedException
IOException

readNextLine

public String readNextLine()
                    throws IOException
Specified by:
readNextLine in interface ISequentialFileReader
Returns:
String the next line
Throws:
IOException - if there is any problem reading
See Also:
ReaderLineScanner

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.