private static final class Resources.UrlByteSource extends ByteSource
URL.openStream().ByteSource.AsCharSource| 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, sizeIfKnown, slice, wrappublic java.io.InputStream openStream()
throws java.io.IOException
ByteSourceInputStream for reading from this source. This method returns a new,
independent stream each time it is called.
The caller is responsible for ensuring that the returned stream is closed.
openStream in class ByteSourcejava.io.IOException - if an I/O error occurs while opening the streampublic java.lang.String toString()
toString in class java.lang.Object