private static final class Resources.UrlByteSource extends ByteSource
URL.openStream()
.Modifier and Type | Field and Description |
---|---|
private java.net.URL |
url |
Modifier | Constructor and Description |
---|---|
private |
UrlByteSource(java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
openStream()
Opens a new
InputStream for reading from this source. |
java.lang.String |
toString() |
asCharSource, concat, concat, concat, contentEquals, copyTo, copyTo, empty, hash, isEmpty, openBufferedStream, read, read, size, slice, wrap
public java.io.InputStream openStream() throws java.io.IOException
ByteSource
InputStream
for reading from this source. This method should return a new,
independent stream each time it is called.
The caller is responsible for ensuring that the returned stream is closed.
openStream
in class ByteSource
java.io.IOException
- if an I/O error occurs in the process of opening the streampublic java.lang.String toString()
toString
in class java.lang.Object