equal
deleted
inserted
replaced
418 if (uri.isOpaque()) |
418 if (uri.isOpaque()) |
419 throw new IllegalArgumentException("URI is not hierarchical"); |
419 throw new IllegalArgumentException("URI is not hierarchical"); |
420 String scheme = uri.getScheme(); |
420 String scheme = uri.getScheme(); |
421 if ((scheme == null) || !scheme.equalsIgnoreCase("file")) |
421 if ((scheme == null) || !scheme.equalsIgnoreCase("file")) |
422 throw new IllegalArgumentException("URI scheme is not \"file\""); |
422 throw new IllegalArgumentException("URI scheme is not \"file\""); |
423 if (uri.getAuthority() != null) |
423 if (uri.getRawAuthority() != null) |
424 throw new IllegalArgumentException("URI has an authority component"); |
424 throw new IllegalArgumentException("URI has an authority component"); |
425 if (uri.getFragment() != null) |
425 if (uri.getRawFragment() != null) |
426 throw new IllegalArgumentException("URI has a fragment component"); |
426 throw new IllegalArgumentException("URI has a fragment component"); |
427 if (uri.getQuery() != null) |
427 if (uri.getRawQuery() != null) |
428 throw new IllegalArgumentException("URI has a query component"); |
428 throw new IllegalArgumentException("URI has a query component"); |
429 String p = uri.getPath(); |
429 String p = uri.getPath(); |
430 if (p.equals("")) |
430 if (p.equals("")) |
431 throw new IllegalArgumentException("URI path component is empty"); |
431 throw new IllegalArgumentException("URI path component is empty"); |
432 |
432 |