mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Zip refactoring (#2413)
* move method UNZIP_FILE to private * use LIKE LINE OF
This commit is contained in:
parent
b588daf5f7
commit
9c38004422
|
@ -10,21 +10,14 @@ CLASS zcl_abapgit_zip DEFINITION
|
||||||
!it_filter TYPE zif_abapgit_definitions=>ty_tadir_tt OPTIONAL
|
!it_filter TYPE zif_abapgit_definitions=>ty_tadir_tt OPTIONAL
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception .
|
zcx_abapgit_exception .
|
||||||
CLASS-METHODS export_package
|
|
||||||
RAISING
|
|
||||||
zcx_abapgit_exception
|
|
||||||
zcx_abapgit_cancel .
|
|
||||||
CLASS-METHODS export_object
|
CLASS-METHODS export_object
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception
|
zcx_abapgit_exception
|
||||||
zcx_abapgit_cancel .
|
zcx_abapgit_cancel .
|
||||||
CLASS-METHODS unzip_file
|
CLASS-METHODS export_package
|
||||||
IMPORTING
|
|
||||||
!iv_xstr TYPE xstring
|
|
||||||
RETURNING
|
|
||||||
VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_tt
|
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception .
|
zcx_abapgit_exception
|
||||||
|
zcx_abapgit_cancel .
|
||||||
CLASS-METHODS load
|
CLASS-METHODS load
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_tt
|
VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_tt
|
||||||
|
@ -32,26 +25,40 @@ CLASS zcl_abapgit_zip DEFINITION
|
||||||
zcx_abapgit_exception .
|
zcx_abapgit_exception .
|
||||||
PROTECTED SECTION.
|
PROTECTED SECTION.
|
||||||
PRIVATE SECTION.
|
PRIVATE SECTION.
|
||||||
CLASS-METHODS normalize_path
|
|
||||||
CHANGING ct_files TYPE zif_abapgit_definitions=>ty_files_tt
|
|
||||||
RAISING zcx_abapgit_exception.
|
|
||||||
|
|
||||||
CLASS-METHODS filename
|
|
||||||
IMPORTING iv_str TYPE string
|
|
||||||
EXPORTING ev_path TYPE string
|
|
||||||
ev_filename TYPE string
|
|
||||||
RAISING zcx_abapgit_exception.
|
|
||||||
|
|
||||||
CLASS-METHODS file_download
|
|
||||||
IMPORTING iv_package TYPE devclass
|
|
||||||
iv_xstr TYPE xstring
|
|
||||||
RAISING zcx_abapgit_exception.
|
|
||||||
|
|
||||||
CLASS-METHODS encode_files
|
CLASS-METHODS encode_files
|
||||||
IMPORTING it_files TYPE zif_abapgit_definitions=>ty_files_item_tt
|
IMPORTING
|
||||||
RETURNING VALUE(rv_xstr) TYPE xstring
|
!it_files TYPE zif_abapgit_definitions=>ty_files_item_tt
|
||||||
RAISING zcx_abapgit_exception.
|
RETURNING
|
||||||
|
VALUE(rv_xstr) TYPE xstring
|
||||||
|
RAISING
|
||||||
|
zcx_abapgit_exception .
|
||||||
|
CLASS-METHODS filename
|
||||||
|
IMPORTING
|
||||||
|
!iv_str TYPE string
|
||||||
|
EXPORTING
|
||||||
|
!ev_path TYPE string
|
||||||
|
!ev_filename TYPE string
|
||||||
|
RAISING
|
||||||
|
zcx_abapgit_exception .
|
||||||
|
CLASS-METHODS file_download
|
||||||
|
IMPORTING
|
||||||
|
!iv_package TYPE devclass
|
||||||
|
!iv_xstr TYPE xstring
|
||||||
|
RAISING
|
||||||
|
zcx_abapgit_exception .
|
||||||
|
CLASS-METHODS normalize_path
|
||||||
|
CHANGING
|
||||||
|
!ct_files TYPE zif_abapgit_definitions=>ty_files_tt
|
||||||
|
RAISING
|
||||||
|
zcx_abapgit_exception .
|
||||||
|
CLASS-METHODS unzip_file
|
||||||
|
IMPORTING
|
||||||
|
!iv_xstr TYPE xstring
|
||||||
|
RETURNING
|
||||||
|
VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_tt
|
||||||
|
RAISING
|
||||||
|
zcx_abapgit_exception .
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
||||||
|
|
||||||
|
@ -338,7 +345,7 @@ CLASS ZCL_ABAPGIT_ZIP IMPLEMENTATION.
|
||||||
DATA: lo_zip TYPE REF TO cl_abap_zip,
|
DATA: lo_zip TYPE REF TO cl_abap_zip,
|
||||||
lv_data TYPE xstring.
|
lv_data TYPE xstring.
|
||||||
|
|
||||||
FIELD-SYMBOLS: <ls_zipfile> TYPE cl_abap_zip=>t_file,
|
FIELD-SYMBOLS: <ls_zipfile> LIKE LINE OF lo_zip->files,
|
||||||
<ls_file> LIKE LINE OF rt_files.
|
<ls_file> LIKE LINE OF rt_files.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user