Interface DataFormatWriter

All Known Implementing Classes:
DomXmlDataFormatWriter, JacksonJsonDataFormatWriter

public interface DataFormatWriter
Author:
Daniel Meyer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    writeToWriter(Writer writer, Object input)
    Writes the internal representation, as provided by input to the supplied writer according to the data format that the implementation belongs to.
  • Method Details

    • writeToWriter

      void writeToWriter(Writer writer, Object input)
      Writes the internal representation, as provided by input to the supplied writer according to the data format that the implementation belongs to. For example, an XML data format writer writes XML.
      Parameters:
      writer - The writer to write the output to
      input - The object to write. Can be safely cast to the internal format of the data format.