BlogGitHub
Reference/ORK/IO_STREAMS/ORK/IF_IO_INPUT_STREAM
Interface/ORK/IF_IO_INPUT_STREAM
InputStream
Package
/ORK/IO_STREAMS
Interfaces
/ORK/IF_IO_STREAM_BASE
Members
3
3 items
Methods
get_content
MethodPublic

Returns the full content of the current stream. The returned byte string reflects exactly the data currently stored in the stream, from offset zero up to its length.

Parameters

NameDescriptionresultByte sequence containing all of the stream’s data.

Signature

METHODS get_content RETURNING VALUE(result) TYPE xstring.
copy_to
MethodPublic

Reads the bytes from the current stream and writes them to another stream, using a specified buffer size. Both streams positions are advanced by the number of bytes copied.

If the value is less than or equal to 0, the buffering is automatically determined by the source stream

Parameters

NameDescriptiondestinationThe stream to which the contents of the current stream will be copied.buffer_sizeThe size of the buffer. The default size is 81920.

Signature

METHODS copy_to IMPORTING !destination TYPE REF TO /ork/if_io_output_stream
                            buffer_size TYPE i DEFAULT 81920.
read
MethodPublic

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

between offset and (offset + count - 1) replaced by the bytes read from the current source. if that many bytes are not currently available, or zero (0) if count is 0 or the end of the stream has been reached.

Parameters

NameDescriptionoffsetThe zero-based byte offset in buffer at which to begin storing the data read from the current stream.countThe maximum number of bytes to be read from the current stream.bufferAn array of bytes. When this method returns, the buffer contains the specified byte array with the valuesresultThe total number of bytes read into the buffer. This can be less than the number of bytes requested

Signature

METHODS read IMPORTING !offset TYPE i DEFAULT 0
                         !count TYPE i
               EXPORTING !buffer TYPE x
               RETURNING VALUE(result) TYPE i.
Repository11 packages · 113 objects
124 items