Package com.bc.ceres.binio
Class DataFormat
java.lang.Object
com.bc.ceres.binio.DataFormat
A binary data format.
-
Constructor Summary
ConstructorsConstructorDescriptionDataFormat
(CompoundType type) DataFormat
(CompoundType type, ByteOrder byteOrder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTypeDef
(String name, Type type) createContext
(IOHandler ioHandler) createContext
(File file, String mode) Creates a new random access file data context.createContext
(FileChannel fileChannel) getName()
getType()
getTypeDef
(String name) boolean
removeTypeDef
(String name) void
setBasisFormat
(DataFormat basisFormat) void
setByteOrder
(ByteOrder byteOrder) void
void
setType
(CompoundType type) void
setVersion
(String version)
-
Constructor Details
-
DataFormat
public DataFormat() -
DataFormat
-
DataFormat
-
-
Method Details
-
createContext
Creates a new random access file data context.- Parameters:
file
- the file objectmode
- the access mode, one of "r", "rw", "rws", or "rwd". See also mode description inRandomAccessFile(java.io.File, String)
.- Returns:
- The context.
- Throws:
FileNotFoundException
- If in read-only mode and the file could nt be found.
-
createContext
-
createContext
-
createContext
-
getBasisFormat
-
setBasisFormat
-
getType
-
setType
-
getName
-
setName
-
getVersion
-
setVersion
-
getByteOrder
-
setByteOrder
-
isTypeDef
-
getTypeDef
-
addTypeDef
-
removeTypeDef
-