public class StringAccessor extends Object implements PropertyAccessor<String>
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
StringAccessor() |
| Modifier and Type | Method and Description |
|---|---|
String |
fromBytes(Class targetClass,
byte[] bytes)
From bytes.
|
String |
fromString(Class targetClass,
String s)
Converts string representation to the data object whose type is T.
|
String |
getCopy(Object object)
Gets copy of object
|
String |
getInstance(Class<?> clazz) |
byte[] |
toBytes(Object s)
To bytes.
|
String |
toString(Object object)
Converts Object to String.
|
public final String fromBytes(Class targetClass, byte[] bytes)
PropertyAccessorfromBytes in interface PropertyAccessor<String>bytes - the bpublic final byte[] toBytes(Object s) throws PropertyAccessException
PropertyAccessortoBytes in interface PropertyAccessor<String>s - the objectPropertyAccessException - the property access exceptionpublic final String toString(Object object)
PropertyAccessortoString in interface PropertyAccessor<String>object - the objectpublic String fromString(Class targetClass, String s)
PropertyAccessorfromString in interface PropertyAccessor<String>s - the spublic String getCopy(Object object)
PropertyAccessorgetCopy in interface PropertyAccessor<String>public String getInstance(Class<?> clazz)
getInstance in interface PropertyAccessor<String>Copyright © 2015. All Rights Reserved.