org.geomajas.dojo.server.json
Class JsonObjectWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
org.geomajas.dojo.server.json.JsonObjectWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class JsonObjectWriter
- extends FilterWriter
Writes a JSON object directly to a Writer. Based on toString() code of JSON
package.
- Author:
- Jan De Moerloose
|
Method Summary |
void |
write(char[] cbuf,
int off,
int len)
|
void |
write(int c)
|
void |
write(org.json.JSONObject object)
|
void |
write(com.metaparadigm.jsonrpc.JSONRPCResult result)
|
void |
write(String str,
int off,
int len)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonObjectWriter
public JsonObjectWriter(Writer arg0,
int logLines)
write
public void write(char[] cbuf,
int off,
int len)
throws IOException
- Overrides:
write in class FilterWriter
- Throws:
IOException
write
public void write(int c)
throws IOException
- Overrides:
write in class FilterWriter
- Throws:
IOException
write
public void write(String str,
int off,
int len)
throws IOException
- Overrides:
write in class FilterWriter
- Throws:
IOException
write
public void write(org.json.JSONObject object)
throws IOException
- Throws:
IOException
write
public void write(com.metaparadigm.jsonrpc.JSONRPCResult result)
throws IOException
- Throws:
IOException
Copyright © 2010 Geosparc. All Rights Reserved.