Uses of Class
com.google.common.io.ByteSource
Packages that use 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
Methods in com.google.common.io that return ByteSourceModifier and TypeMethodDescriptionCharSource.asByteSource(Charset charset) Returns aByteSourceview of this char source that encodes chars read from this source as bytes using the givenCharset.FileBackedOutputStream.asByteSource()Returns a readableByteSourceview of the data that has been written to this stream.static ByteSourceFiles.asByteSource(File file) Returns a newByteSourcefor reading bytes from the given file.static ByteSourceMoreFiles.asByteSource(Path path, OpenOption... options) Returns a view of the givenpathas aByteSource.static ByteSourceResources.asByteSource(URL url) Returns aByteSourcethat reads from the given URL.static ByteSourceByteSource.concat(ByteSource... sources) Concatenates multipleByteSourceinstances into a single source.static ByteSourceByteSource.concat(Iterable<? extends ByteSource> sources) Concatenates multipleByteSourceinstances into a single source.static ByteSourceByteSource.concat(Iterator<? extends ByteSource> sources) Concatenates multipleByteSourceinstances into a single source.final ByteSourceBaseEncoding.decodingSource(CharSource encodedSource) Returns aByteSourcethat reads base-encoded bytes from the specifiedCharSource.static ByteSourceByteSource.empty()Returns an immutableByteSourcethat contains no bytes.ByteSource.slice(long offset, long length) Returns a view of a slice of this byte source that is at mostlengthbytes long starting at the givenoffset.static ByteSourceByteSource.wrap(byte[] b) Returns a view of the given byte array as aByteSource.Methods in com.google.common.io with parameters of type ByteSourceModifier and TypeMethodDescriptionstatic ByteSourceByteSource.concat(ByteSource... sources) Concatenates multipleByteSourceinstances into a single source.booleanByteSource.contentEquals(ByteSource other) Checks that the contents of this byte source are equal to the contents of the given byte source.Method parameters in com.google.common.io with type arguments of type ByteSourceModifier and TypeMethodDescriptionstatic ByteSourceByteSource.concat(Iterable<? extends ByteSource> sources) Concatenates multipleByteSourceinstances into a single source.static ByteSourceByteSource.concat(Iterator<? extends ByteSource> sources) Concatenates multipleByteSourceinstances into a single source. -
Uses of ByteSource in com.google.common.reflect
Methods in com.google.common.reflect that return ByteSourceModifier and TypeMethodDescriptionfinal ByteSourceClassPath.ResourceInfo.asByteSource()Returns aByteSourceview of the resource from which its bytes can be read.