SAP ABAP Class CNV_00001_TEXT_PACKER (Text packer)
Hierarchy
DMIS (Software Component) DMIS 2011_1
   CA-GTF-BS (Application Component) Business Application Support
     CNV_BASIS (Package) Conversion: Basis functions
Properties
Class CNV_00001_TEXT_PACKER  
Short Description Text packer    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package CNV_BASIS   Conversion: Basis functions 
Created 20100216   SAP 
Last change 20141030    
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CNV_00001_TEXT_PACKER has no forward declaration.
Interfaces
Class CNV_00001_TEXT_PACKER has no interface implemented.
Friends
Class CNV_00001_TEXT_PACKER has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 ALPH1 Constant Protected Type reference (TYPE) CHAR64 '!"#$%&''()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTU' Character field, length 64 20100216
2 ALPH2 Constant Protected Type reference (TYPE) CHAR64 'VWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~' Character field, length 64 20100216
3 ALPHABET Static Attribute Protected Type reference (TYPE) CHAR128 128 character 20100216
4 H_ALPHABET Static Attribute Protected Type reference (TYPE) TY_HT_ALPHABET Alphabet map 20100216
5 H_REV_ALPHABET Static Attribute Protected Type reference (TYPE) TY_HT_RALPHABET Alphabet reverse map 20100216
Methods
# Method Level Visibility Method type Description Created on
1 CHECK_ALPHABET Static method Protected Method Checks whether all characters belong to the alphabet 20100510
2 CLASS_CONSTRUCTOR Static method Public Constructor Initializes static variables 20100216
3 COMPRESS Static method Public Method Returns compressed string 20100216
4 DECOMPRESS Static method Public Method Returns decompressed string 20100216
5 GET_CODE Static method Protected Method Returns code from alphabet 20100216
6 GET_INDEX Static method Protected Method Returns index of a code 20100216
7 GET_STOP_CHARACTER Static method Protected Method Analyzes the input string and returns stop character 20100216
8 INIT_ALPHABET Static method Protected Method Initializes alphabet 20100216
9 POSTPROCESS Static method Protected Method Postprocesses the output string 20100216
10 PREPROCESS Static method Protected Method Preprocesses the input string 20100216
11 STRING_TO_TABLE Static method Public Method Converts the string to a table 20100216
12 TABLE_TO_STRING Static method Public Method Converts the table to a string 20100216
Events
Class CNV_00001_TEXT_PACKER has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TY_ALPHABET Protected See coding TY_ALPHABET 20100216
2 TY_CHAR1 Protected See coding TY_CHAR1 20100216
3 TY_DICT Protected See coding TY_DICT 20100216
4 TY_HT_ALPHABET Protected See coding TY_HT_ALPHABET 20100216
5 TY_HT_DICT Protected See coding TY_HT_DICT 20100216
6 TY_HT_RALPHABET Protected See coding TY_HT_RALPHABET 20100216
7 TY_LONGCHAR Protected See coding TY_LONGCHAR 20100216
8 TY_T_DICT Protected See coding TY_T_DICT 20100216
Method Signatures

Method CHECK_ALPHABET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing STRING Call by reference Type reference (TYPE) STRING text 20100510
# Exception Resumable Description Created on
1 UNALLOWED_CHARACTERS There were some not allowed characters 20100510

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class CNV_00001_TEXT_PACKER has no parameter.
Method CLASS_CONSTRUCTOR on class CNV_00001_TEXT_PACKER has no exception.

Method COMPRESS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IN Call by reference Type reference (TYPE) STRING input string (uncompressed) 20100216
2 Exporting OUT Call by reference Type reference (TYPE) STRING output string (compressed) 20100216
3 Importing TABLE_IN Call by reference Type reference (TYPE) TABLE Table to compress 20100216
4 Importing TABLE_IN_LINE_LENGTH Call by reference Type reference (TYPE) INT4 0 Line length of input table 20100408
5 Exporting TABLE_OUT Call by reference Type reference (TYPE) TABLE Compressed table 20100216
6 Importing TABLE_OUT_LINE_LENGTH Call by reference Type reference (TYPE) INT4 Line length of output table 20100216
# Exception Resumable Description Created on
1 COMPRESSION_ERROR Data could not be compressed 20100216

