| Package | Description |
|---|---|
| tech.mlsql.common.utils.io | |
| tech.mlsql.common.utils.reflect |
| Modifier and Type | Method and Description |
|---|---|
static ByteSource |
Files.asByteSource(File file)
Returns a new
ByteSource for reading bytes from the given file. |
static ByteSource |
ByteStreams.asByteSource(InputSupplier<? extends InputStream> supplier)
Deprecated.
Convert all
InputSupplier<? extends InputStream>
implementations to extend ByteSource or provide a method for
viewing the object as a ByteSource. This method is scheduled
for removal in Guava 18.0. |
static ByteSource |
Resources.asByteSource(URL url)
Returns a
ByteSource that reads from the given URL. |
static ByteSource |
ByteSource.concat(ByteSource... sources)
Concatenates multiple
ByteSource instances into a single source. |
static ByteSource |
ByteSource.concat(Iterable<? extends ByteSource> sources)
Concatenates multiple
ByteSource instances into a single source. |
static ByteSource |
ByteSource.concat(Iterator<? extends ByteSource> sources)
Concatenates multiple
ByteSource instances into a single source. |
ByteSource |
BaseEncoding.decodingSource(CharSource encodedSource)
Returns a
ByteSource that reads base-encoded bytes from the specified
CharSource. |
static ByteSource |
ByteSource.empty()
Returns an immutable
ByteSource that contains no bytes. |
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. |
static ByteSource |
ByteSource.wrap(byte[] b)
Returns a view of the given byte array as a
ByteSource. |
| Modifier and Type | Method and Description |
|---|---|
static ByteSource |
ByteSource.concat(ByteSource... sources)
Concatenates multiple
ByteSource 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 Type | Method and Description |
|---|---|
static ByteSource |
ByteSource.concat(Iterable<? extends ByteSource> sources)
Concatenates multiple
ByteSource instances into a single source. |
static ByteSource |
ByteSource.concat(Iterator<? extends ByteSource> sources)
Concatenates multiple
ByteSource instances into a single source. |
| Modifier and Type | Method and Description |
|---|---|
ByteSource |
ClassPath.ResourceInfo.asByteSource()
Returns a
ByteSource view of the resource from which its bytes can be read. |
Copyright © 2020. All rights reserved.