|
JMatIO 0.2 |
|||||||||
| 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 );
MatFileReader| Constructor Summary | |
|---|---|
MatFileFilter()
Creates empty filter intance. |
|
MatFileFilter(java.lang.String[] names)
Create filter intance and add array names. |
|
| Method Summary | |
|---|---|
void |
addArrayName(java.lang.String name)
Add array name to the filter. |
boolean |
matches(java.lang.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(java.lang.String[] names)
names - - array of names (needles)| Method Detail |
|---|
public void addArrayName(java.lang.String name)
name - - array name (needle)public boolean matches(java.lang.String name)
name - - array name to be tested
true if array (matrix) of this name should be processed
|
JMatIO 0.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||