Interface CyNetworkReaderManager


public interface CyNetworkReaderManager
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 CyNetworkReader 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 Type
    Method
    Description
    getReader​(InputStream stream, String inputName)
    Given an InputStream 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 task.
    getReader​(URI uri, String inputName)
    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 task.
  • Method Details

    • getReader

      CyNetworkReader getReader(URI uri, String inputName)
      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 task.
      Parameters:
      uri - The URI we're attempting to read.
      inputName - The name of the input.
      Returns:
      A reader than can read the specified URI. Will return null if no reader can be found.
    • getReader

      CyNetworkReader getReader(InputStream stream, String inputName)
      Given an InputStream 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 task.
      Parameters:
      stream - The input stream we're attempting to read.
      inputName - The name of the input.
      Returns:
      A reader that can read the specified stream. Will return null if no reader can be found.