Interface DataFormat

    • Method Detail

      • readFrom

        DataContainer readFrom​(java.io.InputStream input)
                        throws InvalidDataFormatException,
                               java.io.IOException
        Creates a new DataContainer from the contents of the given InputStream.
        Parameters:
        input - The input stream
        Returns:
        A data container representing the contents of the input stream
        Throws:
        InvalidDataFormatException - If the data in the stream was not a supported format
        java.io.IOException - If there was an error reading from the stream
      • writeTo

        void writeTo​(java.io.OutputStream output,
                     DataView data)
              throws java.io.IOException
        Writes the given DataView to the given OutputStream using the format specified by this DataFormat.
        Parameters:
        output - The output stream to write the data to
        data - The DataView to write to the stream
        Throws:
        java.io.IOException - If there was an error writing to the stream