Interface DataFormat

    • Method Detail

      • readFrom

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

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