fr.paris.lutece.plugins.comarquage.util.cache.genericimpl
Class DirectStringObjectTransform

java.lang.Object
  extended by fr.paris.lutece.plugins.comarquage.util.cache.genericimpl.DirectStringObjectTransform
All Implemented Interfaces:
IObjectTransform

public class DirectStringObjectTransform
extends java.lang.Object
implements IObjectTransform

Simple code/decode a byte array into String with encoding or not
Properties read here:


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

DirectStringObjectTransform

public DirectStringObjectTransform()
Public constructor

Method Detail

init

public void init(java.lang.String strBase)
Description copied from interface: IObjectTransform
Init the instance with params based on prefix strBase

Specified by:
init in interface IObjectTransform
Parameters:
strBase - The prefix of params to search
See Also:
IObjectTransform.init(String)

transformToBinary

public byte[] transformToBinary(java.lang.Object o)
Description copied from interface: IObjectTransform
Transform the object into bytes array

Specified by:
transformToBinary in interface IObjectTransform
Parameters:
o - the object to transform
Returns:
the object into bytes array encoded
See Also:
IObjectTransform.transformToBinary(Object)

transformToObject

public java.lang.Object transformToObject(byte[] b)
Description copied from interface: IObjectTransform
Transform the bytes array into object

Specified by:
transformToObject in interface IObjectTransform
Parameters:
b - the bytes array to transform into object
Returns:
the object coded
See Also:
IObjectTransform.transformToObject(byte[])


Copyright © 2008 Mairie de Paris. All Rights Reserved.