public interface CyFileFilter
Module: io-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>io-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(InputStream stream,
DataCategory category)
A method that attempts to determine whether the specified InputStream can be read
by the Reader using this filter.
|
boolean |
accepts(URI uri,
DataCategory category)
A method that attempts to determine whether the specified URI can be read
by the Reader using this filter.
|
Set<String> |
getContentTypes()
The MIME content types supported by this filter.
|
DataCategory |
getDataCategory()
The DataCategory supported by this filter.
|
String |
getDescription()
A short, human readable description of the file extensions suitable for
display in FileChoosers.
|
Set<String> |
getExtensions()
Returns a list of file extensions (xml, xgmml, sif) suitable for for use
in FileChoosers.
|
boolean accepts(URI uri, DataCategory category)
uri
- The URI to be checked.category
- The data category of URI.boolean accepts(InputStream stream, DataCategory category)
stream
- The input steam to be checked.category
- The data category of the input steam.Set<String> getExtensions()
Set<String> getContentTypes()
String getDescription()
DataCategory getDataCategory()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.