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