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.EncodeExceptionCopyright © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.