Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IStreamComponent

interface IStreamComponent
Extends com.amazon.apmf.IStandard Not implemented. This content describes future functionality. Implementation of this interface provides functionality for reading and writing binary data to and from streams. This includes converting between binary and text representations.

Methods

makeTextInputStream()

ITextInputStream* makeTextInputStream(IBinaryInputStream* stream, string encoding, ErrorMode mode)
Not implemented. This content describes future functionality. Converts a binary input stream to a text input stream using the specified encoding.

Parameters

stream
IBinaryInputStream* — Required The binary input stream to read from.
encoding
string — Required The character encoding to use for the text stream.
mode
ErrorMode — Required The error mode to use for encoding errors.

Returns

ITextInputStream* A text input stream for reading from the binary stream.

Throws


makeTextOutputStream()

ITextOutputStream* makeTextOutputStream(IBinaryOutputStream* stream, string encoding)
Not implemented. This content describes future functionality. Converts a byte array to a text output stream using the specified encoding.

Parameters

stream
IBinaryOutputStream* — Required The binary output stream to write to.
encoding
string — Required The character encoding to use for the text stream.

Returns

ITextOutputStream* A text output stream for writing to the binary stream.

Throws


readAll()

i8[] readAll(IBinaryInputStream* stream)
Not implemented. This content describes future functionality. Reads all data from a binary input stream and returns it as a byte array.

Parameters

stream
IBinaryInputStream* — Required The binary input stream to read from.

Returns

i8[] A byte array containing all the data read from the stream.

Throws

  • IoError — when error occurs during reading from an input stream.

writeAll()

i32 writeAll(IBinaryOutputStream* stream, i8[] data)
Not implemented. This content describes future functionality. Writes all data from a byte array to a binary output stream.

Parameters

stream
IBinaryOutputStream* — Required The binary output stream to write to.
data
i8[] — Required The byte array containing data to be written.

Returns

i32 The total number of bytes written to the stream.

Throws

  • IoError — when error occurs during writing to output stream.

Last modified on October 29, 2026