/[classpath]/classpath/gnu/java/net/protocol/file/Connection.java
ViewVC logotype

Diff of /classpath/gnu/java/net/protocol/file/Connection.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mkoch, Mon Oct 20 15:14:03 2003 UTC revision 1.4 by mkoch, Mon Oct 20 15:16:34 2003 UTC
# Line 38  Line 38 
38  */  */
39  package gnu.java.net.protocol.file;  package gnu.java.net.protocol.file;
40    
41    import java.io.BufferedInputStream;
42    import java.io.BufferedOutputStream;
43  import java.io.File;  import java.io.File;
44  import java.io.FileInputStream;  import java.io.FileInputStream;
45  import java.io.FileNotFoundException;  import java.io.FileNotFoundException;
# Line 71  public class Connection extends URLConne Line 73  public class Connection extends URLConne
73    /**    /**
74     * InputStream if we are reading from the file     * InputStream if we are reading from the file
75     */     */
76    private FileInputStream inputStream;    private BufferedInputStream inputStream;
77    
78    /**    /**
79     * OutputStream if we are writing to the file     * OutputStream if we are writing to the file
80     */     */
81    private FileOutputStream outputStream;    private BufferedOutputStream outputStream;
82        
83    /**    /**
84     * Calls superclass constructor to initialize.     * Calls superclass constructor to initialize.
# Line 105  public class Connection extends URLConne Line 107  public class Connection extends URLConne
107        throw new FileNotFoundException (file.getPath());        throw new FileNotFoundException (file.getPath());
108    
109      if (doInput)      if (doInput)
110        inputStream = new FileInputStream (file);        inputStream = new BufferedInputStream (new FileInputStream (file));
111            
112      if (doOutput)      if (doOutput)
113        outputStream = new FileOutputStream (file);        outputStream = new BufferedOutputStream (new FileOutputStream (file));
114            
115      connected = true;      connected = true;
116    }    }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26