Author: mmichaud
Date: 2009-03-23 11:11:18 -0700 (Mon, 23 Mar 2009)
New Revision: 16322
Modified:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/InputStreamHandler.java
Log:
Modified:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/InputStreamHandler.java
===================================================================
---
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/InputStreamHandler.java
2009-03-23 18:10:50 UTC (rev 16321)
+++
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/InputStreamHandler.java
2009-03-23 18:11:18 UTC (rev 16322)
@@ -5,6 +5,7 @@
import java.awt.Font;
import java.awt.Insets;
import java.awt.event.ActionListener;
+import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
@@ -47,9 +48,6 @@
private JTextField networkFileTextField;
private static final String URL_TOOLTIP = "<html>Enter URL or
<strong><font color=\"red\">Drag and Drop local/remote
files.</font></strong></html>";
private static final String LOCAL_TOOLTIP = "<html>Specify path to
local files.</html>";
-
- //FileUtil flUtil;
- //StreamUtil stUtil;
protected InputStreamHandler(Field f, Object o, Tunable t,Bookmarks
bookmarks,BookmarksUtil bkUtil) {
super(f,o,t);
@@ -87,8 +85,8 @@
File file = fileChooser.getSelectedFile();
if ( file != null ){
try{
- InStream = new
FileInputStream(file.getAbsolutePath());
- //InStream =
flUtil.getInputStream(file.getAbsolutePath());
+// InStream =
flUtil.getInputStream(file.getAbsolutePath());
+ InStream = new
BufferedInputStream(new FileInputStream(file));
f.set(o,InStream);
}catch (Exception e) {
e.printStackTrace();}
networkFileTextField.setFont(new Font(null, Font.PLAIN,10));
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---