Package org.apache.jackrabbit.oak.json
Class JsonSerializer
- java.lang.Object
-
- org.apache.jackrabbit.oak.json.JsonSerializer
-
public class JsonSerializer extends Object
Utility class for serializing node and property states to JSON.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_FILTER_EXPRESSION
-
Constructor Summary
Constructors Constructor Description JsonSerializer(int depth, long offset, int maxChildNodes, String filter, BlobSerializer blobs)
JsonSerializer(JsopWriter json, int depth, long offset, int maxChildNodes, String filter, BlobSerializer blobs)
JsonSerializer(JsopWriter json, int depth, long offset, int maxChildNodes, String filter, BlobSerializer blobs, boolean catchExceptions)
JsonSerializer(JsopWriter json, String filter, BlobSerializer blobs)
JsonSerializer(JsopWriter json, BlobSerializer blobs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JsonSerializer
getChildSerializer()
void
serialize(PropertyState property)
void
serialize(PropertyState property, Type<?> type, int index)
void
serialize(NodeState node)
void
serialize(NodeState node, String basePath)
String
toString()
-
-
-
Field Detail
-
DEFAULT_FILTER_EXPRESSION
public static final String DEFAULT_FILTER_EXPRESSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JsonSerializer
public JsonSerializer(int depth, long offset, int maxChildNodes, String filter, BlobSerializer blobs)
-
JsonSerializer
public JsonSerializer(JsopWriter json, int depth, long offset, int maxChildNodes, String filter, BlobSerializer blobs)
-
JsonSerializer
public JsonSerializer(JsopWriter json, int depth, long offset, int maxChildNodes, String filter, BlobSerializer blobs, boolean catchExceptions)
-
JsonSerializer
public JsonSerializer(JsopWriter json, BlobSerializer blobs)
-
JsonSerializer
public JsonSerializer(JsopWriter json, String filter, BlobSerializer blobs)
-
-
Method Detail
-
getChildSerializer
protected JsonSerializer getChildSerializer()
-
serialize
public void serialize(NodeState node)
-
serialize
public void serialize(PropertyState property)
-
serialize
public void serialize(PropertyState property, Type<?> type, int index)
-
-