Initial attempt at resolving SWT3.7 missing operatons in Avian. Everything seems to be working except floatToIntBits, hence the test case failing.

This commit is contained in:
Ben Limmer
2011-12-28 15:52:53 -07:00
parent 21610c1c9b
commit b3850ac76d
4 changed files with 64 additions and 2 deletions

View File

@ -19,6 +19,8 @@ public final class URL {
private String host;
private int port;
private String file;
private String path;
private String query;
private String ref;
public URL(String s) throws MalformedURLException {
@ -55,6 +57,14 @@ public final class URL {
public String getRef() {
return ref;
}
public String getPath() {
return path;
}
public String getQuery() {
return query;
}
public URLConnection openConnection() throws IOException {
return handler.openConnection(this);
@ -90,5 +100,13 @@ public final class URL {
this.port = port;
this.file = file;
this.ref = ref;
int q = file.lastIndexOf('?');
if (q != -1) {
this.query = file.substring(q + 1);
this.path = file.substring(0, q);
} else {
this.path = file;
}
}
}