@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 String |
TRANSLATE_NC4
Deprecated.
|
static String |
TRANSLATE_NONE
Deprecated.
|
static String |
TRANSLATECONTROL
Deprecated.
|
static String |
UCARTAGOPAQUE
Deprecated.
|
static String |
UCARTAGORIGTYPE
Deprecated.
|
static String |
UCARTAGVLEN
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(String filename,
ucar.nc2.NetcdfFile ncfile,
int extra,
long preallocateSize,
boolean largeFile)
Deprecated.
|
static void |
dumpbytes(byte[] bytes,
int start,
int len,
String tag)
Deprecated.
|
void |
flush()
Deprecated.
|
static Nc4prototypes |
getCLibrary()
Deprecated.
use NetcdfClibrary.getNativeInterface
|
String |
getFileTypeDescription()
Deprecated.
|
String |
getFileTypeId()
Deprecated.
|
String |
getFileTypeVersion()
Deprecated.
|
static long |
getNativeAddr(int pos,
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.
|
Object |
sendIospMessage(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(String jnaPath,
String libName)
Deprecated.
use NetcdfClibrary.setLibraryNameAndPath
|
static int |
setLogLevel(int level)
Deprecated.
use NetcdfClibrary.setLogLevel
|
static 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 String TRANSLATECONTROL
public static final String TRANSLATE_NONE
public static final String TRANSLATE_NC4
public static final String UCARTAGOPAQUE
public static final String UCARTAGVLEN
public static final String UCARTAGORIGTYPE
public Nc4Iosp()
public Nc4Iosp(ucar.nc2.NetcdfFileWriter.Version version)
@Deprecated public static void setLibraryAndPath(String jnaPath, 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 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.IOException - if an I/O error occurs.public String getFileTypeDescription()
getFileTypeDescription in interface ucar.nc2.iosp.IOServiceProviderpublic String getFileTypeId()
getFileTypeId in interface ucar.nc2.iosp.IOServiceProviderpublic String getFileTypeVersion()
getFileTypeVersion in interface ucar.nc2.iosp.IOServiceProvidergetFileTypeVersion in class ucar.nc2.iosp.AbstractIOServiceProviderpublic void close()
throws IOException
close in interface ucar.nc2.iosp.IOServiceProviderclose in class ucar.nc2.iosp.AbstractIOServiceProviderIOExceptionpublic void open(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask)
throws IOException
open in interface ucar.nc2.iosp.IOServiceProvideropen in class ucar.nc2.iosp.AbstractIOServiceProviderIOExceptionpublic void openForWriting(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask)
throws IOException
openForWriting in interface ucar.nc2.iosp.IOServiceProviderWriterIOExceptionpublic static void dumpbytes(byte[] bytes,
int start,
int len,
String tag)
public ucar.ma2.Array readData(ucar.nc2.Variable v2,
ucar.ma2.Section section)
throws IOException,
ucar.ma2.InvalidRangeException
readData in interface ucar.nc2.iosp.IOServiceProviderIOExceptionucar.ma2.InvalidRangeExceptionpublic void create(String filename, ucar.nc2.NetcdfFile ncfile, int extra, long preallocateSize, boolean largeFile) throws IOException
create in interface ucar.nc2.iosp.IOServiceProviderWriterIOExceptionpublic void writeData(ucar.nc2.Variable v2,
ucar.ma2.Section section,
ucar.ma2.Array values)
throws IOException,
ucar.ma2.InvalidRangeException
writeData in interface ucar.nc2.iosp.IOServiceProviderWriterIOExceptionucar.ma2.InvalidRangeExceptionpublic int appendStructureData(ucar.nc2.Structure s,
ucar.ma2.StructureData sdata)
throws IOException,
ucar.ma2.InvalidRangeException
appendStructureData in interface ucar.nc2.iosp.IOServiceProviderWriterIOExceptionucar.ma2.InvalidRangeExceptionpublic void flush()
throws IOException
flush in interface ucar.nc2.iosp.IOServiceProviderWriterIOExceptionpublic Nc4Iosp setAddReserved(boolean tf)
public void setFill(boolean fill)
setFill in interface ucar.nc2.iosp.IOServiceProviderWriterpublic boolean rewriteHeader(boolean largeFile)
throws IOException
rewriteHeader in interface ucar.nc2.iosp.IOServiceProviderWriterIOExceptionpublic void updateAttribute(ucar.nc2.Variable v2,
ucar.nc2.Attribute att)
throws IOException
updateAttribute in interface ucar.nc2.iosp.IOServiceProviderWriterIOExceptionpublic static long getNativeAddr(int pos,
ByteBuffer buf)