CL_ABAP_GZIP_BINARY_STREAM - Class for Data Compression (GZIP, Streaming)
BAL Application Log Documentation TXBHW - Original Tax Base Amount in Local CurrencyThis documentation is copyright by SAP AG.
Functionality
The methods of this class enable you to use GZIP to compress binary data (X fields or XSTRINGS) portion by portion.
- CONSTRUCTOR
- SET_OUT_BUF
- Makes an output buffer available.
- GZIP_BINARY_STREAM
- Transfer of binary data to be compressed
- GZIP_BINARY_STREAM_END
- Last transfer and completion of compression
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_GZIP_BINARY_HANDLER.
Relationships
Example
CLASS user_outbuf DEFINITION.
PUBLIC SECTION.
INTERFACES if_abap_gzip_binary_handler.
ENDCLASS.
CLASS user_outbuf IMPLEMENTATION.
METHOD if_abap_gzip_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->compress_binary_stream
EXPORTING RAW_IN = inraw1 "some binary data
RAW_IN_LEN = -1.
CALL METHOD csref->compress_binary_stream_end.
EXPORTING RAW_IN = inraw2 "some more bin data
RAW_IN_LEN = -1.
Notes
Further information
For further information, refer to the individual methods.
Addresses (Business Address Services) Fill RESBD Structure from EBP Component Structure
This documentation is copyright by SAP AG.
Length: 2181 Date: 20120526 Time: 081823 triton ( 50 ms )






