CL_ABAP_UNGZIP_BINARY_STREAM - Class for Data Decompression (UnGzip, Streaming)
PERFORM Short Reference PERFORM Short ReferenceThis documentation is copyright by SAP AG.
Functionality
The methods of this class enable you to decompress binary data (X fields or XSTRINGS) compressed using GZIP portion by portion.
- CONSTRUCTOR
- SET_OUT_BUF
- Makes an output buffer available.
- GZIP_BINARY_STREAM
- Transfer of binary data to be decompressed
- GZIP_BINARY_STREAM_END
- Last transfer and completion of decompression
When the output buffer is filled, a callback method is called. This method must implement the method use_out_buf of the interface IF_ABAP_UNGZIP_BINARY_HANDLER.
Relationships
Example
CLASS user_outbuf DEFINITION.
PUBLIC SECTION.
INTERFACES if_abap_ungzip_binary_handler.
ENDCLASS.
CLASS user_outbuf IMPLEMENTATION.
METHOD if_abap_ungzip_binary_handler~use_out_buf.
.... handle out buffer ...
ENDMETHOD.
ENDCLASS.
DATA: uref TYPE REF TO user_outbuf.
CREATE OBJECT uref.
CREATE OBJECT csref
EXPORTING CONVERSION = 'DEFAULT'
OUTPUT_HANDLER = uref.
CALL METHOD csref->decompress_binary_stream
EXPORTING GZIP_IN = ingzip1 "some zipped binary
GZIP_IN_LEN = -1.
CALL METHOD csref->decompress_binary_stream_end.
EXPORTING GZIP_IN = ingzip2 "some more zipped binary
GZIP_IN_LEN = -1.
Notes
Further information
For further information, refer to the individual methods.
Addresses (Business Address Services) ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 2186 Date: 20120526 Time: 083408 triton ( 62 ms )






