public class JsonSerializer extends Object
The following rules apply.
Constructor and Description |
---|
JsonSerializer(Writer pWriter)
Create a JsonSerializer with the given Writer.
|
public JsonSerializer(Writer pWriter)
pWriter
- The writer to be used as a character streampublic void write(Object pObject) throws IOException
pObject
- The object to be serializedIOException
- Any exception thrown by the underlying writer.Copyright © 2013, Oracle and/or its affiliates. All rights reserved.