_DECOMPRESS_TEXT_STREAM SAP Method Kernel Method for Decompression
Below is documentation, parameters and attributes of ABAP Method _DECOMPRESS_TEXT_STREAM within SAP class CL_ABAP_UNGZIP_TEXT_STREAM. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_ABAP_UNGZIP_TEXT_STREAM into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method _DECOMPRESS_TEXT_STREAM can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method _DECOMPRESS_TEXT_STREAM
.| Name | Type | Data Type | Description | Default Value |
| CONVERSION | Importing | TYPE ABAP_ENCOD | Conversion to UTF8 (UC) | |
| DS_IN | Importing | TYPE %_C_POINTER | Decompress Handle | |
| GZIP_IN | Importing | TYPE XSEQUENCE | Input (Compressed Text) | |
| GZIP_IN_LEN | Importing | TYPE I | Input Length | |
| STREAM_END | Importing | TYPE ABAP_BOOL | End of Input | |
| TEXT_OUT_FILL | Importing | TYPE I | Fill Level of Output | |
| CHAR_BUF | Exporting | TYPE CSEQUENCE | Character Buffer | |
| CHAR_BUF_FILL | Exporting | TYPE I | Fill Level of Character Buffer | |
| MOJIBAKE | Exporting | TYPE XSEQUENCE | Mojibake Buffer | |
| MOJIBAKE_FILL | Exporting | TYPE I | Fill Level of Mojibake Buffer | |
| TEXT_OUT | Exporting | TYPE CSEQUENCE | Decompressed Output | |
| TEXT_OUT_LEN | Exporting | TYPE I | Output Length | |
| GZIP_IN_OFF | Changing | TYPE I |
Exceptions of Method _DECOMPRESS_TEXT_STREAM
CSEQUENCE
I
XSEQUENCE
I
CSEQUENCE
I
Example ABAP coding
This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.DATA: lo_class TYPE REF TO CL_ABAP_UNGZIP_TEXT_STREAM.
DATA: lv_CHAR_BUF TYPE CSEQUENCE,
lv_CHAR_BUF_FILL TYPE I,
lv_CONVERSION TYPE ABAP_ENCOD,
lv_DS_IN TYPE %_C_POINTER,
lv_GZIP_IN TYPE XSEQUENCE,
lv_GZIP_IN_LEN TYPE I,
lv_MOJIBAKE TYPE XSEQUENCE,
lv_MOJIBAKE_FILL TYPE I,
lv_STREAM_END TYPE ABAP_BOOL,
lv_TEXT_OUT TYPE CSEQUENCE,
lv_TEXT_OUT_FILL TYPE I,
lv_TEXT_OUT_LEN TYPE I,
lv_GZIP_IN_OFF TYPE I,
lv_other TYPE c.
CALL METHOD lo_class=>_DECOMPRESS_TEXT_STREAM(
EXPORTING
CONVERSION = lv_CONVERSION
DS_IN = lv_DS_IN
GZIP_IN = lv_GZIP_IN
GZIP_IN_LEN = lv_GZIP_IN_LEN
STREAM_END = lv_STREAM_END
TEXT_OUT_FILL = lv_TEXT_OUT_FILL
IMPORTING
CHAR_BUF = lv_CHAR_BUF
CHAR_BUF_FILL = lv_CHAR_BUF_FILL
MOJIBAKE = lv_MOJIBAKE
MOJIBAKE_FILL = lv_MOJIBAKE_FILL
TEXT_OUT = lv_TEXT_OUT
TEXT_OUT_LEN = lv_TEXT_OUT_LEN
CHANGING
GZIP_IN_OFF = lv_GZIP_IN_OFF ).
Links to Related Class(s)
CL_ABAP_...Full list of available SAP object classes
Search for further information about these or an SAP related objects