From: megacz Date: Fri, 30 Jan 2004 07:01:06 +0000 (+0000) Subject: 2003/06/13 05:25:52 X-Git-Tag: RC3~923 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=f3b7bcb8cecf6f0aa3b7283eb987466d72e48af5 2003/06/13 05:25:52 darcs-hash:20040130070106-2ba56-8ec234230155ea314acf78649f0cde17f15767b7.gz --- diff --git a/src/org/xwt/HTTP.java b/src/org/xwt/HTTP.java index 94ad19a..d4d2249 100644 --- a/src/org/xwt/HTTP.java +++ b/src/org/xwt/HTTP.java @@ -484,11 +484,11 @@ public class HTTP { this.length = length == -1 ? 0 : length; } - public void markSupported() { return false; } + public boolean markSupported() { return false; } public int read(byte[] b) throws IOException { return read(b, 0, b.length); } - public long skip(long n) { return read(null, -1, (int)n); } - public int available() { - if (contentLength == -1) return Math.min(super.available(), length); + public long skip(long n) throws IOException { return read(null, -1, (int)n); } + public int available() throws IOException { + if (contentLength == -1) return java.lang.Math.min(super.available(), length); return super.available(); } @@ -529,7 +529,7 @@ public class HTTP { if (length == 0) { good = true; return -1; } } if (len > length) len = length; - int ret = b == null ? super.skip(len) : super.read(b, off, len); + int ret = b == null ? (int)super.skip(len) : super.read(b, off, len); if (ret >= 0) { length -= ret; good = true;