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, init
public String encode(Object object) throws EncodeException
Encoder.Text
encode
in interface Encoder.Text<Object>
object
- the object being encoded.EncodeException
Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.