public class ToStringEncoder extends CoderAdapter implements Encoder.Text<Object>
Object.toString() method.Encoder.Binary<T>, Encoder.BinaryStream<T>, Encoder.Text<T>, Encoder.TextStream<T>| Constructor and Description |
|---|
ToStringEncoder() |
| Modifier and Type | Method and Description |
|---|---|
String |
encode(Object object)
Encode the given object into a String.
|
destroy, initpublic String encode(Object object) throws EncodeException
Encoder.Textencode in interface Encoder.Text<Object>object - the object being encoded.EncodeException - The provided object could not be encoded as a stringCopyright © 2012–2019 Oracle Corporation. All rights reserved.