public class IngestionUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IngestionUtils.IntegerHolder |
| Modifier and Type | Method and Description |
|---|---|
static reactor.core.publisher.Mono<ByteArrayInputStream> |
compressStream(InputStream uncompressedStream,
boolean leaveOpen) |
static @NotNull StreamSourceInfo |
fileToStream(FileSourceInfo fileSourceInfo,
boolean resettable) |
static CompressionType |
getCompression(String fileName) |
static byte[] |
readBytesFromInputStream(InputStream inputStream,
int bytesToRead) |
static @NotNull StreamSourceInfo |
resultSetToStream(ResultSetSourceInfo resultSetSourceInfo) |
static reactor.core.publisher.Mono<byte[]> |
toByteArray(InputStream inputStream)
Converts an InputStream to a Mono of byte array.
|
@NotNull public static @NotNull StreamSourceInfo fileToStream(FileSourceInfo fileSourceInfo, boolean resettable) throws IngestionClientException, FileNotFoundException
@NotNull public static @NotNull StreamSourceInfo resultSetToStream(ResultSetSourceInfo resultSetSourceInfo) throws IOException, IngestionClientException
IOExceptionIngestionClientExceptionpublic static byte[] readBytesFromInputStream(InputStream inputStream, int bytesToRead) throws IOException
IOExceptionpublic static CompressionType getCompression(String fileName)
public static reactor.core.publisher.Mono<ByteArrayInputStream> compressStream(InputStream uncompressedStream, boolean leaveOpen)
public static reactor.core.publisher.Mono<byte[]> toByteArray(InputStream inputStream)
inputStream - the InputStream to convertCopyright © 2025. All rights reserved.