ABAP Keyword Documentation →  ABAP − Reference →  Processing Internal Data →  Streaming → 

Classes and Interfaces for Streams

The classes and interfaces of streams are in the SABP_STREAMS_AND_LOCATORS package. Interfaces and classes that have been released for use are exposed in their package interface SABP_STREAMS_AND_LOCATORS. The following figure shows the hierarchy of the most important interfaces and classes for streams.

Mapping

Classes for Data Streams and Filter Streams

The classes for data streams and filter streams are the templates for data stream objects and filter stream objects.

The classes for the "data stream" stream kind start with "CL_ABAP_", followed by

  1. an identification resource, for the resource, which is used as a data source or a data drain. At the moment, data streams are supported for the following resources:
  1. an identification type for the stream type. Here the identifications "C" and "X" are possible for the binary streams and character streams.

  2. an identification direction for the stream direction. Here the identifications "READER" and "WRITER" are possible for reader streams or writer streams.

The classes for the "filter stream" stream kind start with "CL_ABAP_FILTER_", followed by the identifications type and direction with the same meanings as for data stream classes. At present, no filter streams have been implemented.

Interfaces and Superclasses

All public methods of the data stream and filter stream classes are declared in interfaces which allow general access to the classes.

Data stream classes inherit CL_ABAP_type_direction from abstract superclasses. In these, methods are implemented, which are dependent on stream type and stream direction but independent of the resource.

Important Methods

In the case of data streams, the following methods are implemented as kernel methods. This means that access to the data source or data drain is completed by the ABAP runtime environment.

Methods for Reader Streams

Methods from the IF_ABAP_READER interface:

Methods for Writer Streams

Methods from the IF_ABAP_WRITER interface:

Methods for Both Stream Kinds

Methods from the IF_ABAP_CLOSE_RESOURCE interface: