[jboss-cvs] JBossAS SVN: r91996 - projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/protocol.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Aug 4 22:50:55 EDT 2009
Author: jason.greene at jboss.com
Date: 2009-08-04 22:50:55 -0400 (Tue, 04 Aug 2009)
New Revision: 91996
Modified:
projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/protocol/VirtualFileURLConnection.java
Log:
Remove dep on non-standard class
Modified: projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/protocol/VirtualFileURLConnection.java
===================================================================
--- projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/protocol/VirtualFileURLConnection.java 2009-08-05 02:13:03 UTC (rev 91995)
+++ projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/protocol/VirtualFileURLConnection.java 2009-08-05 02:50:55 UTC (rev 91996)
@@ -21,10 +21,10 @@
*/
package org.jboss.vfs.protocol;
-import java.io.IOException;
-import java.io.InputStream;
import java.io.File;
import java.io.FilePermission;
+import java.io.IOException;
+import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLDecoder;
@@ -32,7 +32,6 @@
import org.jboss.vfs.VFS;
import org.jboss.vfs.VirtualFile;
-import sun.net.www.ParseUtil;
/**
* Implements basic URLConnection for a VirtualFile
@@ -79,7 +78,7 @@
}
public Permission getPermission() throws IOException {
- String decodedPath = ParseUtil.decode(url.getPath());
+ String decodedPath = URLDecoder.decode(url.getPath(), "UTF-8");
if (File.separatorChar == '/') {
return new FilePermission(decodedPath, "read");
} else {
More information about the jboss-cvs-commits
mailing list