Author: pwang
Date: 2010-08-17 17:09:42 -0700 (Tue, 17 Aug 2010)
New Revision: 21426
Removed:
core3/io-api/trunk/src/main/java/org/cytoscape/io/read/CyReader.java
core3/io-api/trunk/src/main/java/org/cytoscape/io/read/CyReaderFactory.java
core3/io-api/trunk/src/main/java/org/cytoscape/io/read/CyReaderManager.java
Log:
Not needed
Deleted: core3/io-api/trunk/src/main/java/org/cytoscape/io/read/CyReader.java
===================================================================
--- core3/io-api/trunk/src/main/java/org/cytoscape/io/read/CyReader.java
2010-08-18 00:08:48 UTC (rev 21425)
+++ core3/io-api/trunk/src/main/java/org/cytoscape/io/read/CyReader.java
2010-08-18 00:09:42 UTC (rev 21426)
@@ -1,35 +0,0 @@
-package org.cytoscape.io.read;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Map;
-
-/**
- * The basic input interface that specifies what is to be read and when it is
to
- * be read. This interface should be extended by other interfaces to provide
- * access to the data that gets read. One class can then implement multiple
- * CyReader interfaces to support reading files that contain multiple types of
- * data (like networks that contain both attribute and view model information).
- *
- */
-public interface CyReader {
-
- /**
- * Calling this method will initiate reading of the input specified in
the
- * {...@link CyReader#setInput(InputStream is)}. This method will
return once
- * the data has been read and will(?) throw an exception otherwise.
- * <p>
- * This should probably throw an {...@link java.io.IOException}
- */
- public Map<Class<?>, Object> read() throws IOException;
-
- public void setInputStream(InputStream inputStream);
-
- /**
- * Cancels reading if a thread is waiting for the completion of
- * <code>CyReader.read()</code>.
- * <code>CyReader.read()</code> will prematurely terminate by
- * throwing an <code>IOException</code>.
- */
- public void cancel();
-}
Deleted:
core3/io-api/trunk/src/main/java/org/cytoscape/io/read/CyReaderFactory.java
===================================================================
--- core3/io-api/trunk/src/main/java/org/cytoscape/io/read/CyReaderFactory.java
2010-08-18 00:08:48 UTC (rev 21425)
+++ core3/io-api/trunk/src/main/java/org/cytoscape/io/read/CyReaderFactory.java
2010-08-18 00:09:42 UTC (rev 21426)
@@ -1,15 +0,0 @@
-package org.cytoscape.io.read;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URI;
-
-import org.cytoscape.io.FileIOFactory;
-
-public interface CyReaderFactory extends FileIOFactory {
-
- public CyReader getReader(URI uri) throws IOException;
-
- public CyReader getReader(InputStream stream) throws IOException;
-
-}
Deleted:
core3/io-api/trunk/src/main/java/org/cytoscape/io/read/CyReaderManager.java
===================================================================
--- core3/io-api/trunk/src/main/java/org/cytoscape/io/read/CyReaderManager.java
2010-08-18 00:08:48 UTC (rev 21425)
+++ core3/io-api/trunk/src/main/java/org/cytoscape/io/read/CyReaderManager.java
2010-08-18 00:09:42 UTC (rev 21426)
@@ -1,68 +0,0 @@
-/*
- Copyright (c) 2006, 2007, The Cytoscape Consortium (www.cytoscape.org)
-
- The Cytoscape Consortium is:
- - Institute for Systems Biology
- - University of California San Diego
- - Memorial Sloan-Kettering Cancer Center
- - Institut Pasteur
- - Agilent Technologies
-
- This library is free software; you can redistribute it and/or modify it
- under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation; either version 2.1 of the License, or
- any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
- documentation provided hereunder is on an "as is" basis, and the
- Institute for Systems Biology and the Whitehead Institute
- have no obligations to provide maintenance, support,
- updates, enhancements or modifications. In no event shall the
- Institute for Systems Biology and the Whitehead Institute
- be liable to any party for direct, indirect, special,
- incidental or consequential damages, including lost profits, arising
- out of the use of this software and its documentation, even if the
- Institute for Systems Biology and the Whitehead Institute
- have been advised of the possibility of such damage. See
- the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this library; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- */
-package org.cytoscape.io.read;
-
-import java.io.InputStream;
-import java.net.URI;
-import java.util.Map;
-
-import org.cytoscape.io.DataCategory;
-
-/**
- * Central registry for all Cytoscape import classes.
- */
-public interface CyReaderManager {
-
- /*
- * Not generic because Spring does not support it now.
- */
- @SuppressWarnings("unchecked")
- public void addReaderFactory(CyReaderFactory factory, Map props);
-
- @SuppressWarnings("unchecked")
- public void removeReaderFactory(CyReaderFactory factory, Map props);
-
- /**
- * Get a file reader if the file type is supported in Cytoscape.
- *
- * @param fileName
- * @return
- * @throws IllegalArgumentException File type is not supported.
- */
- public CyReader getReader(URI resourceLocation, DataCategory category)
throws IllegalArgumentException;
-
- public CyReader getReader(InputStream stream, DataCategory category)
throws IllegalArgumentException;
-
-}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.