public final class FakeURL
extends java.lang.Object
| Constructor and Description | 
|---|
| FakeURL(java.lang.String spec)Creates a FakeURL object from the String representation. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.io.InputStream | openStream()Opens a simulated connection to this FakeURL and returns 
  an InputStream for reading from that connection. | 
public FakeURL(java.lang.String spec)
        throws java.net.MalformedURLException
spec - the String to parse as a URL.java.net.MalformedURLException - If the string specifies an unknown protocol.public final java.io.InputStream openStream()
                                     throws java.io.IOException
java.io.IOException - if an I/O exception occurs.