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, size
concat, concat, concat, contentEquals, copyTo, empty, slice, wrap
private static final ByteSource.EmptyByteSource INSTANCE
public CharSource asCharSource(java.nio.charset.Charset charset)
ByteSource
CharSource
view of this byte source that decodes bytes read from this source
as characters using the given Charset
.asCharSource
in class ByteSource
public byte[] read()
ByteSource
read
in class ByteSource.ByteArrayByteSource
public java.lang.String toString()
toString
in class ByteSource.ByteArrayByteSource