com.ibm.etools.iseries.util
Class WrappedEbcdicStringIterator.WrappedEbcdicString
java.lang.Object
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
_splitFirstChar
protected Character _splitFirstChar
WrappedEbcdicStringIterator.WrappedEbcdicString
public WrappedEbcdicStringIterator.WrappedEbcdicString(String text,
int ccsid,
boolean isPureDbcs)
WrappedEbcdicStringIterator.WrappedEbcdicString
public WrappedEbcdicStringIterator.WrappedEbcdicString(String text,
int ccsid,
boolean isPureDbcs,
Character splitFirstChar)
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
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.