Sharkysoft home
Class UrlInputStream


public class UrlInputStream

Reads from URL-specified source.

Details: This is a convenience class that allows quick creation of an InputStream from a URL string. Simply pass the URL to the constructor and the newly constructed instance is an input stream that reads from the resulting URL.

Fields inherited from class
Constructor Summary
UrlInputStream(java.lang.String url)
          Sets source URL.
Methods inherited from class
available, close, mark, markSupported, read, read, read, reset, skip
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public UrlInputStream(java.lang.String url)
Sets source URL.

Details: This constructor sets the URL of the resource from which this InputStream reads.

url - the URL
Throws: - if the resource cannot be read

Sharkysoft home