| Package | Description |
|---|---|
| com.google.common.io |
This package contains utility methods and classes for working with Java I/O; for example input streams, output streams, readers, writers, and files.
|
| Modifier and Type | Method and Description |
|---|---|
ByteSource |
FileBackedOutputStream.asByteSource()
Returns a readable
ByteSource view of the data that has been written to this stream.
|
static ByteSource |
Files.asByteSource(File
Returns a new
ByteSource for reading bytes from the given file.
|
static ByteSource |
Resources.asByteSource(URL
Returns a
ByteSource that reads from the given URL.
|
static ByteSource |
ByteSource.concat(ByteSource
Concatenates multiple
ByteSource instances into a single source.
|
static ByteSource |
ByteSource.concat(Iterable
Concatenates multiple
ByteSource instances into a single source.
|
static ByteSource |
ByteSource.concat(Iterator
Concatenates multiple
ByteSource instances into a single source.
|
ByteSource |
BaseEncoding.decodingSource(CharSource
Returns a
ByteSource that reads base-encoded bytes from the specified
CharSource.
|
static ByteSource |
ByteSource.empty()
Returns an immutable
ByteSource that contains no bytes.
|
ByteSource |
ByteSource.slice(long offset, long length)
Returns a view of a slice of this byte source that is at most
length bytes long starting at the given
offset.
|
static ByteSource |
ByteSource.wrap(byte[] b)
Returns a view of the given byte array as a
ByteSource.
|
| Modifier and Type | Method and Description |
|---|---|
static ByteSource |
ByteSource.concat(ByteSource
Concatenates multiple
ByteSource instances into a single source.
|
boolean |
ByteSource.contentEquals(ByteSource
Checks that the contents of this byte source are equal to the contents of the given byte source.
|
| Modifier and Type | Method and Description |
|---|---|
static ByteSource |
ByteSource.concat(Iterable
Concatenates multiple
ByteSource instances into a single source.
|
static ByteSource |
ByteSource.concat(Iterator
Concatenates multiple
ByteSource instances into a single source.
|