Package com.adobe.acs.commons.json
Class JcrJsonAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<javax.jcr.Node>
-
- com.adobe.acs.commons.json.JcrJsonAdapter
-
public class JcrJsonAdapter extends com.google.gson.TypeAdapter<javax.jcr.Node>Type adapter to convert JCR Nodes to JSON Objects (replacement for deprecated NodeItemWriter.)
-
-
Constructor Summary
Constructors Constructor Description JcrJsonAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jcr.Noderead(com.google.gson.stream.JsonReader reader)voidwrite(com.google.gson.stream.JsonWriter writer, javax.jcr.Node t)
-
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter writer, javax.jcr.Node t) throws IOException- Specified by:
writein classcom.google.gson.TypeAdapter<javax.jcr.Node>- Throws:
IOException
-
read
public javax.jcr.Node read(com.google.gson.stream.JsonReader reader) throws IOException- Specified by:
readin classcom.google.gson.TypeAdapter<javax.jcr.Node>- Throws:
IOException
-
-