public interface IOServiceProviderWriter extends IOServiceProvider
Modifier and Type | Method and Description |
---|---|
int |
appendStructureData(Structure s,
StructureData sdata)
Deprecated.
Append a structureData along the unlimited dimension
|
void |
create(String filename,
NetcdfFile ncfile,
int extra,
long preallocateSize,
boolean largeFile)
Deprecated.
Create new file, populate it from the objects in ncfile.
|
void |
flush()
Deprecated.
Flush all data buffers to disk.
|
void |
openForWriting(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask)
Deprecated.
Open existing file and allow writing.
|
boolean |
rewriteHeader(boolean largeFile)
Deprecated.
if theres room before data, rewrite header without moving the data.
|
void |
setFill(boolean fill)
Deprecated.
Set the fill flag.
|
void |
updateAttribute(Variable v2,
Attribute att)
Deprecated.
Update the value of an existing attribute.
|
void |
writeData(Variable v2,
Section section,
Array values)
Deprecated.
Write data into a variable.
|
build, buildFinish, close, getDetailInfo, getFileTypeDescription, getFileTypeId, getFileTypeVersion, getStructureIterator, isBuilder, isValidFile, open, reacquire, readData, readSection, readToByteChannel, readToOutputStream, release, sendIospMessage, streamToByteChannel, syncExtend, toStringDebug
void create(String filename, NetcdfFile ncfile, int extra, long preallocateSize, boolean largeFile) throws IOException
filename
- name of file to create.ncfile
- get everything but data from hereextra
- if > 0, pad header with extra bytespreallocateSize
- if > 0, set length of file to this upon creation - this (usually) pre-allocates contiguous
storage.largeFile
- if want large file formatIOException
- if I/O errorvoid openForWriting(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException
raf
- the file to work on.ncfile
- add objects to this empty NetcdfFilecancelTask
- used to monitor user cancellation; may be null.IOException
- if I/O errorvoid setFill(boolean fill)
fill
- set fill mode true or falsevoid writeData(Variable v2, Section section, Array values) throws IOException, InvalidRangeException
v2
- variable to write; must already exist.section
- the section of data to write.
There must be a Range for each Dimension in the variable, in order.
The shape must match the shape of values.
The origin and stride indicate where the data is placed into the stored Variable array.values
- data to write. The shape must match section.getShape().IOException
- if I/O errorInvalidRangeException
- if invalid sectionint appendStructureData(Structure s, StructureData sdata) throws IOException, InvalidRangeException
s
- belongs to this structuresdata
- the stuctureData to appendIOException
InvalidRangeException
boolean rewriteHeader(boolean largeFile) throws IOException
IOException
void updateAttribute(Variable v2, Attribute att) throws IOException
v2
- variable, or null for global attributeatt
- replace with this valueIOException
void flush() throws IOException
IOException