public class MatFile extends Object
MatFile is a value class which presents a simplified API for parsing either a ByteBuffer or a RandomAccessFile.
| Constructor and Description |
|---|
MatFile(MatFileHeader header,
Map<String,MLArray> content) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,MLArray> |
getContent() |
MatFileHeader |
getHeader() |
static Map<String,MLArray> |
readBare(MatFileHeader header,
ByteBuffer buffer)
Reads a bare set of bytes.
|
static MatFile |
readFull(ByteBuffer buf)
Reads a full set of bytes (including the header).
|
static MatFile |
readFull(ByteBuffer buf,
MatFileType type)
Reads a full set of bytes (including the header).
|
static MatFile |
readFull(RandomAccessFile file)
Reads a full set of bytes (including the header).
|
public MatFile(MatFileHeader header, Map<String,MLArray> content)
public MatFileHeader getHeader()
public static Map<String,MLArray> readBare(MatFileHeader header, ByteBuffer buffer) throws IOException
IOExceptionpublic static MatFile readFull(ByteBuffer buf) throws IOException
IOExceptionpublic static MatFile readFull(ByteBuffer buf, MatFileType type) throws IOException
IOExceptionpublic static MatFile readFull(RandomAccessFile file) throws IOException
IOException