Class 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 Detail

      • JcrJsonAdapter

        public JcrJsonAdapter()
    • Method Detail

      • 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