Uses of Class
com.google.common.io.ByteSource
Package
Description
Utility methods and classes for I/O; for example input streams, output streams, readers, writers,
and files.
Utilities for reflection.
-
Uses of ByteSource in com.google.common.io
Modifier and TypeMethodDescriptionCharSource.asByteSource
(Charset charset) Returns aByteSource
view of this char source that encodes chars read from this source as bytes using the givenCharset
.FileBackedOutputStream.asByteSource()
Returns a readableByteSource
view of the data that has been written to this stream.static ByteSource
Files.asByteSource
(File file) Returns a newByteSource
for reading bytes from the given file.static ByteSource
MoreFiles.asByteSource
(Path path, OpenOption... options) Returns a view of the givenpath
as aByteSource
.static ByteSource
Resources.asByteSource
(URL url) Returns aByteSource
that reads from the given URL.static ByteSource
ByteSource.concat
(ByteSource... sources) Concatenates multipleByteSource
instances into a single source.static ByteSource
ByteSource.concat
(Iterable<? extends ByteSource> sources) Concatenates multipleByteSource
instances into a single source.static ByteSource
ByteSource.concat
(Iterator<? extends ByteSource> sources) Concatenates multipleByteSource
instances into a single source.final ByteSource
BaseEncoding.decodingSource
(CharSource encodedSource) Returns aByteSource
that reads base-encoded bytes from the specifiedCharSource
.static ByteSource
ByteSource.empty()
Returns an immutableByteSource
that contains no bytes.ByteSource.slice
(long offset, long length) Returns a view of a slice of this byte source that is at mostlength
bytes long starting at the givenoffset
.static ByteSource
ByteSource.wrap
(byte[] b) Returns a view of the given byte array as aByteSource
.Modifier and TypeMethodDescriptionstatic ByteSource
ByteSource.concat
(ByteSource... sources) Concatenates multipleByteSource
instances into a single source.boolean
ByteSource.contentEquals
(ByteSource other) Checks that the contents of this byte source are equal to the contents of the given byte source.Modifier and TypeMethodDescriptionstatic ByteSource
ByteSource.concat
(Iterable<? extends ByteSource> sources) Concatenates multipleByteSource
instances into a single source.static ByteSource
ByteSource.concat
(Iterator<? extends ByteSource> sources) Concatenates multipleByteSource
instances into a single source. -
Uses of ByteSource in com.google.common.reflect
Modifier and TypeMethodDescriptionfinal ByteSource
ClassPath.ResourceInfo.asByteSource()
Returns aByteSource
view of the resource from which its bytes can be read.