|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.geworkbench.components.parsers.FileFormat
public abstract class FileFormat
FileFormat and
provide method implementations approrpriate for the new format. | Field Summary | |
|---|---|
protected java.lang.String |
formatName
The display name of the format. |
| Constructor Summary | |
|---|---|
FileFormat()
|
|
| Method Summary | |
|---|---|
abstract boolean |
checkFormat(java.io.File file)
Checks if the contents of the designated file conform to the format. |
abstract java.lang.String[] |
getFileExtensions()
Return the list of extensions (if any) for the files following this format. |
javax.swing.filechooser.FileFilter |
getFileFilter()
|
java.lang.String |
getFormatName()
|
abstract DSDataSet |
getMArraySet(java.io.File file)
Generates and returns a MicrorarrauSet from the designated
argument. |
void |
getMArraySet(java.io.File file,
CSExprMicroarraySet maSet)
Generates and returns a MicrorarraySet from the designated
argument. |
abstract Resource |
getResource(java.io.File file)
Return a Resource object for the designated file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String formatName
| Constructor Detail |
|---|
public FileFormat()
| Method Detail |
|---|
public java.lang.String getFormatName()
public abstract boolean checkFormat(java.io.File file)
throws java.io.InterruptedIOException
file - File to check.
java.io.InterruptedIOExceptionpublic abstract Resource getResource(java.io.File file)
Resource object for the designated file.
file -
public abstract DSDataSet getMArraySet(java.io.File file)
throws InputFileFormatException,
java.io.InterruptedIOException
MicrorarrauSet from the designated
argument. In file does not conform to the format, returns
null.
file - The file containing the input data.
MicroarraySet object.
InputFileFormatException
java.io.InterruptedIOException
public void getMArraySet(java.io.File file,
CSExprMicroarraySet maSet)
throws InputFileFormatException,
java.io.InterruptedIOException
MicrorarraySet from the designated
argument. In file does not conform to the format, returns
null.
file - The file containing the input data.maSet - The set to load the data in
InputFileFormatException
java.io.InterruptedIOExceptionpublic abstract java.lang.String[] getFileExtensions()
public javax.swing.filechooser.FileFilter getFileFilter()
FileFilter to be used in gating the
files offered to the user for selection. Useful, e.g., when the
files of the format at hand have predefined extensions.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||