|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.comarquage.util.cache.genericimpl.DirectStringObjectTransform
public class DirectStringObjectTransform
Simple code/decode a byte array into String with encoding or not
Properties read here:
.objToByteEncoding
: The encoding used to encode string into bytes array..byteToObjEncoding
: The encoding used to decode bytes array to string.
Constructor Summary | |
---|---|
DirectStringObjectTransform()
Public constructor |
Method Summary | |
---|---|
void |
init(java.lang.String strBase)
Init the instance with params based on prefix strBase |
byte[] |
transformToBinary(java.lang.Object o)
Transform the object into bytes array |
java.lang.Object |
transformToObject(byte[] b)
Transform the bytes array into object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectStringObjectTransform()
Method Detail |
---|
public void init(java.lang.String strBase)
IObjectTransform
strBase
init
in interface IObjectTransform
strBase
- The prefix of params to searchIObjectTransform.init(String)
public byte[] transformToBinary(java.lang.Object o)
IObjectTransform
transformToBinary
in interface IObjectTransform
o
- the object to transform
IObjectTransform.transformToBinary(Object)
public java.lang.Object transformToObject(byte[] b)
IObjectTransform
transformToObject
in interface IObjectTransform
b
- the bytes array to transform into object
IObjectTransform.transformToObject(byte[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |