Skip navigation links

Package com.bc.ceres.binio

The core binio API.

See: Description

Package com.bc.ceres.binio Description

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.

Skip navigation links

Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.