Package com.bc.ceres.binio
package com.bc.ceres.binio
The core
binio API.
binio is a low-level API used to read and write arbitrarily formetted binary files.
It imposes the following programming model:
// Static format declaration:
CompoundType type = TypeBuilder.COMPOUND("dataset", ...);
DataFormat format = new Format(type);
// Reading/writing a file using the given format:
DataContextImpl context = format.createContext(file);
CompoundData compoundData = context.getData();
// Here: Invoke methods on compoundData ...
context.dispose();
The TypeBuilder class to easily build complex types.
Types can also be read from external plain text files using the
TypeParser class.
-
ClassDescriptionA collection of elements.A compound of members of any type.A runtime exception which is used to signal an illegal data access throughout the API.The context provides the means to read from or write to a random access stream or file.A binary data format.Provides the mechanism to read and write byte data at a specified position within a random access data file, stream or memory buffer.A sequence of elements of same type.A utility class which fosters the construction of complex type defintions.