| 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 |
|---|---|
static ByteSource |
ByteStreams.asByteSource(byte[] b)
Returns a new
ByteSource that reads bytes from the given byte array. |
static ByteSource |
Files.asByteSource(File file)
Returns a new
ByteSource for reading bytes from the given file. |
static ByteSource |
Resources.asByteSource(URL url)
Returns a
ByteSource that reads from the given URL. |
ByteSource |
BaseEncoding.decodingSource(CharSource encodedSource)
Returns a
ByteSource that reads base-encoded bytes from the specified
CharSource. |
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. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ByteSource.contentEquals(ByteSource other)
Checks that the contents of this byte source are equal to the contents of the given byte
source.
|
Copyright © 2010-2013. All Rights Reserved.