public interface DataContext
I/O performance my be tuned by setting the ceres.binio.segmentSizeLimit
system property
to the size (in bytes) of data segments shared by multiple subsequent compounds members.
Modifier and Type | Method and Description |
---|---|
CompoundData |
createData()
Creates an instance of a compound with I/O starting
at the beginning of the stream or file.
|
CompoundData |
createData(CompoundType type,
long position)
Creates an instance of a compound with the given type and with I/O starting
at the given stream or file position.
|
CompoundData |
createData(long position)
Creates an instance of a compound with the given type and with I/O starting
at the given stream or file position.
|
void |
dispose()
Disposes this context and releases all associated resources.
|
CompoundData |
getData()
Gets an instance of a compound with I/O starting at the given stream or file position.
|
CompoundData |
getData(CompoundType type,
long position)
Deprecated.
use
createData(long) instead |
CompoundData |
getData(long position)
Deprecated.
use
createData(long) instead |
DataFormat |
getFormat() |
IOHandler |
getHandler() |
DataFormat getFormat()
IOHandler getHandler()
CompoundData getData()
createData()
, the method will always return the same compound instance.createData()
,
getFormat()
CompoundData createData()
getFormat()
CompoundData createData(long position)
position
- The file position in bytes.getFormat()
CompoundData createData(CompoundType type, long position)
type
- The compound type.position
- The file position in bytes.void dispose()
@Deprecated CompoundData getData(long position)
createData(long)
insteadposition
- The file position in bytes.createData()
,
getFormat()
@Deprecated CompoundData getData(CompoundType type, long position)
createData(long)
insteadtype
- The compound type.position
- The file position in bytes.getFormat()
Copyright © 2014–2016 European Space Agency (ESA). All rights reserved.