iSeries Remote Systems
v6.0.1

com.ibm.etools.iseries.core.resources
Class ISeriesMixedCCSIDHandler

java.lang.Object
  extended bycom.ibm.etools.iseries.core.resources.ISeriesMixedCCSIDHandler

public class ISeriesMixedCCSIDHandler
extends Object

This class handles records of members that have mixed CCSID.


Constructor Summary
ISeriesMixedCCSIDHandler()
          Constructor.
 
Method Summary
protected  File createFile(ISeriesMember mbr)
          Creates a new file.
 List process(ISeriesMember member, List bytesList)
          Processes the list of bytes of the given member.
protected  String replace(String orig, int num, String str)
          Replace the substitution variable with the given string.
protected  void writeHeader(Writer writer, ISeriesMember mbr)
          Writes the header.
protected  void writePosition(Writer writer, int line, int column)
          Writes the position of consecutive SO/SI characters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISeriesMixedCCSIDHandler

public ISeriesMixedCCSIDHandler()
Constructor.

Method Detail

process

public List process(ISeriesMember member,
                    List bytesList)
             throws IOException
Processes the list of bytes of the given member.

Parameters:
member - the member.
bytesList - the list of bytes representing each record of the member.
Throws:
IOException - if an I/O error occurs.

createFile

protected File createFile(ISeriesMember mbr)
                   throws IOException
Creates a new file. If a file already exists, replaces it with a new file.

Parameters:
mbr - the member.
Returns:
the newly created file.
Throws:
IOException - if an I/O error occurs.

writeHeader

protected void writeHeader(Writer writer,
                           ISeriesMember mbr)
                    throws IOException
Writes the header.

Parameters:
writer - the writer.
mbr - the member.
Throws:
IOException - if an I/O error occurs.

writePosition

protected void writePosition(Writer writer,
                             int line,
                             int column)
                      throws IOException
Writes the position of consecutive SO/SI characters.

Parameters:
writer - the writer.
line - the line.
column - the column.
Throws:
IOException - if an I/O error occurs.

replace

protected String replace(String orig,
                         int num,
                         String str)
Replace the substitution variable with the given string.

Parameters:
orig - the original string with the substitution variable.
num - the number that represents the substitution variable.
str - the string to replace with.
Returns:
the string with the value substituted.

iSeries Remote Systems
v6.0.1

Copyright © 2005 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.