Method DECOMPRESS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IN Call by reference Type reference (TYPE) STRING Input (compressed string) 20100216
2 Exporting OUT Call by reference Type reference (TYPE) STRING Output (decompressed string) 20100216
3 Importing TABLE_IN Call by reference Type reference (TYPE) TABLE Table to decompress 20100216
4 Importing TABLE_IN_LINE_LENGTH Call by reference Type reference (TYPE) INT4 0 Line length of input table 20100408
5 Exporting TABLE_OUT Call by reference Type reference (TYPE) TABLE Decompressed table 20100216
6 Importing TABLE_OUT_LINE_LENGTH Call by reference Type reference (TYPE) INT4 Line length of output table 20100216
# Exception Resumable Description Created on
1 INVALID_FORMAT Invalid input format 20100510

Method GET_CODE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning CODE Value transfer Type reference (TYPE) STRING Code 20100216
2 Importing INDEX Call by reference Type reference (TYPE) INT4 Natural number 20100216

Method GET_CODE on class CNV_00001_TEXT_PACKER has no exception.

Method GET_INDEX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing CODE Call by reference Type reference (TYPE) STRING code 20100216
2 Returning INDEX Value transfer Type reference (TYPE) INT4 index 20100216

Method GET_INDEX on class CNV_00001_TEXT_PACKER has no exception.

Method GET_STOP_CHARACTER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IN Call by reference Type reference (TYPE) STRING Input value 20100216
2 Returning STOP Value transfer Type reference (TYPE) CHAR1 Single-character flag 20100216
# Exception Resumable Description Created on
1 NO_STOP_AVAILABLE No stop character available 20100216

Method INIT_ALPHABET Signature

Method INIT_ALPHABET on class CNV_00001_TEXT_PACKER has no parameter.
Method INIT_ALPHABET on class CNV_00001_TEXT_PACKER has no exception.

Method POSTPROCESS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IN Call by reference Type reference (TYPE) STRING Output string 20100216
2 Exporting OUT Call by reference Type reference (TYPE) STRING Preprocessed output strng 20100216
3 Importing STOP Call by reference Type reference (TYPE) CHAR1 Stop character 20100216

Method POSTPROCESS on class CNV_00001_TEXT_PACKER has no exception.

Method PREPROCESS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IN Call by reference Type reference (TYPE) STRING Input string 20100216
2 Exporting OUT Call by reference Type reference (TYPE) STRING Preprocessed input strng 20100216
3 Importing STOP Call by reference Type reference (TYPE) CHAR1 Stop character 20100216

Method PREPROCESS on class CNV_00001_TEXT_PACKER has no exception.

Method STRING_TO_TABLE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing LINE_LENGTH Call by reference Type reference (TYPE) INT4 Length of table line in characters 20100216
2 Importing STRING Call by reference Type reference (TYPE) STRING string 20100216
3 Exporting TABLE Call by reference Type reference (TYPE) TABLE Table 20100216
# Exception Resumable Description Created on
1 UNALLOWED_TABLE_TYPE Type of the line of the table is neither string nor char 20100216

Method TABLE_TO_STRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting STRING Call by reference Type reference (TYPE) STRING string 20100216
2 Importing TABLE Call by reference Type reference (TYPE) TABLE Table 20100216
3 Importing TABLE_LENGTH Call by reference Type reference (TYPE) INT4 0 Line length 20100408

Method TABLE_TO_STRING on class CNV_00001_TEXT_PACKER has no exception.
History
Last changed by/on SAP  20141030 
SAP Release Created in 2006_1_46C