private static final class ByteSource.EmptyByteSource extends ByteSource.ByteArrayByteSource
| Modifier and Type | Field and Description |
|---|---|
private static ByteSource.EmptyByteSource |
INSTANCE |
bytes| Modifier | Constructor and Description |
|---|---|
private |
EmptyByteSource() |
| Modifier and Type | Method and Description |
|---|---|
CharSource |
asCharSource(java.nio.charset.Charset charset)
Returns a
CharSource view of this byte source that decodes bytes read from this source
as characters using the given Charset. |
byte[] |
read()
Reads the full contents of this byte source as a byte array.
|
java.lang.String |
toString() |
copyTo, hash, isEmpty, openBufferedStream, openStream, read, sizeconcat, concat, concat, contentEquals, copyTo, empty, slice, wrapprivate static final ByteSource.EmptyByteSource INSTANCE
public CharSource asCharSource(java.nio.charset.Charset charset)
ByteSourceCharSource view of this byte source that decodes bytes read from this source
as characters using the given Charset.asCharSource in class ByteSourcepublic byte[] read()
ByteSourceread in class ByteSource.ByteArrayByteSourcepublic java.lang.String toString()
toString in class ByteSource.ByteArrayByteSource