Class JsonLDHandler

java.lang.Object
edu.ucsb.nceas.metacat.object.handler.NonXMLMetadataHandler
edu.ucsb.nceas.metacat.object.handler.JsonLDHandler

public class JsonLDHandler extends NonXMLMetadataHandler
The handler of JSON-LD objects to save bytes to disk
Author:
tao
  • Constructor Details

    • JsonLDHandler

      public JsonLDHandler()
      Default constructor
  • Method Details

    • validate

      public boolean validate(InputStream source) throws org.dataone.service.exceptions.InvalidRequest
      Description copied from class: NonXMLMetadataHandler
      The abstract method to validate the non-xml object
      Specified by:
      validate in class NonXMLMetadataHandler
      Parameters:
      source - the input stream contains the content of the meta data object
      Returns:
      true if the content is valid; false otherwise.
      Throws:
      org.dataone.service.exceptions.InvalidRequest - when the content is not valid