ucar.nc2
Interface IOServiceProviderWriter

All Superinterfaces:
IOServiceProvider
All Known Implementing Classes:
N3iosp

public interface IOServiceProviderWriter
extends IOServiceProvider

This is the service provider interface for the low-level I/O writing. This is only used by service implementors.

Version:
$Revision:51 $ $Date:2006-07-12 17:13:13Z $
Author:
caron

Method Summary
 void create(java.lang.String filename, NetcdfFile ncfile, boolean fill)
          Create new file, populate it from the objects in ncfile.
 void flush()
          Flush all data buffers to disk.
 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

create

void create(java.lang.String filename,
            NetcdfFile ncfile,
            boolean fill)
            throws java.io.IOException
Create new file, populate it from the objects in ncfile.

Parameters:
filename - name of file to create.
ncfile - get dimensions, attributes, and variables from here.
fill - if true, write fill value into all variables.
Throws:
java.io.IOException

writeData

void writeData(Variable v2,
               java.util.List section,
               Array values)
               throws java.io.IOException,
                      InvalidRangeException
Write data into a variable.

Parameters:
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.
Throws:
java.io.IOException
InvalidRangeException

flush

void flush()
           throws java.io.IOException
Flush all data buffers to disk.

Throws:
java.io.IOException