|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IOServiceProviderWriter
This is the service provider interface for the low-level I/O writing. This is only used by service implementors.
| Method Summary | |
|---|---|
void |
create(java.lang.String filename,
NetcdfFile ncfile,
boolean fill)
Create new file, populate it from the objects in ncfile. |
void |
create(java.lang.String filename,
NetcdfFile ncfile,
boolean fill,
long size)
Experimental |
void |
flush()
Flush all data buffers to disk. |
void |
setFill(boolean fill)
Set the fill flag. |
void |
updateAttribute(Variable v2,
Attribute att)
Update the value of an existing attribute. |
void |
writeData(Variable v2,
java.util.List section,
Array values)
Write data into a variable. |
| Methods inherited from interface ucar.nc2.IOServiceProvider |
|---|
close, getDetailInfo, isValidFile, open, readData, readNestedData, setSpecial, sync, syncExtend, toStringDebug |
| Method Detail |
|---|
void create(java.lang.String filename,
NetcdfFile ncfile,
boolean fill)
throws java.io.IOException
filename - name of file to create.ncfile - get dimensions, attributes, and variables from here.fill - if true, write fill value into all variables.
java.io.IOExceptionvoid setFill(boolean fill)
fill - set fill mode true or false
void create(java.lang.String filename,
NetcdfFile ncfile,
boolean fill,
long size)
throws java.io.IOException
java.io.IOException
void writeData(Variable v2,
java.util.List section,
Array values)
throws java.io.IOException,
InvalidRangeException
v2 - variable to write; must already exist.section - List of type Range specifying 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.values - data to write. The shape must match the shape of Range list.
java.io.IOException
InvalidRangeException
void updateAttribute(Variable v2,
Attribute att)
throws java.io.IOException
v2 - variable, or null for global attributeatt - replace with this value
java.io.IOException
void flush()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||