From 3df53e51ce9d9cfa1d3327184837ea81a63ea652 Mon Sep 17 00:00:00 2001 From: mdb Date: Mon, 13 Aug 2001 23:24:24 +0000 Subject: [PATCH] Moved PathUtil into the net package and documented that it's meant to be used on URL paths rather than filesystem paths. git-svn-id: https://samskivert.googlecode.com/svn/trunk@252 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../samskivert/src/java/com/samskivert/net/PathUtil.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/projects/samskivert/src/java/com/samskivert/net/PathUtil.java b/projects/samskivert/src/java/com/samskivert/net/PathUtil.java index 6a4dcba7..e174250d 100644 --- a/projects/samskivert/src/java/com/samskivert/net/PathUtil.java +++ b/projects/samskivert/src/java/com/samskivert/net/PathUtil.java @@ -1,5 +1,5 @@ // -// $Id: PathUtil.java,v 1.2 2001/08/11 22:43:29 mdb Exp $ +// $Id: PathUtil.java,v 1.3 2001/08/13 23:24:24 mdb Exp $ // // samskivert library - useful routines for java programs // Copyright (C) 2001 Michael Bayne @@ -18,7 +18,7 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -package com.samskivert.util; +package com.samskivert.net; /** * Path related utility functions. @@ -30,7 +30,10 @@ public class PathUtil * specified new component. For example, if /foo/bar/baz * was provided as the source path, baz would be replaced * with the supplied new path component. If no slashes occur in the - * path, the entire path will be replaced. + * path, the entire path will be replaced. Note that this function is + * intended for use on URLs rather than filesystem paths and thus + * always uses forward slash rather than the platform defined path + * separator. */ public static String replaceFinalComponent (String source, String newComponent)