Cytoscape 3.0.1 API

org.cytoscape.io.read
Interface CySessionReaderManager


public interface CySessionReaderManager

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 CySessionReader for the input.


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
 CySessionReader 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.
 CySessionReader 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.
 

Method Detail

getReader

CySessionReader 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.

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

CySessionReader 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.

Parameters:
stream - The input stream we're attempting to read.
inputName - The name of the input.
Returns:
A reader than can read the specified stream. Will return null if no reader can be found.

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.