public class BitsToStringTransformer extends Object implements FunctionTransformer
Integer.toString(int, int)
maxLenToParse
= 3, then out = 001, if wordMap
contains 0-units, 1-tens, 2-Hundreds then out for 001 = unitsModifier and Type | Field and Description |
---|---|
static Integer |
NO_MAP_DEFAULT_KEY
This value if put in the
wordMap , will provide the corresponding value as Default for words/positions that are not mapped. |
Constructor and Description |
---|
BitsToStringTransformer() |
Modifier and Type | Method and Description |
---|---|
int |
getMatchSize()
|
Integer |
getMaxLenToParse()
If specified will only consider upto {@link #maxLenToParse significant positions from the Right
This makes it convenient to remove any padded significant bits or positions that are not in use. |
int |
getRadix()
Radix: Binary (2), Hex (6), Octal (8)
|
String |
getWordDelimeter()
If there is a
wordMap then this delimiter will be used between words |
Map<?,String> |
getWordMap()
Optional word map to map key (characters extracted) to a meaningful Word.
|
void |
setMatchSize(int matchSize)
|
void |
setMaxLenToParse(Integer maxLenToParse)
If specified will only consider upto {@link #maxLenToParse significant positions from the Right
This makes it convenient to remove any padded significant bits or positions that are not in use. |
void |
setRadix(int radix)
Radix: Binary (2), Hex (6), Octal (8)
|
void |
setWordDelimeter(String wordDelimeter)
If there is a
wordMap then this delimiter will be used between words |
void |
setWordMap(Map<?,String> wordMap)
Optional word map to map key (characters extracted) to a meaningful Word.
|
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public int getRadix()
public void setRadix(int radix)
public Map<?,String> getWordMap()
matchSize
for key size
public void setWordMap(Map<?,String> wordMap)
matchSize
for key size
public String getWordDelimeter()
wordMap
then this delimiter will be used between wordspublic void setWordDelimeter(String wordDelimeter)
wordMap
then this delimiter will be used between wordspublic int getMatchSize()
wordMap
defined then; it will extract at a time matchSize
characters from right in increment by this amount also/
The key will contain these many characters.
public void setMatchSize(int matchSize)
wordMap
defined then; it will extract at a time matchSize
characters from right in increment by this amount also/
The key will contain these many characters.
public Integer getMaxLenToParse()
public void setMaxLenToParse(Integer maxLenToParse)
Copyright © 2018. All rights reserved.