ca.krasnay.scaffold.io
Class UrlSource
java.lang.Object
ca.krasnay.scaffold.io.UrlSource
- All Implemented Interfaces:
- Source
public class UrlSource
- extends Object
- implements Source
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlSource
public UrlSource(URL url)
getInputStream
public InputStream getInputStream()
throws IOException
- Description copied from interface:
Source
- Returns a new input stream on the source.
- Specified by:
getInputStream in interface Source
- Throws:
IOException
close
public void close(InputStream in)
- Description copied from interface:
Source
- Closes the given input stream.
- Specified by:
close in interface Source
- Parameters:
in - Stream returned by Source.getInputStream(). May be null.
Copyright © 2015. All rights reserved.