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
-
Constructor Summary
ConstructorDescriptionCBLUnstringProcessor
(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 TypeMethodDescriptionvoid
addDelimiter
(String delimiter) NOTES: In absence of delimiter, the system will SPLIT the input-value by size between the Result fieldsvoid
addDelimiterAll
(String delimiter) for use in
DELEMITED BY ALL "0"void
void
void
void
void
void
void
void
void
void
void
boolean
boolean
process()
Start the Split processvoid
reinitialize
(CBLBean wrapper) re-initialise allows the re-use of this instance of the class to process another fieldvoid
reinitialize
(CBLBean wrapper, int offset) void
reinitialize
(CBLBean wrapper, int offset, int len) void
reinitialize
(ISMObject newField) re-initialise allows the re-use of this instance of the class to process another fieldvoid
reinitialize
(ISMObject newField, int offset) void
reinitialize
(ISMObject newField, int offset, int len) void
setCounter
(ISMNumeric tallyField) Deprecated.- please use setTallyFieldvoid
setPointer
(ISMNumeric pointer) void
setTallyField
(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()
-