Java com.google.common.io ByteSource fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.io ByteSource fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.io ByteSource.

The text is from its open source code.

Subclass

com.google.common.io.ByteSource has subclasses.
Click this link to see all its subclasses.

Constructor

ByteSource()
Constructor for use by subclasses.

Method

CharSourceasCharSource(Charset charset)
Returns a CharSource view of this byte source that decodes bytes read from this source as characters using the given Charset .
ByteSourceconcat(Iterable sources)
Concatenates multiple ByteSource instances into a single source.
ByteSourceconcat(Iterator sources)
Concatenates multiple ByteSource instances into a single source.
ByteSourceconcat(ByteSource... sources)
Concatenates multiple ByteSource instances into a single source.
booleancontentEquals(ByteSource other)
Checks that the contents of this byte source are equal to the contents of the given byte source.
longcopyTo(OutputStream output)
Copies the contents of this byte source to the given OutputStream .
longcopyTo(ByteSink sink)
Copies the contents of this byte source to the given ByteSink .
ByteSourceempty()
Returns an immutable ByteSource that contains no bytes.
HashCodehash(HashFunction hashFunction)
Hashes the contents of this byte source using the given hash function.
booleanisEmpty()
Returns whether the source has zero bytes.
InputStreamopenBufferedStream()
Opens a new buffered InputStream for reading from this source.
InputStreamopenStream()
Opens a new InputStream for reading from this source.
byte[]read()
Reads the full contents of this byte source as a byte array.
Tread(ByteProcessor processor)
Reads the contents of this byte source using the given processor to process bytes as they are read.
longsize()
Returns the size of this source in bytes, even if doing so requires opening and traversing an entire stream.
ByteSourceslice(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 .
StringtoString()
Returns a string representation of the object.
ByteSourcewrap(byte[] b)
Returns a view of the given byte array as a ByteSource .