B
ByteCoder
I can't seem to find the right method to check if a URL exists (it's not
a HTTP 404).
InputStream input = url.OpenStream();
input = new BufferedInputStream(input);
if(input.available() > 0) {
//...
}
doesn't seem to work. URLs that don't exist still pass the if
statement...?
Does anyone else know the solution to this problem?
a HTTP 404).
InputStream input = url.OpenStream();
input = new BufferedInputStream(input);
if(input.available() > 0) {
//...
}
doesn't seem to work. URLs that don't exist still pass the if
statement...?
Does anyone else know the solution to this problem?