Class DocumentModelListJsonWriter

All Implemented Interfaces:
Marshaller<List<DocumentModel>>, Writer<List<DocumentModel>>

@Setup(mode=SINGLETON, priority=2000) public class DocumentModelListJsonWriter extends DefaultListJsonWriter<DocumentModel>
Since:
7.2
  • Field Details

  • Constructor Details

    • DocumentModelListJsonWriter

      public DocumentModelListJsonWriter()
  • Method Details

    • write

      public void write(List<DocumentModel> docs, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
      Description copied from class: AbstractJsonWriter
      Implement this method to writes the entity in the provided JsonGenerator.

      This method implementation can use injected properties.

      The JsonGenerator's flushing is done by this abstract class, it's also not not necessary to flush it. Do not close the provided JsonGenerator. It may be used is another marshaller calling this one.

      Overrides:
      write in class DefaultListJsonWriter<DocumentModel>
      Parameters:
      docs - The entity to marshall as Json.
      jg - The JsonGenerator used to produce Json output.
      Throws:
      IOException