commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r154136 - in jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs: RandomAccessContent.java provider/ftp/FtpRandomAccessContent.java provider/http/HttpRandomAccesContent.java provider/local/LocalFileRandomAccessContent.java provider/smb/SmbFileRandomAccessContent.java util/MonitorRandomAccessContent.java
Date Thu, 17 Feb 2005 07:45:29 GMT
Author: imario
Date: Wed Feb 16 23:45:27 2005
New Revision: 154136

URL: http://svn.apache.org/viewcvs?view=rev&rev=154136
Log:
missing createStream() in *RandomAccesContent.getInputStream().

Thanks to Jeffrey D. Brekke for pointing this out.

Modified:
    jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/RandomAccessContent.java
    jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/ftp/FtpRandomAccessContent.java
    jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/http/HttpRandomAccesContent.java
    jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFileRandomAccessContent.java
    jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/smb/SmbFileRandomAccessContent.java
    jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/util/MonitorRandomAccessContent.java

Modified: jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/RandomAccessContent.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/RandomAccessContent.java?view=diff&r1=154135&r2=154136
==============================================================================
--- jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/RandomAccessContent.java
(original)
+++ jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/RandomAccessContent.java
Wed Feb 16 23:45:27 2005
@@ -22,7 +22,7 @@
 
 /**
  * Description
- * 
+ *
  * @author <a href="mailto:imario@apache.org">Mario Ivankovits</a>
  * @version $Revision: 1.1 $ $Date$
  */
@@ -82,5 +82,5 @@
      * <b>Notice: If you use {@link #seek(long)} you have to reget the InputStream</b>
      * @return
      */
-    public InputStream getInputStream();
+    public InputStream getInputStream() throws IOException;
 }

Modified: jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/ftp/FtpRandomAccessContent.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/ftp/FtpRandomAccessContent.java?view=diff&r1=154135&r2=154136
==============================================================================
--- jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/ftp/FtpRandomAccessContent.java
(original)
+++ jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/ftp/FtpRandomAccessContent.java
Wed Feb 16 23:45:27 2005
@@ -234,8 +234,9 @@
         return data;
     }
 
-    public InputStream getInputStream()
+    public InputStream getInputStream() throws IOException
     {
+        createStream();
         return dis;
     }
 }

Modified: jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/http/HttpRandomAccesContent.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/http/HttpRandomAccesContent.java?view=diff&r1=154135&r2=154136
==============================================================================
--- jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/http/HttpRandomAccesContent.java
(original)
+++ jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/http/HttpRandomAccesContent.java
Wed Feb 16 23:45:27 2005
@@ -240,8 +240,9 @@
         return data;
     }
 
-    public InputStream getInputStream()
+    public InputStream getInputStream() throws IOException
     {
+        createStream();
         return dis;
     }
 }

Modified: jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFileRandomAccessContent.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFileRandomAccessContent.java?view=diff&r1=154135&r2=154136
==============================================================================
--- jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFileRandomAccessContent.java
(original)
+++ jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFileRandomAccessContent.java
Wed Feb 16 23:45:27 2005
@@ -28,7 +28,7 @@
 
 /**
  * RandomAccess for local files
- * 
+ *
  * @author <a href="mailto:imario@apache.org">Mario Ivankovits</a>
  * @version $Revision: 1.1 $ $Date$
  */
@@ -257,7 +257,7 @@
         raf.writeUTF(str);
     }
 
-    public InputStream getInputStream()
+    public InputStream getInputStream() throws IOException
     {
         return rafis;
     }

Modified: jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/smb/SmbFileRandomAccessContent.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/smb/SmbFileRandomAccessContent.java?view=diff&r1=154135&r2=154136
==============================================================================
--- jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/smb/SmbFileRandomAccessContent.java
(original)
+++ jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/smb/SmbFileRandomAccessContent.java
Wed Feb 16 23:45:27 2005
@@ -258,7 +258,7 @@
         raf.writeUTF(str);
     }
 
-    public InputStream getInputStream()
+    public InputStream getInputStream() throws IOException
     {
         return rafis;
     }

Modified: jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/util/MonitorRandomAccessContent.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/util/MonitorRandomAccessContent.java?view=diff&r1=154135&r2=154136
==============================================================================
--- jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/util/MonitorRandomAccessContent.java
(original)
+++ jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/util/MonitorRandomAccessContent.java
Wed Feb 16 23:45:27 2005
@@ -243,7 +243,7 @@
         return content.readUTF();
     }
 
-    public InputStream getInputStream()
+    public InputStream getInputStream() throws IOException
     {
         return content.getInputStream();
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message