Class FHIRJsonGenerator

    • Constructor Detail

      • FHIRJsonGenerator

        protected FHIRJsonGenerator​(boolean prettyPrinting)
    • Method Detail

      • generate

        public void generate​(Visitable visitable,
                             OutputStream out)
                      throws FHIRGeneratorException
        Description copied from interface: FHIRGenerator
        Write visitable to the passed OutputStream. This method does not close the passed OutputStream. For visitable of type Resource, this serializes the resource in accordance with the specification. For visitable of type Element, this serializes the element content using a suitable wrapper for the configured format.
        Specified by:
        generate in interface FHIRGenerator
        Specified by:
        generate in class FHIRAbstractGenerator
        Parameters:
        visitable - The visitable Resource or Element to serialize
        Throws:
        FHIRGeneratorException
      • generate

        public void generate​(Visitable visitable,
                             Writer writer)
                      throws FHIRGeneratorException
        Description copied from interface: FHIRGenerator
        Write visitable using the passed Writer. This method does not close the passed Writer. For visitable of type Resource, this serializes the resource in accordance with the specification. For visitable of type Element, this serializes the element content using a suitable wrapper for the configured format.
        Specified by:
        generate in interface FHIRGenerator
        Specified by:
        generate in class FHIRAbstractGenerator
        Parameters:
        visitable - The visitable Resource or Element to serialize
        Throws:
        FHIRGeneratorException