| 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)
Creates 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)
Creates an instance from another byte source.
|
static ArrayByteSource |
ArrayByteSource.from(CheckedSupplier<InputStream> inputStreamSupplier)
Creates an instance from an input stream.
|
static ArrayByteSource |
ArrayByteSource.fromBase64(String base64)
Creates an instance from a base-64 encoded string.
|
static ArrayByteSource |
ArrayByteSource.fromHex(String hex)
Creates 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.
|
static ArrayByteSource |
ArrayByteSource.ofUnsafe(byte[] array)
Creates an instance, not copying the array.
|
static ArrayByteSource |
ArrayByteSource.ofUtf8(String str)
Creates an instance from a string using UTF-8.
|
ArrayByteSource |
ArrayByteSource.slice(long offset,
long length) |
ArrayByteSource |
ArrayByteSource.toBase64()
Encodes the byte source using base-64.
|
ArrayByteSource |
ArrayByteSource.toMd5()
Returns the MD5 hash of the bytes.
|
ArrayByteSource |
ArrayByteSource.toSha512()
Returns the SHA-512 hash of the bytes.
|
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.