LangUtil.throwIaxIfNull(file, "file");
URL result = null;
try {
- String url = "file:" + file.getAbsolutePath().replace('\\', '/');
+ result = file.toURI().toURL();
+ if (null != result) {
+ return result;
+ }
+ String url = "file:" + file.getAbsolutePath().replace('\\', '/');
result = new URL(url + (file.isDirectory() ? "/" : ""));
} catch (MalformedURLException e) {
String m = "Util.makeURL(\"" + file.getPath() + "\" MUE " + e.getMessage();
try {
final int MAX = 4096;
byte[] buf = new byte[MAX];
+ // TODO this blocks, hanging the harness
int count = in.read(buf, 0, MAX);
ByteArrayOutputStream mySnoop;
while ((halt && finishStream && (0 < count))