Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.util
Class WrappedEbcdicStringIterator.WrappedEbcdicString

java.lang.Object
  extended by com.ibm.etools.iseries.util.WrappedEbcdicStringIterator.WrappedEbcdicString
Enclosing class:
WrappedEbcdicStringIterator

public static class WrappedEbcdicStringIterator.WrappedEbcdicString
extends Object

Instance holding a string that corresponds to EBCDIC DBCS that is being truncated, one segment at a time. Knows if the first character is the second half of a DBCS ebcdic char or if the shift-out is present or not


Field Summary
protected  Character _splitFirstChar
           
 
Constructor Summary
WrappedEbcdicStringIterator.WrappedEbcdicString(String text, int ccsid, boolean isPureDbcs)
           
WrappedEbcdicStringIterator.WrappedEbcdicString(String text, int ccsid, boolean isPureDbcs, Character splitFirstChar)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getExpandedText()
          Returns the string with all shifts characters added.
 int getLength()
          Return the EBCDIC byte length of the remainder
 String getText()
           
 String getUnSplitText()
           
 int hashCode()
           
 boolean isFirstCharSplit()
           
 IEbcdicString split(int ebcdicByteLength)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_splitFirstChar

protected Character _splitFirstChar
Constructor Detail

WrappedEbcdicStringIterator.WrappedEbcdicString

public WrappedEbcdicStringIterator.WrappedEbcdicString(String text,
                                                       int ccsid,
                                                       boolean isPureDbcs)

WrappedEbcdicStringIterator.WrappedEbcdicString

public WrappedEbcdicStringIterator.WrappedEbcdicString(String text,
                                                       int ccsid,
                                                       boolean isPureDbcs,
                                                       Character splitFirstChar)
Method Detail

getUnSplitText

public String getUnSplitText()
Returns:
the text that does not have any split DBCS characters

getText

public String getText()
Returns:
the text that does not have any split DBCS characters

isFirstCharSplit

public boolean isFirstCharSplit()
Returns:
the _firstCharSplit

getExpandedText

public String getExpandedText()
Returns the string with all shifts characters added. Does not have shifts before/after first/last split DBCS char respectively


split

public IEbcdicString split(int ebcdicByteLength)
Parameters:
ebcdicByteLength -
Returns:

getLength

public int getLength()
Return the EBCDIC byte length of the remainder

Returns:

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

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.