@Deprecated
public class Nc4Iosp
extends ucar.nc2.iosp.AbstractIOServiceProvider
implements ucar.nc2.iosp.IOServiceProviderWriter
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG
Deprecated.
|
static int |
NC_TURN_OFF_LOGGING
Deprecated.
|
static java.lang.String |
TRANSLATE_NC4
Deprecated.
|
static java.lang.String |
TRANSLATE_NONE
Deprecated.
|
static java.lang.String |
TRANSLATECONTROL
Deprecated.
|
| Constructor and Description |
|---|
Nc4Iosp()
Deprecated.
|
Nc4Iosp(ucar.nc2.NetcdfFileWriter.Version version)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
appendStructureData(ucar.nc2.Structure s,
ucar.ma2.StructureData sdata)
Deprecated.
|
void |
close()
Deprecated.
|
void |
create(java.lang.String filename,
ucar.nc2.NetcdfFile ncfile,
int extra,
long preallocateSize,
boolean largeFile)
Deprecated.
|
static void |
dumpbytes(byte[] bytes,
int start,
int len,
java.lang.String tag)
Deprecated.
|
void |
flush()
Deprecated.
|
static Nc4prototypes |
getCLibrary()
Deprecated.
use NetcdfClibrary.getNativeInterface
|
java.lang.String |
getFileTypeDescription()
Deprecated.
|
java.lang.String |
getFileTypeId()
Deprecated.
|
java.lang.String |
getFileTypeVersion()
Deprecated.
|
static long |
getNativeAddr(int pos,
java.nio.ByteBuffer buf)
Deprecated.
|
static boolean |
isClibraryPresent()
Deprecated.
use NetcdfClibrary.isLibraryPresent
|
boolean |
isValidFile(ucar.unidata.io.RandomAccessFile raf)
Deprecated.
Checks whether
raf is a valid file NetCDF-4 file. |
void |
open(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask)
Deprecated.
|
void |
openForWriting(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask)
Deprecated.
|
ucar.ma2.Array |
readData(ucar.nc2.Variable v2,
ucar.ma2.Section section)
Deprecated.
|
boolean |
rewriteHeader(boolean largeFile)
Deprecated.
|
java.lang.Object |
sendIospMessage(java.lang.Object message)
Deprecated.
|
Nc4Iosp |
setAddReserved(boolean tf)
Deprecated.
|
void |
setChunker(ucar.nc2.write.Nc4Chunking chunker)
Deprecated.
|
static void |
setDebugFlags(ucar.nc2.util.DebugFlags flags)
Deprecated.
|
void |
setFill(boolean fill)
Deprecated.
|
static void |
setLibraryAndPath(java.lang.String jnaPath,
java.lang.String libName)
Deprecated.
use NetcdfClibrary.setLibraryNameAndPath
|
static int |
setLogLevel(int level)
Deprecated.
use NetcdfClibrary.setLogLevel
|
static java.lang.String |
show(SizeT[] inta)
Deprecated.
|
void |
updateAttribute(ucar.nc2.Variable v2,
ucar.nc2.Attribute att)
Deprecated.
|
static void |
useHdfEos(boolean val)
Deprecated.
|
void |
writeData(ucar.nc2.Variable v2,
ucar.ma2.Section section,
ucar.ma2.Array values)
Deprecated.
|
build, buildFinish, getDetailInfo, getLastModified, getStructureIterator, isBuilder, reacquire, readSection, readToByteChannel, readToOutputStream, release, setNetcdfFile, streamToByteChannel, syncExtend, toStringDebugpublic static final boolean DEBUG
public static int NC_TURN_OFF_LOGGING
public static final java.lang.String TRANSLATECONTROL
public static final java.lang.String TRANSLATE_NONE
public static final java.lang.String TRANSLATE_NC4
public Nc4Iosp()
public Nc4Iosp(ucar.nc2.NetcdfFileWriter.Version version)
@Deprecated
public static void setLibraryAndPath(java.lang.String jnaPath,
java.lang.String libName)
jnaPath - path to shared librarieslibName - library name@Deprecated public static boolean isClibraryPresent()
@Deprecated public static Nc4prototypes getCLibrary()
@Deprecated public static int setLogLevel(int level)
public static void useHdfEos(boolean val)
public static void setDebugFlags(ucar.nc2.util.DebugFlags flags)
public void setChunker(ucar.nc2.write.Nc4Chunking chunker)
public boolean isValidFile(ucar.unidata.io.RandomAccessFile raf)
throws java.io.IOException
raf is a valid file NetCDF-4 file. Actually, it checks whether it is a valid HDF-5 file of
any type. Furthermore, it checks whether the NetCDF C library is available on the system. If both conditions are
satisfied, this method returns true; otherwise it returns false.isValidFile in interface ucar.nc2.iosp.IOServiceProviderraf - a file on disk.true if raf is a valid HDF-5 file and the NetCDF C library is available.java.io.IOException - if an I/O error occurs.public java.lang.String getFileTypeDescription()
getFileTypeDescription in interface ucar.nc2.iosp.IOServiceProviderpublic java.lang.String getFileTypeId()
getFileTypeId in interface ucar.nc2.iosp.IOServiceProviderpublic java.lang.String getFileTypeVersion()
getFileTypeVersion in interface ucar.nc2.iosp.IOServiceProvidergetFileTypeVersion in class ucar.nc2.iosp.AbstractIOServiceProviderpublic void close()
throws java.io.IOException
close in interface ucar.nc2.iosp.IOServiceProviderclose in class ucar.nc2.iosp.AbstractIOServiceProviderjava.io.IOExceptionpublic void open(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask)
throws java.io.IOException
open in interface ucar.nc2.iosp.IOServiceProvideropen in class ucar.nc2.iosp.AbstractIOServiceProviderjava.io.IOExceptionpublic void openForWriting(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask)
throws java.io.IOException
openForWriting in interface ucar.nc2.iosp.IOServiceProviderWriterjava.io.IOExceptionpublic static void dumpbytes(byte[] bytes,
int start,
int len,
java.lang.String tag)
public ucar.ma2.Array readData(ucar.nc2.Variable v2,
ucar.ma2.Section section)
throws java.io.IOException,
ucar.ma2.InvalidRangeException
readData in interface ucar.nc2.iosp.IOServiceProviderjava.io.IOExceptionucar.ma2.InvalidRangeExceptionpublic static java.lang.String show(SizeT[] inta)
public void create(java.lang.String filename,
ucar.nc2.NetcdfFile ncfile,
int extra,
long preallocateSize,
boolean largeFile)
throws java.io.IOException
create in interface ucar.nc2.iosp.IOServiceProviderWriterjava.io.IOExceptionpublic void writeData(ucar.nc2.Variable v2,
ucar.ma2.Section section,
ucar.ma2.Array values)
throws java.io.IOException,
ucar.ma2.InvalidRangeException
writeData in interface ucar.nc2.iosp.IOServiceProviderWriterjava.io.IOExceptionucar.ma2.InvalidRangeExceptionpublic int appendStructureData(ucar.nc2.Structure s,
ucar.ma2.StructureData sdata)
throws java.io.IOException,
ucar.ma2.InvalidRangeException
appendStructureData in interface ucar.nc2.iosp.IOServiceProviderWriterjava.io.IOExceptionucar.ma2.InvalidRangeExceptionpublic void flush()
throws java.io.IOException
flush in interface ucar.nc2.iosp.IOServiceProviderWriterjava.io.IOExceptionpublic Nc4Iosp setAddReserved(boolean tf)
public void setFill(boolean fill)
setFill in interface ucar.nc2.iosp.IOServiceProviderWriterpublic boolean rewriteHeader(boolean largeFile)
throws java.io.IOException
rewriteHeader in interface ucar.nc2.iosp.IOServiceProviderWriterjava.io.IOExceptionpublic void updateAttribute(ucar.nc2.Variable v2,
ucar.nc2.Attribute att)
throws java.io.IOException
updateAttribute in interface ucar.nc2.iosp.IOServiceProviderWriterjava.io.IOExceptionpublic static long getNativeAddr(int pos,
java.nio.ByteBuffer buf)
public java.lang.Object sendIospMessage(java.lang.Object message)
sendIospMessage in interface ucar.nc2.iosp.IOServiceProvidersendIospMessage in class ucar.nc2.iosp.AbstractIOServiceProvider