Unlock instant, AI-driven research and patent intelligence for your innovation.

A Chinese compression and decompression method and device based on java language

A JAVA language and decompression technology, applied in the field of data processing, can solve problems such as not supporting Chinese directory or file name compression and decompression

Active Publication Date: 2020-01-17
BANK OF CHINA
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a Chinese compression and decompression method and device based on the JAVA language, to solve the compression and decompression operations provided by the existing JAVA JDK, which only supports UTF-8 encoding, and many do not support Chinese directories or file names The problem of compressing and decompressing

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A Chinese compression and decompression method and device based on java language
  • A Chinese compression and decompression method and device based on java language
  • A Chinese compression and decompression method and device based on java language

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment

[0089] In this specific embodiment, the example of compression and decompression supporting Chinese function calls consists of three classes, ZipUnZipFileByJava is the main class, and CnZipInputStream and CnZipOutputStream are the called classes. The CnZipInputStream class is used to realize the Chinese culture of the compressed file input, and the CnZipOutputStream class is used to realize the Chinese culture of the decompressed file output stream.

[0090] The procedure for this specific example is:

[0091] 1. Declare the main class ZipUnZipFileByJava that supports Chinese functions for compression and decompression;

[0092] 2. Declare all files under the specified compressed directory f: / 118 / auto to the specified compressed file f: / 111 / auto.zip, specify GBK encoding, and realize the GBK Chinese encoding of the file name and file content in the specified compressed directory;

[0093] 3. Declare to decompress the f: / 111 / auto.zip file to the specified directory f: / 118 / auto...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and device for Chinese compression and decompression based on JAVA language. The method comprises the steps of calling a file compression and decompression Chinese supporting class; and adopting a method of utilizing a GBK encoding mode to compile the file compression and decompression Chinese supporting class to obtain UTF8 byte stream or character strings to compress a file under a designated catalog or decompress the file to the designated catalog. According to the method and device for Chinese compression and decompression based on JAVA language, by setting the encoding mode as GBK, compression and decompression operation on a file with the file name and the catalog in Chinese can be implemented.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a method and device for compressing and decompressing Chinese based on the JAVA language. Background technique [0002] This section is intended to provide a background or context for implementations of the invention that are recited in the claims. The descriptions herein are not admitted to be prior art by inclusion in this section. [0003] The compression and decompression operations provided by the existing JAVA JDK only support UTF-8 encoding, so many do not support the compression and decompression of Chinese directories or file names. Contents of the invention [0004] The purpose of the present invention is to provide a Chinese compression and decompression method and device based on the JAVA language to solve the compression and decompression operations provided by the existing JAVA JDK, which only supports UTF-8 encoding, and many do not support Chinese directories or ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/16G06F16/174
CPCG06F16/16G06F16/1744
Inventor 王同庆
Owner BANK OF CHINA