Interface OutputFormatWriter<T>

  • All Superinterfaces:
    Converter<T>
    All Known Implementing Classes:
    AbstractConverter, StringConverter

    public interface OutputFormatWriter<T>
    extends Converter<T>
    A Java converter also has to be an OutputFormatWriter that writes the converted content to a stream. This interface is only called if the caller asks to write the generated content to a file or a stream. Otherwise the generated content, e.g. a String some other object representation will be returned to the caller.
    • Method Detail

      • write

        void write​(T output,
                   java.io.OutputStream out)
            throws java.io.IOException
        Throws:
        java.io.IOException