| Package | Description |
|---|---|
| com.opengamma.strata.collect.io |
Provides utilities for the management of input and output.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayByteSource
A byte source implementation that explicitly wraps a byte array.
|
class |
FileByteSource
A byte source implementation that obtains data from a file.
|
class |
UriByteSource
A byte source implementation that obtains data from a URI.
|
| Modifier and Type | Method and Description |
|---|---|
static BeanByteSource |
ZipUtils.decryptZip(BeanByteSource source,
String password)
Provides a new source that decrypts the specified source ZIP.
|
BeanByteSource |
ResourceLocator.getByteSource()
Gets the byte source to access the resource.
|
| Modifier and Type | Method and Description |
|---|---|
static BeanByteSource |
ZipUtils.decryptZip(BeanByteSource source,
String password)
Provides a new source that decrypts the specified source ZIP.
|
static Map<String,ArrayByteSource> |
ZipUtils.unpackInMemory(BeanByteSource source)
Unpacks the source into memory, returning a map.
|
static void |
ZipUtils.unpackInMemory(BeanByteSource source,
BiConsumer<String,ArrayByteSource> consumer)
Unpacks the source into memory, invoking the consumer for each entry.
|
static void |
ZipUtils.unzip(BeanByteSource source,
Path path)
Unzips the source to a file path.
|
static Map<String,ArrayByteSource> |
ZipUtils.unzipInMemory(BeanByteSource source)
Unzips the source into memory, returning a map.
|
static void |
ZipUtils.unzipInMemory(BeanByteSource source,
BiConsumer<String,ArrayByteSource> consumer)
Unzips the source into memory, invoking the consumer for each entry.
|
static Optional<ArrayByteSource> |
ZipUtils.unzipPathNameInMemory(BeanByteSource source,
String relativePathName)
Unzips a single file from the source in memory.
|
static Set<String> |
ZipUtils.unzipPathNames(BeanByteSource source)
Unzips the source returning the file names that are contained.
|
| Modifier and Type | Method and Description |
|---|---|
static ArrayByteSource |
ZipUtils.zipInMemory(List<? extends BeanByteSource> sources)
Creates a zip file from the list of files in memory.
|
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.