Class ObjectCodecService.StringCodec

java.lang.Object
org.nuxeo.ecm.automation.io.services.codec.ObjectCodec<String>
org.nuxeo.ecm.automation.io.services.codec.ObjectCodecService.StringCodec
Enclosing class:
ObjectCodecService

public static class ObjectCodecService.StringCodec extends ObjectCodec<String>
  • Constructor Details

    • StringCodec

      public StringCodec()
  • Method Details

    • getType

      public String getType()
      Description copied from class: ObjectCodec
      Get this codec type. Implementors can override to return a short name. The default name is the object type name.
      Overrides:
      getType in class ObjectCodec<String>
    • write

      public void write(com.fasterxml.jackson.core.JsonGenerator jg, String value) throws IOException
      Overrides:
      write in class ObjectCodec<String>
      Throws:
      IOException
    • read

      public String read(com.fasterxml.jackson.core.JsonParser jp, CoreSession session) throws IOException
      Description copied from class: ObjectCodec
      When the object codec is called the stream is positioned on the first value. For inlined objects this is the first value after the "entity-type" property. For non inlined objects this will be the object itself (i.e. '{' or '[')
      Overrides:
      read in class ObjectCodec<String>
      Throws:
      IOException
    • isBuiltin

      public boolean isBuiltin()
      Description copied from class: ObjectCodec
      Whether this codec is a builtin codec
      Overrides:
      isBuiltin in class ObjectCodec<String>
    • register

      public void register(ObjectCodecService service)