| Package | Description |
|---|---|
| com.opengamma.strata.collect.io |
Provides utilities for the management of input and output.
|
| Modifier and Type | Field and Description |
|---|---|
static ArrayByteSource |
ArrayByteSource.EMPTY
An empty source.
|
| Modifier and Type | Method and Description |
|---|---|
static ArrayByteSource |
ArrayByteSource.copyOf(byte[] array)
Obtains an instance, copying the array.
|
static ArrayByteSource |
ArrayByteSource.copyOf(byte[] array,
int fromIndex)
Obtains an instance by copying part of an array.
|
static ArrayByteSource |
ArrayByteSource.copyOf(byte[] array,
int fromIndexInclusive,
int toIndexExclusive)
Obtains an instance by copying part of an array.
|
static ArrayByteSource |
ArrayByteSource.from(ByteSource other)
Obtains an instance from another byte source.
|
static ArrayByteSource |
ArrayByteSource.from(CheckedSupplier<InputStream> inputStreamSupplier)
Obtains an instance from an input stream.
|
static ArrayByteSource |
ArrayByteSource.from(InputStream inputStream)
Obtains an instance from an input stream.
|
static ArrayByteSource |
ArrayByteSource.from(InputStream inputStream,
int expectedSize)
Obtains an instance from an input stream, specifying the expected size.
|
static ArrayByteSource |
ArrayByteSource.fromBase64(String base64)
Obtains an instance from a base-64 encoded string.
|
static ArrayByteSource |
ArrayByteSource.fromHex(String hex)
Obtains an instance from a hex encoded string, sometimes referred to as base-16.
|
ArrayByteSource |
BeanByteSource.load()
Loads the content of the byte source into memory.
|
ArrayByteSource |
ArrayByteSource.load() |
ArrayByteSource |
UriByteSource.load() |
ArrayByteSource |
FileByteSource.load() |
static ArrayByteSource |
ArrayByteSource.ofUnsafe(byte[] array)
Obtains an instance, not copying the array.
|
static ArrayByteSource |
ArrayByteSource.ofUtf8(String str)
Obtains an instance from a string using UTF-8.
|
ArrayByteSource |
ArrayByteSource.slice(long offset,
long length) |
ArrayByteSource |
BeanByteSource.toBase64()
Encodes the byte source using base-64.
|
ArrayByteSource |
ArrayByteSource.toBase64()
Encodes the byte source using base-64.
|
ArrayByteSource |
BeanByteSource.toHash(HashFunction hashFunction)
Returns a new byte source containing the hash of the content of this byte source.
|
ArrayByteSource |
ArrayByteSource.toMd5()
Deprecated.
|
ArrayByteSource |
ArrayByteSource.toSha512()
Deprecated.
|
ArrayByteSource |
ArrayByteSource.withFileName(String fileName)
Returns an instance with the file name updated.
|
static ArrayByteSource |
ZipUtils.zipInMemory(List<? extends BeanByteSource> sources)
Creates a zip file from the list of files in memory.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<String,ArrayByteSource> |
ZipUtils.unpackInMemory(BeanByteSource source)
Unpacks the source into memory, returning a map.
|
static Map<String,ArrayByteSource> |
ZipUtils.unzipInMemory(BeanByteSource source)
Unzips the source into memory, returning a map.
|
static Optional<ArrayByteSource> |
ZipUtils.unzipPathNameInMemory(BeanByteSource source,
String relativePathName)
Unzips a single file from the source in memory.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ZipUtils.unpackInMemory(BeanByteSource source,
BiConsumer<String,ArrayByteSource> consumer)
Unpacks the source into memory, invoking the consumer for each entry.
|
static void |
ZipUtils.unzipInMemory(BeanByteSource source,
BiConsumer<String,ArrayByteSource> consumer)
Unzips the source into memory, invoking the consumer for each entry.
|
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.