Interface FormatWriter<Type>

  • Type Parameters:
    Type -

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

      • getSourceClass

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

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

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

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