Uses of Class
com.google.common.io.ByteSource
-
Packages that use ByteSource 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.com.google.common.reflect This package contains utilities to work with Java reflection. -
-
Uses of ByteSource in com.google.common.io
Subclasses of ByteSource in com.google.common.io Modifier and Type Class Description private static classByteSource.ByteArrayByteSourceprivate static classByteSource.ConcatenatedByteSourceprivate static classByteSource.EmptyByteSourceprivate classByteSource.SlicedByteSourceA view of a subsection of the containing byte source.private classCharSource.AsByteSourceA byte source that reads chars from this source and encodes them as bytes using a charset.private static classFiles.FileByteSourceprivate static classMoreFiles.PathByteSourceprivate static classResources.UrlByteSourceA byte source that reads from a URL usingURL.openStream().Fields in com.google.common.io declared as ByteSource Modifier and Type Field Description private ByteSourceFileBackedOutputStream. sourceFields in com.google.common.io with type parameters of type ByteSource Modifier and Type Field Description private java.util.Iterator<? extends ByteSource>MultiInputStream. it(package private) java.lang.Iterable<? extends ByteSource>ByteSource.ConcatenatedByteSource. sourcesMethods in com.google.common.io that return ByteSource Modifier and Type Method Description ByteSourceByteSource.AsCharSource. asByteSource(java.nio.charset.Charset charset)ByteSourceCharSource. asByteSource(java.nio.charset.Charset charset)Returns aByteSourceview of this char source that encodes chars read from this source as bytes using the givenCharset.ByteSourceFileBackedOutputStream. asByteSource()Returns a readableByteSourceview of the data that has been written to this stream.static ByteSourceFiles. asByteSource(java.io.File file)Returns a newByteSourcefor reading bytes from the given file.static ByteSourceMoreFiles. asByteSource(java.nio.file.Path path, java.nio.file.OpenOption... options)Returns a view of the givenpathas aByteSource.static ByteSourceResources. asByteSource(java.net.URL url)Returns aByteSourcethat reads from the given URL.static ByteSourceByteSource. concat(ByteSource... sources)Concatenates multipleByteSourceinstances into a single source.static ByteSourceByteSource. concat(java.lang.Iterable<? extends ByteSource> sources)Concatenates multipleByteSourceinstances into a single source.static ByteSourceByteSource. concat(java.util.Iterator<? extends ByteSource> sources)Concatenates multipleByteSourceinstances into a single source.ByteSourceBaseEncoding. decodingSource(CharSource encodedSource)Returns aByteSourcethat reads base-encoded bytes from the specifiedCharSource.static ByteSourceByteSource. empty()Returns an immutableByteSourcethat contains no bytes.ByteSourceByteSource.ByteArrayByteSource. slice(long offset, long length)ByteSourceByteSource. slice(long offset, long length)Returns a view of a slice of this byte source that is at mostlengthbytes long starting at the givenoffset.ByteSourceByteSource.SlicedByteSource. slice(long offset, long length)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 ByteSource Modifier and Type Method Description static 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 ByteSource Modifier and Type Method Description static ByteSourceByteSource. concat(java.lang.Iterable<? extends ByteSource> sources)Concatenates multipleByteSourceinstances into a single source.static ByteSourceByteSource. concat(java.util.Iterator<? extends ByteSource> sources)Concatenates multipleByteSourceinstances into a single source.Constructor parameters in com.google.common.io with type arguments of type ByteSource Constructor Description ConcatenatedByteSource(java.lang.Iterable<? extends ByteSource> sources)MultiInputStream(java.util.Iterator<? extends ByteSource> it)Creates a new instance. -
Uses of ByteSource in com.google.common.reflect
Methods in com.google.common.reflect that return ByteSource Modifier and Type Method Description ByteSourceClassPath.ResourceInfo. asByteSource()Returns aByteSourceview of the resource from which its bytes can be read.
-