Package com.softwaremining.util
Class CBLUnstringProcessor
java.lang.Object
com.softwaremining.util.CBLUnstringProcessor
Translation or COBOL UNSTRING command (analogous to Java String.split method)
NOTES: In absence of delimiter, the system will SPLIT the input-value by size between the Result fields I.e. if the Result-1 is 5 char, then first 5 chars will be inserted in Result-1
NOTES: In absence of delimiter, the system will SPLIT the input-value by size between the Result fields I.e. if the Result-1 is 5 char, then first 5 chars will be inserted in Result-1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCBLUnstringProcessor(CBLBean wrapper) CBLUnstringProcessor(CBLBean wrapper, int offset) CBLUnstringProcessor(CBLBean wrapper, int offset, int len) CBLUnstringProcessor(ISMObject field) CBLUnstringProcessor(ISMObject field, int offset) CBLUnstringProcessor(ISMObject field, int offset, int len) CBLUnstringProcessor(String data) CBLUnstringProcessor(String data, int offset) CBLUnstringProcessor(String data, int offset, int len) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDelimiter(String delimiter) NOTES: In absence of delimiter, the system will SPLIT the input-value by size between the Result fieldsvoidaddDelimiterAll(String delimiter) for use in
DELEMITED BY ALL "0"voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidbooleanbooleanprocess()Start the Split processvoidreinitialize(CBLBean wrapper) re-initialise allows the re-use of this instance of the class to process another fieldvoidreinitialize(CBLBean wrapper, int offset) voidreinitialize(CBLBean wrapper, int offset, int len) voidreinitialize(ISMObject newField) re-initialise allows the re-use of this instance of the class to process another fieldvoidreinitialize(ISMObject newField, int offset) voidreinitialize(ISMObject newField, int offset, int len) voidsetCounter(ISMNumeric tallyField) Deprecated.- please use setTallyFieldvoidsetPointer(ISMNumeric pointer) voidsetTallyField(ISMNumeric tallyField)
-
Field Details
-
totalRuntime
public static long totalRuntimefor internal use only ... profiling information
-
-
Constructor Details
-
CBLUnstringProcessor
-
CBLUnstringProcessor
-
CBLUnstringProcessor
-
CBLUnstringProcessor
-
CBLUnstringProcessor
-
CBLUnstringProcessor
-
CBLUnstringProcessor
-
CBLUnstringProcessor
-
CBLUnstringProcessor
-
-
Method Details
-
reinitialize
re-initialise allows the re-use of this instance of the class to process another field- Parameters:
newField- .. field which is going to be inspected.
-
reinitialize
-
reinitialize
-
reinitialize
-
reinitialize
-
reinitialize
re-initialise allows the re-use of this instance of the class to process another field- Parameters:
newField- .. field which is going to be inspected.
-
setPointer
-
setCounter
Deprecated.- please use setTallyField- Parameters:
counter-
-
setTallyField
-
addDelimiter
NOTES: In absence of delimiter, the system will SPLIT the input-value by size between the Result fields- Parameters:
delimiter-
-
addDelimiterAll
for use in
DELEMITED BY ALL "0"- Parameters:
delimiter-
-
addResult
-
addResult
-
addResult
-
addResult
-
addResult
-
addResult
-
addResult
-
addResult
-
addResult
-
addResult
-
addResult
-
process
public boolean process()Start the Split process- Returns:
- boolean: TRUE if there is OVERFLOW, false if not Overflow
-
isOverFlow
public boolean isOverFlow()
-