public class DataFormat extends Object
Constructor and Description |
---|
DataFormat() |
DataFormat(CompoundType type) |
DataFormat(CompoundType type,
ByteOrder byteOrder) |
Modifier and Type | Method and Description |
---|---|
void |
addTypeDef(String name,
Type type) |
DataContext |
createContext(FileChannel fileChannel) |
DataContext |
createContext(File file,
String mode)
Creates a new random access file data context.
|
DataContext |
createContext(IOHandler ioHandler) |
DataContext |
createContext(RandomAccessFile raf) |
DataFormat |
getBasisFormat() |
ByteOrder |
getByteOrder() |
String |
getName() |
CompoundType |
getType() |
Type |
getTypeDef(String name) |
String |
getVersion() |
boolean |
isTypeDef(String name) |
Type |
removeTypeDef(String name) |
void |
setBasisFormat(DataFormat basisFormat) |
void |
setByteOrder(ByteOrder byteOrder) |
void |
setName(String name) |
void |
setType(CompoundType type) |
void |
setVersion(String version) |
public DataFormat()
public DataFormat(CompoundType type)
public DataFormat(CompoundType type, ByteOrder byteOrder)
public DataContext createContext(File file, String mode) throws FileNotFoundException
file
- the file objectmode
- the access mode, one of "r", "rw", "rws", or
"rwd". See also mode description in RandomAccessFile.RandomAccessFile(java.io.File, String)
.FileNotFoundException
- If in read-only mode and the file could nt be found.public DataContext createContext(RandomAccessFile raf)
public DataContext createContext(FileChannel fileChannel)
public DataContext createContext(IOHandler ioHandler)
public DataFormat getBasisFormat()
public void setBasisFormat(DataFormat basisFormat)
public CompoundType getType()
public void setType(CompoundType type)
public String getName()
public void setName(String name)
public String getVersion()
public void setVersion(String version)
public ByteOrder getByteOrder()
public void setByteOrder(ByteOrder byteOrder)
public boolean isTypeDef(String name)
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.