Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for packing and extracting files

A file and package file technology, applied in the field of data processing, can solve the problems that the package tool is not flexible enough, not comprehensive enough, and the package tool is not suitable for network applications, etc., to achieve the effect of flexible file packaging and extraction, and comprehensive functions

Inactive Publication Date: 2010-02-24
PEKING UNIV +2
View PDF0 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method and device for packaging and extracting files, which are used to solve the problems that existing packaging tools are not flexible enough and have insufficient functions. The tool is not suitable for network applications; existing packaging tools cannot save multiple historical versions of the same file, etc.

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
  • Method and device for packing and extracting files
  • Method and device for packing and extracting files
  • Method and device for packing and extracting files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] Such as figure 2 As shown, the specific steps of a file packaging method provided in the embodiment of the present invention include:

[0058] Step 210, collect all the files that need to be packaged, each file is described by at least one file item, and each file item contains a plurality of file information for describing the content of the file, wherein the file information can be provided by the user or an external program.

[0059] Step 220, sort all file items. Among them, there are many ways to sort, for example:

[0060] (1) Arranged in the order of the structural hierarchy of the file system.

[0061] (2) Arrange according to the access sequence of file items in actual use. In this sorting method, since the file data inside the package file is stored in the order of access when it is actually used, when the package file is transmitted on the network, you can download the entire package file while using the package file. The file data part, so as to achieve...

Embodiment 2

[0082] In practical applications, it is also possible to modify the file information in some file items in the package file, such as image 3 As shown, a method for modifying a package file provided by an embodiment of the present invention includes the following steps:

[0083] Step 310, collect the file items containing the content of the modified file, and take out all the file items in the package file.

[0084] Step 320: Merge the file item extracted from the package file with the collected file item containing the content of the modified file.

[0085] The specific merging method is the same as the merging method in Embodiment 1, and will not be repeated here.

[0086] Step 330, write the merged file item into the package file.

[0087] Specifically, the method for writing the merged file item into the package file is the same as that in Embodiment 1, and will not be repeated here.

[0088] The modification method described in the second embodiment above belongs to cl...

Embodiment 3

[0090] Such as Figure 4 As shown, another package file modification method provided by the embodiment of the present invention includes the following steps:

[0091] Step 410, collect the file items containing the content of the modified file, and take out all the file items in the package file.

[0092] Step 420: Combine the collected file item containing the content of the modified file and the corresponding modified file item extracted from the package file into a file item.

[0093] For example, the collected file item 1 containing the modified file content is the file data in the file item 2 extracted from the modification package file, then the file item 1 and the file item 2 are combined into one file item.

[0094] Step 430: Divide the file information contained in the combined file item into at least two groups, and sort the file information contained in the group containing file data according to the order of use.

[0095] Step 440, write the sorted file informati...

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 discloses a method and a device for packing and extracting files, solving the problems of inflexible packing tools and incomplete function in the prior art. The method for packing filescomprises the following steps: collecting files to be packed, wherein each file is described by at least one file entry, each file entry comprises a plurality of file information used for describing file contents; dividing the file information contained in each file entry into at least two groups; and writing the file information in each group into a file package according to group identificationsof each group. The method for extracting files comprises the following steps: extracting the file information in the group including appointed unique identifications from the file package; determining position information of the group to which required file data belong according to the extracted file messages; and extracting the file information in the group to which the file data belong according to the position information. The files are packed and extracted more flexibly through the methods for packing and extracting the files.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a method and device for packing and extracting files. Background technique [0002] File packaging refers to combining multiple files stored in a storage device into one file. The combined file is called a package file, and users can also extract required files from the package file. [0003] In daily life, there are a large number of files in the computer. For rational layout and easy search, people usually classify and archive these files. When classifying and archiving, it is often necessary to pack multiple files. Generally, users will choose tools such as WinZip to package and store these files. The specific steps of packaging such tools include: first compress each file that needs to be packaged, and then write each compressed file into a package file. And the information corresponding to each file is centrally stored together. [0004] Packaging with WinZip can indeed so...

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 Applications(China)
IPC IPC(8): G06F17/30
CPCG06F12/00G06F9/44505G06F17/30115G06F19/00G06F3/00G06F7/00G06F1/00G06F16/16
Inventor 仇睿恒汤帜王毅
Owner PEKING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products