|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
org.norther.tammi.acorn.net.URLInputStream
public class URLInputStream
An input stream reading from a specific URL.
| Constructor Summary | |
|---|---|
URLInputStream(URL url)
Constructs a new URL input stream. |
|
URLInputStream(URL url,
String enc)
Constructs a new URL input stream with an encoding check. |
|
| Method Summary | |
|---|---|
int |
available()
|
void |
close()
|
protected void |
finalize()
|
String |
getEncoding()
Gets the Unicode encoding of this stream. |
void |
mark(int readlimit)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
void |
reset()
|
long |
skip(long n)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLInputStream(URL url)
throws IOException
url - the URL of the stream.
IOException - on I/O errors.
public URLInputStream(URL url,
String enc)
throws IOException
url - the URL of the stream.enc - an optional default encoding.
IOException - on I/O errors.| Method Detail |
|---|
public int available()
throws IOException
available in class InputStreamIOException
public int read()
throws IOException
read in class InputStreamIOException
public int read(byte[] b)
throws IOException
read in class InputStreamIOException
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStream
public void reset()
throws IOException
reset in class InputStreamIOException
public long skip(long n)
throws IOException
skip in class InputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOException
public String getEncoding()
throws IOException
IOException - on I/O errors.protected void finalize()
finalize in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||