public class Nc4Iosp extends AbstractIOServiceProvider implements IOServiceProviderWriter
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
protected static String |
DEFAULTNETCDF4LIBNAME |
static String |
JNA_PATH |
static String |
JNA_PATH_ENV |
raf| Constructor and Description |
|---|
Nc4Iosp() |
Nc4Iosp(NetcdfFileWriter.Version version) |
| Modifier and Type | Method and Description |
|---|---|
int |
appendStructureData(Structure s,
StructureData sdata) |
void |
close() |
void |
create(String filename,
NetcdfFile ncfile,
int extra,
long preallocateSize,
boolean largeFile) |
static void |
dumpbytes(byte[] bytes,
int start,
int len,
String tag) |
void |
flush() |
String |
getFileTypeDescription() |
String |
getFileTypeId() |
static long |
getNativeAddr(int pos,
ByteBuffer buf) |
static boolean |
isClibraryPresent()
Test if the netcdf C library is present and loaded
|
boolean |
isValidFile(RandomAccessFile raf) |
static void |
main(String[] args) |
protected static String |
nullify(String s)
Convert a zero-length string to null
|
void |
open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask) |
NetcdfFile |
open(String location) |
void |
openForWriting(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask) |
Array |
readData(Variable v2,
Section section) |
boolean |
rewriteHeader(boolean largeFile) |
void |
setChunker(Nc4Chunking chunker) |
static void |
setDebugFlags(DebugFlags flags) |
void |
setFill(boolean fill) |
static void |
setLibraryAndPath(String jna_path,
String lib_name)
set the path and name of the netcdf c library.
|
static void |
setWarnOff()
Suppress warning messages
|
static String |
show(SizeT[] inta) |
void |
updateAttribute(Variable v2,
Attribute att) |
void |
writeData(Variable v2,
Section section,
Array values) |
getDetailInfo, getFileTypeVersion, getLastModified, getStructureIterator, readSection, readToByteChannel, readToOutputStream, sendIospMessage, streamToByteChannel, syncExtend, toStringDebugclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDetailInfo, getFileTypeVersion, getStructureIterator, readSection, readToByteChannel, readToOutputStream, sendIospMessage, streamToByteChannel, syncExtend, toStringDebugpublic static final boolean DEBUG
public static final String JNA_PATH
public static final String JNA_PATH_ENV
protected static String DEFAULTNETCDF4LIBNAME
public Nc4Iosp()
public Nc4Iosp(NetcdfFileWriter.Version version)
public static boolean isClibraryPresent()
public static void setLibraryAndPath(String jna_path, String lib_name)
jna_path - path to shared librarieslib_name - library nameprotected static String nullify(String s)
s - the string to check for lengthpublic static void setWarnOff()
public static void setDebugFlags(DebugFlags flags)
public void setChunker(Nc4Chunking chunker)
public boolean isValidFile(RandomAccessFile raf) throws IOException
isValidFile in interface IOServiceProviderIOExceptionpublic String getFileTypeId()
getFileTypeId in interface IOServiceProviderpublic String getFileTypeDescription()
getFileTypeDescription in interface IOServiceProviderpublic void close()
throws IOException
close in interface IOServiceProviderclose in class AbstractIOServiceProviderIOExceptionpublic void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException
open in interface IOServiceProvideropen in class AbstractIOServiceProviderIOExceptionpublic void openForWriting(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException
openForWriting in interface IOServiceProviderWriterIOExceptionpublic static void dumpbytes(byte[] bytes,
int start,
int len,
String tag)
public Array readData(Variable v2, Section section) throws IOException, InvalidRangeException
readData in interface IOServiceProviderIOExceptionInvalidRangeExceptionpublic void create(String filename, NetcdfFile ncfile, int extra, long preallocateSize, boolean largeFile) throws IOException
create in interface IOServiceProviderWriterIOExceptionpublic void writeData(Variable v2, Section section, Array values) throws IOException, InvalidRangeException
writeData in interface IOServiceProviderWriterIOExceptionInvalidRangeExceptionpublic int appendStructureData(Structure s, StructureData sdata) throws IOException, InvalidRangeException
appendStructureData in interface IOServiceProviderWriterIOExceptionInvalidRangeExceptionpublic void flush()
throws IOException
flush in interface IOServiceProviderWriterIOExceptionpublic void setFill(boolean fill)
setFill in interface IOServiceProviderWriterpublic boolean rewriteHeader(boolean largeFile)
throws IOException
rewriteHeader in interface IOServiceProviderWriterIOExceptionpublic void updateAttribute(Variable v2, Attribute att) throws IOException
updateAttribute in interface IOServiceProviderWriterIOExceptionpublic static long getNativeAddr(int pos,
ByteBuffer buf)
public NetcdfFile open(String location) throws Exception
ExceptionCopyright © 1999–2014 UCAR/Unidata. All rights reserved.