Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.services.ifs.files
Class FileSequenceNumberChecker

java.lang.Object
  extended by com.ibm.etools.iseries.services.ifs.files.FileSequenceNumberChecker

public class FileSequenceNumberChecker
extends Object

A helper class which checks the sequence number of an i5/OS native source member.


Field Summary
static String copyright
           
static int SEQUENCE_FALSE
           
static int SEQUENCE_TRUE
           
static int SEQUENCE_UNKNOWN
           
 
Constructor Summary
FileSequenceNumberChecker()
           
 
Method Summary
static int hasSequenceNumbers(File file)
          Inspects the content of a file in order to determine whether the stream contains sequence numbers.
static int hasSequenceNumbers(InputStream inputStream)
          Inspects the content of a stream in order to determine whether the stream contains sequence numbers.
static int hasSequenceNumbers(InputStream inputStream, String encoding)
          Inspects the content of a stream in order to determine whether the stream contains sequence numbers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static String copyright

SEQUENCE_UNKNOWN

public static final int SEQUENCE_UNKNOWN
See Also:
Constant Field Values

SEQUENCE_FALSE

public static final int SEQUENCE_FALSE
See Also:
Constant Field Values

SEQUENCE_TRUE

public static final int SEQUENCE_TRUE
See Also:
Constant Field Values
Constructor Detail

FileSequenceNumberChecker

public FileSequenceNumberChecker()
Method Detail

hasSequenceNumbers

public static int hasSequenceNumbers(File file)
Inspects the content of a file in order to determine whether the stream contains sequence numbers. The first four lines are used. UTF-8 is assumed for the encoding.


hasSequenceNumbers

public static int hasSequenceNumbers(InputStream inputStream)
Inspects the content of a stream in order to determine whether the stream contains sequence numbers. The first four lines are used. UTF-8 is assumed for the encoding.


hasSequenceNumbers

public static int hasSequenceNumbers(InputStream inputStream,
                                     String encoding)
Inspects the content of a stream in order to determine whether the stream contains sequence numbers. The first four lines are used. The encoding must be a valid non-null String specifying the character encoding of the stream.


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.