Interface DataWriter<T>

  • Type Parameters:
    T - data type of the series to be written.

    public interface DataWriter<T>
    A basic interface defining a writer. It can ... write! In terms of CRAM this is an abstraction to get rid off implementation details like what is data and where to write to. Pure consumer. Note: the interface does not have writeArray method like it's counterpart DataReader because array length is known when writing, therefore the same interface can be used both for single objects and arrays.
    • Method Detail

      • writeData

        long writeData​(T value)
                throws IOException
        Write some data out.
        Parameters:
        value - data to be written
        Returns:
        number of bits written
        Throws:
        IOException - as per java IO contract