@ExperimentalApi public class InputStreamAndMeta extends Object
InputStream and additional metadata.
Note: In API so that FileStore.Reader.getInputStreamAndMeta() can provide a default implementation.| Constructor and Description |
|---|
InputStreamAndMeta(InputStream inputStream,
Long length)
An aggregate of an
InputStream and its length. |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream() |
Optional<Long> |
getLength() |
public InputStreamAndMeta(@Nonnull InputStream inputStream, @Nullable Long length)
InputStream and its length.inputStream - the InputStreamlength - the length of the stream, if knownpublic InputStream getInputStream()
Copyright © 2021–2024 Atlassian. All rights reserved.