public class TextEncodableAdapter extends Object
Modifier | Constructor and Description |
---|---|
protected |
TextEncodableAdapter() |
Modifier and Type | Method and Description |
---|---|
static TextDecoder |
decode(Object target,
TextDecoder td) |
static TextDecoder |
decodeFields(Object target,
Field[] fields,
TextDecoder td,
String baseName)
You can call this within your decode(TextDecoder te) method to encode specific
fields.
|
static TextDecoder |
decodeFields(Object target,
String fieldNames,
TextDecoder td,
String baseName)
You can call this within your decode(TextDecoder te) method to encode specific
fields.
|
static TextEncoder |
encode(Object target,
TextEncoder te) |
static TextEncoder |
encodeFields(Object target,
Field[] fields,
TextEncoder te,
String baseName)
You can call this within your encode(TextEncoder te) method to encode specific
fields.
|
static TextEncoder |
encodeFields(Object target,
String fieldNames,
TextEncoder te,
String baseName)
You can call this within your encode(TextEncoder te) method to encode specific
fields.
|
static void |
textDecode(Object target,
String txt)
You can override this to decode a String representation of the Object as
encoded by textEncode, but it is easier to override decode(TextDecoder te).
|
static String |
textEncode(Object target)
You can override this to encode the object as a String, but it is easier to override
encode(TextEncoder te).
|
public static String textEncode(Object target)
public static void textDecode(Object target, String txt)
public static TextEncoder encode(Object target, TextEncoder te)
public static TextEncoder encodeFields(Object target, Field[] fields, TextEncoder te, String baseName)
fields
- An array of fields.te
- A TextEncoder object.baseName
- Either the fully qualified class and package name or the class name (without package) of the object.public static TextEncoder encodeFields(Object target, String fieldNames, TextEncoder te, String baseName)
fieldNames
- A comma separated list of field names.te
- A TextEncoder object.baseName
- Either the fully qualified class and package name or the class name (without package) of the object.public static TextDecoder decode(Object target, TextDecoder td)
public static TextDecoder decodeFields(Object target, String fieldNames, TextDecoder td, String baseName)
fieldNames
- A comma separated list of field names.td
- A TextDecoder object.baseName
- Either the fully qualified class and package name or the class name (without package) of the object.public static TextDecoder decodeFields(Object target, Field[] fields, TextDecoder td, String baseName)
fields
- A list of fields.td
- A TextDecoder object.baseName
- Either the fully qualified class and package name or the class name (without package) of the object.