Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.util
Class StringNL.DbcsRepairEndingState

java.lang.Object
  extended by com.ibm.etools.iseries.util.StringNL.DbcsRepairEndingState
Enclosing class:
StringNL

public class StringNL.DbcsRepairEndingState
extends Object

Keep track of what happened to the last DBCS character during a truncation operation


Field Summary
static int NONE
           
static int TRUNCATE_BYTE1
           
static int TRUNCATE_BYTE2
           
static int TRUNCATE_SHIFT
           
 
Constructor Summary
StringNL.DbcsRepairEndingState()
           
 
Method Summary
 int getState()
           
 char getTruncatedChar()
           
 void reset()
           
 void setByteAfterTruncationPoint(byte nextByte)
           
 void truncateFirstByte(byte firstByte)
           
 void truncateSecondByte(byte firstByte, byte secondByte)
           
 void truncateShift()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

TRUNCATE_SHIFT

public static final int TRUNCATE_SHIFT
See Also:
Constant Field Values

TRUNCATE_BYTE2

public static final int TRUNCATE_BYTE2
See Also:
Constant Field Values

TRUNCATE_BYTE1

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

StringNL.DbcsRepairEndingState

public StringNL.DbcsRepairEndingState()
Method Detail

reset

public void reset()

truncateFirstByte

public void truncateFirstByte(byte firstByte)

truncateSecondByte

public void truncateSecondByte(byte firstByte,
                               byte secondByte)

truncateShift

public void truncateShift()

setByteAfterTruncationPoint

public void setByteAfterTruncationPoint(byte nextByte)

getTruncatedChar

public char getTruncatedChar()

getState

public int getState()

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.