|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmatio.io.MatFileFilter
public class MatFileFilter
File filter.
This class is used to tell MatFileReader
which matrices
should be processed. This is useful when operating on big MAT-files,
when there's no need to load all arrays into memory.
Usage:
//create new filter instance MatFileFilter filter = new MatFileFilter(); //add a needle filter.addArrayName( "your_array_name" ); //read array form file (haystack) looking _only_ for pecified array (needle) MatFileReader mfr = new MatFileReader( fileName, filter );
com.jmatio.io.io.io.MatFileReader
Constructor Summary | |
---|---|
MatFileFilter()
Creates empty filter intance. |
|
MatFileFilter(String[] names)
Create filter intance and add array names. |
Method Summary | |
---|---|
void |
addArrayName(String name)
Add array name to the filter. |
boolean |
matches(String name)
Test if given name matches the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatFileFilter()
public MatFileFilter(String[] names)
names
- - array of names (needles)Method Detail |
---|
public void addArrayName(String name)
name
- - array name (needle)public boolean matches(String name)
name
- - array name to be tested
true
if array (matrix) of this name should be processed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |