edu.ucsb.nceas.metacat.object.handler

## 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 Summary

    Constructors
    Constructor and Description
    `JsonLDHandler()` Default constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `validate(java.io.InputStream source)` The abstract method to validate the non-xml object

    - ### Methods inherited from class edu.ucsb.nceas.metacat.object.handler.NonXMLMetadataHandler

      `save, saveReplication`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JsonLDHandler

          public JsonLDHandler()

      Default constructor

  - ### Method Detail

    - #### validate

          public boolean validate(java.io.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

Copyright © 2023 Regents of the University of California. All Rights Reserved.