Interface IWriteToStream

    • Method Detail

      • writeTo

        void writeTo​(@Nonnull @WillNotClose
                     OutputStream aOS)
              throws IOException
        Write everything to the passed output stream.
        Parameters:
        aOS - The output stream to write to. May not be null. The OutputStream must not closed by implementations of this class.
        Throws:
        IOException - In case of IO error
      • writeToAndClose

        default void writeToAndClose​(@Nonnull @WillClose
                                     OutputStream aOS)
                              throws IOException
        Write everything to the passed output stream and close it.
        Parameters:
        aOS - The output stream to write to. May not be null.
        Throws:
        IOException - In case of IO error. Even than the OutputStream is closed!