Author: ruschein
Date: 2010-07-09 15:21:19 -0700 (Fri, 09 Jul 2010)
New Revision: 20875
Modified:
cytoscape/trunk/src/cytoscape/data/readers/CytoscapeSessionReader.java
Log:
Fixed opening session files that contain percent signs in file paths.
Modified: cytoscape/trunk/src/cytoscape/data/readers/CytoscapeSessionReader.java
===================================================================
--- cytoscape/trunk/src/cytoscape/data/readers/CytoscapeSessionReader.java
2010-07-09 22:06:26 UTC (rev 20874)
+++ cytoscape/trunk/src/cytoscape/data/readers/CytoscapeSessionReader.java
2010-07-09 22:21:19 UTC (rev 20875)
@@ -210,8 +210,9 @@
* DOCUMENT ME!
*/
public CytoscapeSessionReader(final String fileName,
- final TaskMonitor monitor) throws IOException {
- this(new File(fileName).toURL(), monitor);
+ final TaskMonitor monitor) throws IOException
+ {
+ this(new File(fileName.replace("%", "%25")).toURL(), monitor);
}
/**
@@ -222,7 +223,7 @@
* @throws IOException
*/
public CytoscapeSessionReader(final String fileName) throws IOException
{
- this(new File(fileName).toURL(), (TaskMonitor) null);
+ this(new File(fileName.replace("%", "%25")).toURL(),
(TaskMonitor) null);
}
/**
--
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.