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 longsendData(Variable v, Section section, OutputStream out, NcStreamCompression compress)longsendData2(Variable v, Section section, OutputStream out, NcStreamCompression compress)longsendEnd(OutputStream out)longsendHeader(OutputStream out)longsendStart(OutputStream out)longstreamAll(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:
IOExceptionInvalidRangeException
-
sendData2
public long sendData2(Variable v, Section section, OutputStream out, NcStreamCompression compress) throws IOException, InvalidRangeException
- Throws:
IOExceptionInvalidRangeException
-
streamAll
public long streamAll(OutputStream out) throws IOException, InvalidRangeException
- Throws:
IOExceptionInvalidRangeException
-
-