public class EndecaObjectWriterUtil
extends java.lang.Object
Constructor and Description |
---|
EndecaObjectWriterUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
encodeObject(java.lang.Object o) |
static void |
writeObjectToStream(java.lang.Object obj,
java.io.OutputStream outStream,
java.lang.Class<?> view,
java.lang.String callback)
Convenience method for outputting an Object to an output stream, with the name of a JavaScript callback function to be appended to the
response.
|
static void |
writeObjectToStream(java.lang.Object obj,
java.io.OutputStream outStream,
java.lang.Class<?> view,
java.lang.String callback,
org.codehaus.jackson.map.ObjectMapper mapper) |
public static java.lang.String encodeObject(java.lang.Object o) throws java.io.IOException
java.io.IOException
public static void writeObjectToStream(java.lang.Object obj, java.io.OutputStream outStream, java.lang.Class<?> view, java.lang.String callback) throws java.io.IOException
obj
- the Object to write to the streamoutStream
- the streamview
- The class that defines the Jackson JsonView that should be written.callback
- the name of the JavaScript callback functionjava.io.IOException
public static void writeObjectToStream(java.lang.Object obj, java.io.OutputStream outStream, java.lang.Class<?> view, java.lang.String callback, org.codehaus.jackson.map.ObjectMapper mapper) throws java.io.IOException
java.io.IOException
Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.