类 NpyHeader
- java.lang.Object
-
- org.meteoinfo.ndarray.io.npy.NpyHeader
-
public final class NpyHeader extends Object
The NPY header contains the metadata of the stored array and the NPY file.
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 ByteOrderbyteOrder()longdataOffset()Returns the 0-based position from where the data start in the NPY file.NpyHeaderDictdict()Returns the dictionary entries of this header.static NpyHeaderread(InputStream in)static NpyHeaderread(ReadableByteChannel channel)StringtoString()
-
-
-
方法详细资料
-
dict
public NpyHeaderDict dict()
Returns the dictionary entries of this header.
-
dataOffset
public long dataOffset()
Returns the 0-based position from where the data start in the NPY file.
-
byteOrder
public ByteOrder byteOrder()
-
read
public static NpyHeader read(InputStream in) throws IOException, NpyFormatException
-
read
public static NpyHeader read(ReadableByteChannel channel) throws IOException
- 抛出:
IOException
-
-