Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/util/net
In directory sc8-pr-cvs1:/tmp/cvs-serv25787/src/java/core/org/krysalis/ruper2/util/net
Modified Files:
VirtualResourceLocator.java
Log Message:
Some doc tweaks...
Index: VirtualResourceLocator.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/util/net/VirtualResourceLocator.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** VirtualResourceLocator.java 13 Oct 2003 21:14:01 -0000 1.5
--- VirtualResourceLocator.java 14 Oct 2003 20:48:07 -0000 1.6
***************
*** 10,15 ****
import org.krysalis.ruper2.protocols.Protocol;
- import org.krysalis.ruper2.util.FileHelper;
import org.krysalis.ruper2.util.RuperConstants;
import org.krysalis.ruper2.util.io.ResolvedFile;
--- 10,15 ----
import org.krysalis.ruper2.protocols.Protocol;
import org.krysalis.ruper2.util.RuperConstants;
+ import org.krysalis.ruper2.util.io.FileUtils;
import org.krysalis.ruper2.util.io.ResolvedFile;
***************
*** 53,57 ****
public VirtualResourceLocator(ResolvedFile file) {
! parseString(createURLForFile(file));
}
--- 53,61 ----
public VirtualResourceLocator(ResolvedFile file) {
! parse(FileUtils.getFileURL(file));
! }
!
! private void parse(URL url) {
! parseString(url.toExternalForm());
}
***************
*** 69,79 ****
}
- private String createURLForFile(File file) {
- String path = file.getAbsolutePath();
- String url = FileHelper.createURLForPath(path);
-
- return url.toString();
- }
-
/**
* May not be possible for all VirtualResourceLocators
--- 73,76 ----
***************
*** 95,103 ****
String fileString = m_url;
if (fileString.startsWith(RuperConstants.FILE_PREFIX))
! fileString = fileString.substring(RuperConstants.FILE_PREFIX.length());
return new File(fileString);
}
!
/**
* Get parsed protocol type, file or http or ...
--- 92,101 ----
String fileString = m_url;
if (fileString.startsWith(RuperConstants.FILE_PREFIX))
! fileString =
! fileString.substring(RuperConstants.FILE_PREFIX.length());
return new File(fileString);
}
!
/**
* Get parsed protocol type, file or http or ...
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.