|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.data.ImportHandler
public class ImportHandler
Central registry for all Cytoscape import classes.
Field Summary | |
---|---|
protected static Set<CyFileFilter> |
cyFileFilters
Set of all registered CyFileFilter Objects. |
static String |
EDGE_NATURE
Filter Type: EDGE. |
static String |
GRAPH_NATURE
Filter Type: NETWORK. |
static String |
NODE_NATURE
Filter Type: NODE. |
static String |
PROPERTIES_NATURE
Filer Type: PROPERTIES. |
Constructor Summary | |
---|---|
ImportHandler()
Constructor. |
Method Summary | |
---|---|
boolean |
addFilter(CyFileFilter cff)
Registers a new CyFileFilter. |
boolean |
addFilter(CyFileFilter[] cff)
Registers an Array of CyFileFilter Objects. |
File |
downloadFromURL(URL url,
TaskMonitor taskMonitor)
Download a temporary file from the given URL. |
Collection |
getAllDescriptions()
Gets a collection of all registered filter descriptions. |
Collection |
getAllExtensions()
Gets a collection of all registered file extensions. |
List |
getAllFilters()
Gets a list of all registered filters plus a catch-all super set filter. |
List |
getAllFilters(String fileNature)
Gets a list of all registered filters, which are of type: fileNature, plus a catch-all super set filter. |
Collection |
getAllTypes(String fileNature)
Gets descriptions for all registered filters, which are of the type: fileNature. |
String |
getFileType(String fileName)
Gets the name of the filter which is capable of reading the specified file. |
GraphReader |
getReader(String fileName)
Gets the GraphReader that is capable of reading the specified file. |
GraphReader |
getReader(URL url)
Gets the GraphReader that is capable of reading URL. |
void |
resetImportHandler()
Unregisters all registered File Filters (except default file filters.) Resets everything with a clean slate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String GRAPH_NATURE
public static String NODE_NATURE
public static String EDGE_NATURE
public static String PROPERTIES_NATURE
protected static Set<CyFileFilter> cyFileFilters
Constructor Detail |
---|
public ImportHandler()
Method Detail |
---|
public boolean addFilter(CyFileFilter cff)
cff
- CyFileFilter.
public boolean addFilter(CyFileFilter[] cff)
cff
- Array of CyFileFilter Objects.
public GraphReader getReader(String fileName)
fileName
- File name or null if no reader is capable of reading the file.
public GraphReader getReader(URL url)
url
- -- the URL string
public Collection getAllTypes(String fileNature)
fileNature
- type: GRAPH_NATURE, NODE_NATURE, EDGE_NATURE, etc.
public Collection getAllExtensions()
public Collection getAllDescriptions()
public String getFileType(String fileName)
fileName
- File Name.
public List getAllFilters()
public List getAllFilters(String fileNature)
fileNature
- type: GRAPH_NATURE, NODE_NATURE, EDGE_NATURE, etc.
public void resetImportHandler()
public File downloadFromURL(URL url, TaskMonitor taskMonitor) throws IOException, FileNotFoundException
u
- -- the URL string, TaskMonitor if any
IOException
FileNotFoundException
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |