Package org.httprpc.io
Class JSONEncoder
- java.lang.Object
-
- org.httprpc.io.Encoder<java.lang.Object>
-
- org.httprpc.io.JSONEncoder
-
public class JSONEncoder extends Encoder<java.lang.Object>
JSON encoder.
-
-
Constructor Summary
Constructors Constructor Description JSONEncoder()Constructs a new JSON encoder.JSONEncoder(boolean compact)Constructs a new JSON encoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(java.lang.Object value, java.io.Writer writer)Writes a value to a character stream.-
Methods inherited from class org.httprpc.io.Encoder
getCharset, write
-
-
-
-
Method Detail
-
write
public void write(java.lang.Object value, java.io.Writer writer) throws java.io.IOExceptionDescription copied from class:EncoderWrites a value to a character stream.
-
-