ByteStream
Represents an abstract read-only stream of bytes
Inheritors
Types
Variant of a ByteStream with payload represented as an in-memory byte buffer.
Variant of a ByteStream with a streaming payload read from an SdkByteReadChannel
Variant of a ByteStream with a streaming payload read from an SdkSource
Inherited functions
Writes this stream to the given OutputStream. This method does not flush or close the given OutputStream.
Consume the ByteStream and pull the entire contents into memory as a ByteArray. Only do this if you are sure the contents fit in-memory as this will read the entire contents of a streaming variant.
Return a Flow that consumes the underlying ByteStream when collected.
Create a blocking InputStream that reads from the underlying ByteStream.
Write the contents of this ByteStream to file and close it
Write the contents of this ByteStream to file at the given path
Writes this stream to the given OutputStream, then closes it.