Update of /cvsroot/xdoclet/xdoclet/core/src/xdoclet/util
In directory sc8-pr-cvs1:/tmp/cvs-serv13882/core/src/xdoclet/util
Modified Files:
FileManager.java
Log Message:
apply Hani Suleiman's mac osx patch
Index: FileManager.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/util/FileManager.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** FileManager.java 5 Mar 2003 03:59:37 -0000 1.13
--- FileManager.java 13 Mar 2003 18:14:25 -0000 1.14
***************
*** 23,26 ****
--- 23,27 ----
*
* @author Ara Abrahamian ([EMAIL PROTECTED])
+ * @author Hani Suleiman ([EMAIL PROTECTED])
* @created Aug 5, 2001
* @version $Revision$
***************
*** 30,33 ****
--- 31,37 ----
public final class FileManager
{
+
+ private final static int BUFFER_SIZE = 10240;
+
private final static Map urlCache = new HashMap();
***************
*** 106,114 ****
private static void pump(InputStream is, OutputStream os) throws IOException
{
! byte[] b = new byte[is.available()];
! int len;
! while (is.available() > 0 && (len = is.read(b)) != -1) {
! os.write(b, 0, len);
}
}
--- 110,118 ----
private static void pump(InputStream is, OutputStream os) throws IOException
{
! byte[] buffer = new byte[BUFFER_SIZE];
! int lengthRead;
! while ((lengthRead = is.read(buffer)) >= 0) {
! os.write(buffer, 0, lengthRead);
}
}
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel