java.lang.Object |
↳ |
org.mule.module.hbase.api.ByteArrayConverter |
Class Overview
Object to byte array converter.
Summary
Fields |
private
final
Charset |
conversionCharset |
The Charset used for converting strings to byte array
|
Public Methods |
byte[]
|
toByteArray(Object o)
Converts the given object into a byte array.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Fields
private
final
Charset
conversionCharset
The Charset used for converting strings to byte array
Public Constructors
public
ByteArrayConverter
(Charset convertionCharset)
Public Methods
public
byte[]
toByteArray
(Object o)
Converts the given object into a byte array. If the object is a byte array, is
is returned as is. If the object is an string, it is written in the provided
conversionCharset given by constructor. Any other serializable object is
converted into a byte array using serialization.
Returns
- a byte array representation of the given object