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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.jcr.Node
    read(com.google.gson.stream.JsonReader reader)
     
    void
    write(com.google.gson.stream.JsonWriter writer, javax.jcr.Node t)
     

    Methods inherited from class com.google.gson.TypeAdapter

    fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JcrJsonAdapter

      public JcrJsonAdapter()
  • Method Details

    • write

      public void write(com.google.gson.stream.JsonWriter writer, javax.jcr.Node t) throws IOException
      Specified by:
      write in class com.google.gson.TypeAdapter<javax.jcr.Node>
      Throws:
      IOException
    • read

      public javax.jcr.Node read(com.google.gson.stream.JsonReader reader) throws IOException
      Specified by:
      read in class com.google.gson.TypeAdapter<javax.jcr.Node>
      Throws:
      IOException