Package ucar.nc2.stream
Class NcStreamWriter
- java.lang.Object
-
- ucar.nc2.stream.NcStreamWriter
-
public class NcStreamWriter extends Object
Write a NetcdfFile to an OutputStream using ncstream protocol- Since:
- Feb 7, 2009
-
-
Constructor Summary
Constructors Constructor Description NcStreamWriter(NetcdfFile ncfile, String location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
sendData(Variable v, Section section, OutputStream out, NcStreamCompression compress)
long
sendData2(Variable v, Section section, OutputStream out, NcStreamCompression compress)
long
sendEnd(OutputStream out)
long
sendHeader(OutputStream out)
long
sendStart(OutputStream out)
long
streamAll(OutputStream out)
-
-
-
Constructor Detail
-
NcStreamWriter
public NcStreamWriter(NetcdfFile ncfile, String location) throws IOException
- Throws:
IOException
-
-
Method Detail
-
sendStart
public long sendStart(OutputStream out) throws IOException
- Throws:
IOException
-
sendEnd
public long sendEnd(OutputStream out) throws IOException
- Throws:
IOException
-
sendHeader
public long sendHeader(OutputStream out) throws IOException
- Throws:
IOException
-
sendData
public long sendData(Variable v, Section section, OutputStream out, NcStreamCompression compress) throws IOException, InvalidRangeException
- Throws:
IOException
InvalidRangeException
-
sendData2
public long sendData2(Variable v, Section section, OutputStream out, NcStreamCompression compress) throws IOException, InvalidRangeException
- Throws:
IOException
InvalidRangeException
-
streamAll
public long streamAll(OutputStream out) throws IOException, InvalidRangeException
- Throws:
IOException
InvalidRangeException
-
-