Interface FormatWriter<Type>

Type Parameters:
Type -

public interface FormatWriter<Type>
Converts a Java Object to a mimetype
Author:
davidc
  • Method Details

    • getSourceClass

      Class<? extends Type> getSourceClass()
      Gets the source Java class to convert from
      Returns:
      Java class
    • getDestinationMimetype

      String getDestinationMimetype()
      Gets the mimetype to convert to
      Returns:
      mimetype
    • write

      void write(Type object, Writer output)
      Converts Java object to mimetype
      Parameters:
      object - Type
      output - Writer
    • write

      void write(Type object, OutputStream output)
      Converts Java object to mimetype
      Parameters:
      object - Type
      output - OutputStream