|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmatio.io.MatFileHeader
public class MatFileHeader
MAT-file header Level 5 MAT-files begin with a 128-byte header made up of a 124 byte text field and two, 16-bit flag fields
Constructor Summary | |
---|---|
MatFileHeader(String description,
int version,
byte[] endianIndicator)
New MAT-file header |
Method Summary | |
---|---|
static MatFileHeader |
createHeader()
A factory. |
String |
getDescription()
Gets descriptive text |
byte[] |
getEndianIndicator()
Gets endian indicator. |
int |
getVersion()
When creating a MAT-file, set version to 0x0100 |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MatFileHeader(String description, int version, byte[] endianIndicator)
description
- - descriptive text (no longer than 116 characters)version
- - by default is set to 0x0100endianIndicator
- - byte array size of 2 indicating byte-swapping requirementMethod Detail |
---|
public String getDescription()
public byte[] getEndianIndicator()
public int getVersion()
public static MatFileHeader createHeader()
MatFileHeader
instance with default header values:
MatFileHeader
instancepublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |