Cytoscape 2.8.0 API

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.

Field Summary
 
Fields inherited from class cytoscape.util.CyFileFilter
contentTypes, reader
 
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, getHeader, getHeader, isExtensionListInDescription, setDescription, setExtensionListInDescription, setFileNature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.