Sharkysoft home

lava.io
Class UrlInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.FilterInputStream
              |
              +--lava.io.UrlInputStream

public class UrlInputStream
extends java.io.FilterInputStream

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 java.io.FilterInputStream
in
 
Constructor Summary
UrlInputStream(java.lang.String url)
          Sets source URL.
 
Methods inherited from class java.io.FilterInputStream
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

UrlInputStream

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

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

Parameters:
url - the URL
Throws:
java.io.IOException - if the resource cannot be read

Sharkysoft home