Package org.cytoscape.io.read
Interface VizmapReaderManager
public interface VizmapReaderManager
An object that registers all InputStreamReaderFactory singletons,
processes specified input to determine the appropriate factory to
use and then returns an instance of the correct
VizmapReader
for the input.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>
Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
-
Method Summary
Modifier and TypeMethodDescriptiongetReader(InputStream stream, String inputName)
Given anInputStream
this method will attempt to find a InputStreamReaderFactory that can read the stream, will set the InputStream for the factory and will return the reader.Given a URI this method will attempt to find a InputStreamReaderFactory that can read the URI, will set the InputStream for the factory and will return the reader.
-
Method Details
-
getReader
Given a URI this method will attempt to find a InputStreamReaderFactory that can read the URI, will set the InputStream for the factory and will return the reader.- Parameters:
uri
- The URI we're attempting to read.inputName
- A name given to the input.- Returns:
- A reader than can read the specified URI. Will return null if no reader can be found.
-
getReader
Given anInputStream
this method will attempt to find a InputStreamReaderFactory that can read the stream, will set the InputStream for the factory and will return the reader.- Parameters:
stream
- The input stream we're attempting to read.inputName
- A name given to the input.- Returns:
- A reader than can read the specified stream. Will return null if no reader can be found.
-