CL_ABAP_GZIP_TEXT_STREAM - Class for Text Compression (GZIP, Streaming)
TXBHW - Original Tax Base Amount in Local Currency Addresses (Business Address Services)This documentation is copyright by SAP AG.
Functionality
The methods of this class enable you to use GZIP to compress texts (in C fields or strings) portion by portion.
- CONSTRUCTOR
- SET_OUT_BUF
- Makes an output buffer available.
- GZIP_TEXT_STREAM
- Transfer of text segments to be compressed
- GZIP_TEXT_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_TEXT_HANDLER.
Relationships
Example
CLASS user_outbuf DEFINITION.
PUBLIC SECTION.
INTERFACES if_abap_gzip_text_handler.
ENDCLASS.
CLASS user_outbuf IMPLEMENTATION.
METHOD if_abap_gzip_text_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_text_stream
EXPORTING TEXT_IN = intext1 " some text
TEXT_IN_LEN = -1.
CALL METHOD csref->compress_text_stream_end
EXPORTING TEXT_IN = intext2 " some more text
TEXT_IN_LEN = -1.
Notes
Further information
For further information, refer to the individual methods.
CPI1466 during Backup CPI1466 during Backup
This documentation is copyright by SAP AG.
Length: 2198 Date: 20120526 Time: 081838 triton ( 47 ms )






