jericho 01/03/30 04:55:41
Modified: src/webdav/client/src/org/apache/webdav/cmd Slide.java
src/webdav/client/src/org/apache/webdav/util GenericURI.java
Log:
- Untabify
- Make HttpURL class serializable
Revision Changes Path
1.14 +5 -6
jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/Slide.java
Index: Slide.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/Slide.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- Slide.java 2001/03/30 12:26:49 1.13
+++ Slide.java 2001/03/30 12:55:41 1.14
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/Slide.java,v 1.13
2001/03/30 12:26:49 jericho Exp $
- * $Revision: 1.13 $
- * $Date: 2001/03/30 12:26:49 $
+ * $Header:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/Slide.java,v 1.14
2001/03/30 12:55:41 jericho Exp $
+ * $Revision: 1.14 $
+ * $Date: 2001/03/30 12:55:41 $
*
* ====================================================================
*
@@ -1069,9 +1069,8 @@
} catch (Exception e) {
System.err.println("Fatal Error: " + e.getMessage());
- if (command != null)
- System.err.println("Command input: " + command);
-
+ if (command != null)
+ System.err.println("Command input: " + command);
e.printStackTrace();
System.err.println
("Please, email to [EMAIL PROTECTED]");
1.12 +6 -5
jakarta-slide/src/webdav/client/src/org/apache/webdav/util/GenericURI.java
Index: GenericURI.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/util/GenericURI.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- GenericURI.java 2001/03/21 02:18:43 1.11
+++ GenericURI.java 2001/03/30 12:55:41 1.12
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/util/GenericURI.java,v
1.11 2001/03/21 02:18:43 jericho Exp $
- * $Revision: 1.11 $
- * $Date: 2001/03/21 02:18:43 $
+ * $Header:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/util/GenericURI.java,v
1.12 2001/03/30 12:55:41 jericho Exp $
+ * $Revision: 1.12 $
+ * $Date: 2001/03/30 12:55:41 $
*
* ====================================================================
*
@@ -74,7 +74,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Park, Sung-Gu</a>
*/
-public abstract class GenericURI {
+public abstract class GenericURI implements java.io.Serializable {
// --------------------------------------------------------- Constructors
@@ -613,6 +613,7 @@
// check the fragment
if (uri.indexOf("#") > 0)
to = uri.indexOf("#");
+ // ignore the 'at' variable as the start point for substring.
int from = uri.indexOf("/", (at >= 0) ? at + 2 : 0);
// get only the wanted path.
uri = (from >= 0) ? uri.substring(from, to) : "/";
@@ -667,6 +668,7 @@
// check the fragment
if (uri.indexOf("#") > 0 && uri.indexOf("#") < to)
to = uri.indexOf("#");
+ // ignore the 'at' variable as the start point for substring.
int from = uri.indexOf("/", (at >= 0) ? at + 2 : 0);
// get only the path.
uri = (from >= 0) ? uri.substring(from, to) : "/";
@@ -887,7 +889,6 @@
* @return The URI string.
*/
public String toString() {
-
return uri;
}