implement jar and file URL stream handlers

This commit is contained in:
Joel Dice
2011-03-25 19:14:21 -06:00
parent 31eb047391
commit 3dd091c67a
13 changed files with 342 additions and 23 deletions

View File

@ -13,7 +13,9 @@ package java.net;
import java.io.IOException;
public abstract class URLStreamHandler {
protected void parseURL(URL url, String s, int start, int end) {
protected void parseURL(URL url, String s, int start, int end)
throws MalformedURLException
{
String protocol = s.substring(0, start - 1);
s = s.substring(start, end);