Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.util
Class XGMMLFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by cytoscape.util.CyFileFilter
          extended by cytoscape.util.XGMMLFileFilter
All Implemented Interfaces:
FilenameFilter

public class XGMMLFileFilter
extends CyFileFilter

FileFilter for Reading in XGMML Files.

Author:
Cytoscape Development Team.

Constructor Summary
XGMMLFileFilter()
          Constructor.
 
Method Summary
 boolean accept(File file)
          Indicates which files the XGMMLFileFilter accepts.
 boolean accept(URL url, String contentType)
          Returns true if this class is capable of processing the specified URL
 GraphReader getReader(String fileName)
          Gets Graph Reader.
 GraphReader getReader(URL url, URLConnection conn)
          Gets Graph Reader.
 
Methods inherited from class cytoscape.util.CyFileFilter
accept, accept, addContentType, addExtension, getDescription, getExtension, getExtension, getExtensionSet, getFileNature, isExtensionListInDescription, setDescription, setExtensionListInDescription, setFileNature
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XGMMLFileFilter

public XGMMLFileFilter()
Constructor.

Method Detail

getReader

public GraphReader getReader(String fileName)
Gets Graph Reader.

Overrides:
getReader in class CyFileFilter
Parameters:
fileName - File name.
Returns:
GraphReader Object.

getReader

public GraphReader getReader(URL url,
                             URLConnection conn)
Gets Graph Reader.

Overrides:
getReader in class CyFileFilter
Parameters:
fileName - File name.
Returns:
GraphReader Object.

accept

public boolean accept(File file)
Indicates which files the XGMMLFileFilter accepts. This method will return true only if:

Overrides:
accept in class CyFileFilter
Parameters:
file - File
Returns:
true or false.

accept

public boolean accept(URL url,
                      String contentType)
Description copied from class: CyFileFilter
Returns true if this class is capable of processing the specified URL

Overrides:
accept in class CyFileFilter
Parameters:
url - the URL
contentType - the content-type of the URL

www.cytoscape.org