CN107168962A - A kind of document handling method, client and user equipment - Google Patents

A kind of document handling method, client and user equipment Download PDF

Info

Publication number
CN107168962A
CN107168962A CN201610127240.7A CN201610127240A CN107168962A CN 107168962 A CN107168962 A CN 107168962A CN 201610127240 A CN201610127240 A CN 201610127240A CN 107168962 A CN107168962 A CN 107168962A
Authority
CN
China
Prior art keywords
file
system file
information
compression
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610127240.7A
Other languages
Chinese (zh)
Inventor
兰凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanechips Technology Co Ltd
Shenzhen ZTE Microelectronics Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201610127240.7A priority Critical patent/CN107168962A/en
Publication of CN107168962A publication Critical patent/CN107168962A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files

Abstract

The invention discloses a kind of document handling method, client and user equipment, including:Client is parsed to system file, obtains at least following information of the system file:The size of system file, use partial information, unused portion information;According to the information obtained, the data of unused portion are deleted, to be compressed to the system file;The system file after compression is sent to user equipment.User equipment receives the system file after the compression that client is sent;System file after the compression is parsed, the information of the system file is obtained;According to the information of the system file, the system file after the compression is reduced, the system file after being decompressed.

Description

A kind of document handling method, client and user equipment
Technical field
The present invention relates to communication products download technology, more particularly to a kind of document handling method, client and User equipment.
Background technology
Communication class product is the terminal for referring to carry out data transmission with other equipment, such as mobile phone, notebook Deng.Using communication class product from network-side or other-end downloading data when, typically using single lower current-carrying Journey, i.e.,:First circulation performs data transfer operation, then carries out data write operation.
Under the support of operating system, some communication class products by data transfer operation and data write operation simultaneously Row is performed, so as to save the time downloaded, improves download efficiency.With the development of communication class product, Intelligent machine is widely used by user, because the version file of intelligent machine is excessive, further using compressing file and Decompression technique carries out data download, so as to greatly increase the efficiency of download.
However, in the case of single download flow, how to accomplish both to lift download efficiency, and do not introduce multiple Miscellaneous degree is the problem of having to be solved.
The content of the invention
In order to solve the above technical problems, the embodiments of the invention provide a kind of document handling method, client and User equipment.
Document handling method provided in an embodiment of the present invention, including:
System file is parsed, at least following information of the system file is obtained:System file it is big It is small, use partial information, unused portion information;
According to the information obtained, the data of unused portion are deleted, to be compressed to the system file;
The system file after compression is sent to user equipment.
In the embodiment of the present invention, methods described also includes:
The system file is parsed, determined labeled as empty file;
Delete the file that the mark is.
It is described that system file is parsed in the embodiment of the present invention, determine labeled as empty file, bag Include:
File using part is parsed, determines file content labeled as empty file;
It is described to determine that methods described also includes labeled as after empty file:
The image file for the file that the mark is is created, to preserve the information for the file that the mark is.
The document handling method that another embodiment of the present invention is provided, including:
Receive and deleted not in the system file after the compression that client is sent, the system file after the compression Use the data of part;
System file after the compression is parsed, the information of the system file is obtained;
According to the information of the system file, the system file after the compression is reduced, decompressed System file afterwards.
In the embodiment of the present invention, the information according to the system file, to the system text after the compression Part is reduced, the system file after being decompressed, including:
The information of image file is searched according to file system rule;According to the information of the image file to mark Reduced for empty file;
According to the information of system file, the data of unused portion, the system file after being decompressed are reduced.
Client provided in an embodiment of the present invention, including:
Resolution unit, for being parsed to system file, obtains at least following information of the system file: The size of system file, use partial information, unused portion information;
Compression unit, for according to the information obtained, the data of unused portion being deleted, with to the system System file is compressed;
Transmission unit, for the system file after compression to be sent to user equipment.
In the embodiment of the present invention, the resolution unit is additionally operable to parse the system file, it is determined that Go out labeled as empty file;
The compression unit, is additionally operable to delete the file that the mark is.
In the embodiment of the present invention, the resolution unit is additionally operable to parse the file using part, Determine file content labeled as empty file;
The client also includes:Creating unit, the image file for creating the file that the mark is, To preserve the information for the file that the mark is.
User equipment provided in an embodiment of the present invention, including:
Transmission unit, the system file after compression for receiving client transmission;
Resolution unit, for being parsed to the system file after the compression, obtains the system file Information;
Decompression units, for the information according to the system file, are carried out to the system file after the compression Reduction, the system file after being decompressed.
In the embodiment of the present invention, the decompression units include:
First decompression subelement, for the information according to system file, reduces the data of unused portion;
Second decompression subelement, the information for searching image file according to file system rule;According to described The information of image file is reduced to the file that mark is, the system file after being decompressed.
In the technical scheme of the embodiment of the present invention, when client is compressed to system file, first to system File is parsed, and is determined labeled as empty file;Then the file that the mark is is deleted, with right The system file is compressed;Finally the system file after compression is sent to user equipment.User When equipment is decompressed to the system file after compression, the system text after the compression that client is sent is received first Part;Then the system file after the compression is parsed, obtains the information of the system file;Finally According to the information of the system file, the system file after the compression is reduced, after being decompressed System file.Using the technical scheme of the embodiment of the present invention, download efficiency can be greatly promoted, section has been reached The about effect of download time;And without more complexity is introduced, more easily realize.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the document handling method of the embodiment of the present invention one;
Fig. 2 is the schematic flow sheet of the document handling method of the embodiment of the present invention two;
Fig. 3 is the schematic flow sheet of the document handling method of the embodiment of the present invention three;
Fig. 4 is the structure composition schematic diagram of the client of the embodiment of the present invention;
Fig. 5 is the structure composition schematic diagram of the user equipment of the embodiment of the present invention.
Embodiment
The characteristics of in order to more fully hereinafter understand the embodiment of the present invention and technology contents, below in conjunction with the accompanying drawings Realization to the embodiment of the present invention is described in detail, appended accompanying drawing purposes of discussion only for reference, is not used for Limit the embodiment of the present invention.
Fig. 1 for the document handling method of the embodiment of the present invention one schematic flow sheet, at the file in this example Reason method is applied to client, as shown in figure 1, the document handling method comprises the following steps:
Step 101:System file is parsed, at least following information of the system file is obtained:System Unite file size, use partial information, unused portion information.
In the embodiment of the present invention, the client can be carried on notebook computer (PC), can also be held It is loaded in the equipment such as desktop computer, server.
In the embodiment of the present invention, the system file is parsed, obtain the system file at least with Lower information:The size of system file, use partial information, unused portion information;According to what is obtained Information, deletes the data of unused portion.
Specifically, system file is a complete binary file, passes through head of the client to system file Portion is parsed, and parsing is divided into two parts:
Part I is parsed:Obtain the size of system file, using part and unused portion.
Part II is parsed:Analysis has used the file of part, for file content labeled as empty file. In addition, also creating the image file of this document, the information to retain this document.
In the embodiment of the present invention, it is contemplated that it is often system file that version file, which takes data volume the best part,. And in system file, most numerical value is 0xFF (labeled as sky), i.e. the files-designated of the overwhelming majority It is designated as sky.So, client be exactly to the core that system file is compressed will in system file mark for Empty part is deleted, and in system files, retains the relevant information of its original size.
Therefore, the client of the embodiment of the present invention is also parsed to system file, determine labeled as sky File.
Step 102:According to the information obtained, the data of unused portion are deleted, with to system text Part is compressed.
Specifically, parsed corresponding to Part I:Delete the data of unused portion.Corresponding to Part II Parsing:Delete labeled as empty file.Finally give the system file after compression.
Here, it be can be achieved by deleting the data of unused portion and deleting labeled as empty file to system File is compressed, the system file after being compressed.System file after compression is relative to before compression Unite for file, the corresponding space of unused portion has been lacked in data volume and labeled as the corresponding sky in empty part Between.
Step 103:The system file after compression is sent to user equipment.
In the embodiment of the present invention, the system file after compression is sent to user equipment, by user equipment to pressure System file after contracting carries out decompression reduction, it is achieved thereby that the down operation of system file.
The system file for downloading a 20MB or so size by prior art needs about 15 seconds, using this After the technical scheme of inventive embodiments, it is only necessary to can just complete down operation within about 10 seconds, it is seen that download effect Rate is greatly enhanced.
Fig. 2 for the document handling method of the embodiment of the present invention two schematic flow sheet, at the file in this example Reason method is applied to user equipment, as shown in Fig. 2 the document handling method comprises the following steps:
Step 201:Receive the system file after the compression that client is sent, the system file after the compression In delete the data of unused portion.
In the embodiment of the present invention, the user equipment can be the equipment such as mobile phone, tablet personal computer, game machine.
In the embodiment of the present invention, user equipment receives the system file after the compression that client is sent.Here, Client includes the detailed process that system file is compressed:System file is parsed, bid is determined It is designated as the file of sky;The file that the mark is is deleted, to be compressed to the system file.In addition, The system file is parsed, at least following information of the system file is obtained:System file it is big It is small, use partial information, unused portion information;According to the information obtained, unused portion is deleted Data.
Step 202:System file after the compression is parsed, the information of the system file is obtained.
In the embodiment of the present invention, the information of system file includes:The size of system file, use part are believed Breath, unused portion information, the information of image file.
Step 203:According to the information of the system file, the system file after the compression is reduced, System file after being decompressed.
Specifically, according to the information of system file, the data of unused portion are reduced;Advised according to file system Then search the information of image file;The file that mark is is reduced according to the information of the image file, System file after being decompressed.
Finally, the system file after decompression is write in flash memory (Flash) and stored.
Fig. 3 is the schematic flow sheet of the document handling method of the embodiment of the present invention three, as shown in figure 3, described Document handling method comprises the following steps:
Step 301:Client is parsed to system file, is determined labeled as empty file;Delete institute State labeled as empty file, to be compressed to the system file.
Step 302:Client sends the system file after compression to user equipment.
Step 303:User equipment receives the system file after the compression that client is sent
Step 304:User equipment is parsed to the system file after the compression, obtains the system text The information of part;According to the information of the system file, the system file after the compression is reduced, obtained System file after to decompression.
Fig. 4 is the structure composition schematic diagram of the client of the embodiment of the present invention, as shown in figure 4, the client End includes:
Resolution unit 41, for being parsed to system file, obtains at least following of the system file and believes Breath:The size of system file, use partial information, unused portion information;
Compression unit 42, for according to the information obtained, the data of unused portion being deleted, with to described System file is compressed;
Transmission unit 43, for the system file after compression to be sent to user equipment.
The resolution unit 41, is additionally operable to parse the system file, determines labeled as empty text Part;
The compression unit 42, is additionally operable to delete the file that the mark is.
The resolution unit 41, is additionally operable to parse the file using part, determines file content Labeled as empty file;
The client also includes:Creating unit 44, it is literary for creating the mirror image for marking the file for being Part, to preserve the information for the file that the mark is.
It will be appreciated by those skilled in the art that each unit in client shown in Fig. 4 realizes that function can join Understand according to the associated description of aforementioned document processing method.The function of each unit in client shown in Fig. 4 It can be realized, can also be realized by specific logic circuit by running on the program on processor.
Fig. 5 is the structure composition schematic diagram of the user equipment of the embodiment of the present invention, as shown in figure 5, described use Family equipment includes:
Transmission unit 51, the system file after compression for receiving client transmission;
Resolution unit 52, for being parsed to the system file after the compression, obtains the system file Information;
Decompression units 53, for the information according to the system file, enter to the system file after the compression Row reduction, the system file after being decompressed.
The decompression units 53 include:
First decompression subelement 531, for the information according to system file, reduces the data of unused portion;
Second decompression subelement 532, the information for searching image file according to file system rule;According to The information of the image file is reduced to the file that mark is, the system file after being decompressed.
It will be appreciated by those skilled in the art that each unit in user equipment shown in Fig. 5 realizes that function can Understand with reference to the associated description of aforementioned document processing method.The each unit in user equipment shown in Fig. 5 Function can be realized by running on the program on processor, can also be realized by specific logic circuit.
, can be in any combination in the case where not conflicting between technical scheme described in the embodiment of the present invention.
In several embodiments provided by the present invention, it should be understood that disclosed method and smart machine, It can realize by another way.Apparatus embodiments described above are only schematical, for example, The division of the unit, only a kind of division of logic function, can there is other division side when actually realizing Formula, such as:Multiple units or component can be combined, or be desirably integrated into another system, or some features can To ignore, or do not perform.In addition, the coupling or straight of shown or discussed each part each other Connect coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of equipment or unit, Can be electrical, machinery or other forms.
The above-mentioned unit illustrated as separating component can be or may not be it is physically separate, as The part that unit is shown can be or may not be physical location, you can positioned at a place, also may be used To be distributed on multiple NEs;Part or all of unit therein can be selected according to the actual needs Realize the purpose of this embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a second processing list , can also two or more unit collection in member or each unit is individually as a unit Into in a unit;Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ hard Part adds the form of SFU software functional unit to realize.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited to This, any one skilled in the art the invention discloses technical scope in, can readily occur in Change or replacement, should all be included within the scope of the present invention.

Claims (10)

1. a kind of document handling method, it is characterised in that methods described includes:
System file is parsed, at least following information of the system file is obtained:System file it is big It is small, use partial information, unused portion information;
According to the information obtained, the data of unused portion are deleted, to be compressed to the system file;
The system file after compression is sent to user equipment.
2. document handling method according to claim 1, it is characterised in that methods described also includes:
The system file is parsed, determined labeled as empty file;
Delete the file that the mark is.
3. document handling method according to claim 2, it is characterised in that described to enter to system file Row parsing, is determined labeled as empty file, including:
File using part is parsed, determines file content labeled as empty file;
It is described to determine that methods described also includes labeled as after empty file:
The image file for the file that the mark is is created, to preserve the information for the file that the mark is.
4. a kind of document handling method, it is characterised in that methods described includes:
Receive and deleted not in the system file after the compression that client is sent, the system file after the compression Use the data of part;
System file after the compression is parsed, the information of the system file is obtained;
According to the information of the system file, the system file after the compression is reduced, decompressed System file afterwards.
5. document handling method according to claim 4, it is characterised in that described according to the system The information of file, is reduced to the system file after the compression, the system file after being decompressed, bag Include:
According to the information of system file, the data of unused portion are reduced;
The information of image file is searched according to file system rule;According to the information of the image file to mark Reduced for empty file, the system file after being decompressed.
6. a kind of client, it is characterised in that the client includes:
Resolution unit, for being parsed to system file, obtains at least following information of the system file: The size of system file, use partial information, unused portion information;
Compression unit, for according to the information obtained, the data of unused portion being deleted, with to the system System file is compressed;
Transmission unit, for the system file after compression to be sent to user equipment.
7. client according to claim 6, it is characterised in that
The resolution unit, is additionally operable to parse the system file, determines labeled as empty file;
The compression unit, is additionally operable to delete the file that the mark is.
8. client according to claim 7, it is characterised in that the resolution unit, it is additionally operable to pair Parsed using the file of part, determine file content labeled as empty file;
The client also includes:Creating unit, the image file for creating the file that the mark is, To preserve the information for the file that the mark is.
9. a kind of user equipment, it is characterised in that the user equipment includes:
Transmission unit, the system file after compression for receiving client transmission, the system after the compression The data of unused portion are deleted in file;
Resolution unit, for being parsed to the system file after the compression, obtains the system file Information;
Decompression units, for the information according to the system file, are carried out to the system file after the compression Reduction, the system file after being decompressed.
10. user equipment according to claim 9, it is characterised in that the decompression units include:
First decompression subelement, for the information according to system file, reduces the data of unused portion;
Second decompression subelement, the information for searching image file according to file system rule;According to described The information of image file is reduced to the file that mark is, the system file after being decompressed.
CN201610127240.7A 2016-03-07 2016-03-07 A kind of document handling method, client and user equipment Pending CN107168962A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610127240.7A CN107168962A (en) 2016-03-07 2016-03-07 A kind of document handling method, client and user equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610127240.7A CN107168962A (en) 2016-03-07 2016-03-07 A kind of document handling method, client and user equipment

Publications (1)

Publication Number Publication Date
CN107168962A true CN107168962A (en) 2017-09-15

Family

ID=59849217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610127240.7A Pending CN107168962A (en) 2016-03-07 2016-03-07 A kind of document handling method, client and user equipment

Country Status (1)

Country Link
CN (1) CN107168962A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1112759A (en) * 1993-12-09 1995-11-29 美国电报电话公司 Dropped-from document image compression
CN1599455A (en) * 2003-09-17 2005-03-23 Lg电子株式会社 Apparatus and method for providing high speed download service of multimedia contents
CN101056252A (en) * 2007-06-07 2007-10-17 中兴通讯股份有限公司 Transmission method of compression file
CN101917474A (en) * 2010-08-12 2010-12-15 中兴通讯股份有限公司 Method, system and device for downloading file
CN102651716A (en) * 2011-02-24 2012-08-29 阿里巴巴集团控股有限公司 Method and system for file folder transmission in instant communication, and instant receiving client side
CN104407905A (en) * 2014-12-16 2015-03-11 北京奇虎科技有限公司 Deep cleaning and updating method and device
CN105302663A (en) * 2015-09-19 2016-02-03 华为技术有限公司 Mirror image starting method and terminal equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1112759A (en) * 1993-12-09 1995-11-29 美国电报电话公司 Dropped-from document image compression
CN1599455A (en) * 2003-09-17 2005-03-23 Lg电子株式会社 Apparatus and method for providing high speed download service of multimedia contents
CN101056252A (en) * 2007-06-07 2007-10-17 中兴通讯股份有限公司 Transmission method of compression file
CN101917474A (en) * 2010-08-12 2010-12-15 中兴通讯股份有限公司 Method, system and device for downloading file
CN102651716A (en) * 2011-02-24 2012-08-29 阿里巴巴集团控股有限公司 Method and system for file folder transmission in instant communication, and instant receiving client side
CN104407905A (en) * 2014-12-16 2015-03-11 北京奇虎科技有限公司 Deep cleaning and updating method and device
CN105302663A (en) * 2015-09-19 2016-02-03 华为技术有限公司 Mirror image starting method and terminal equipment

Similar Documents

Publication Publication Date Title
CN103051723B (en) A kind of method for updating increment and server, terminal
CN102073512B (en) JAVA cluster application system code loading and upgrading device and method
CN103455475B (en) Composition method, equipment and system
CN105988996B (en) Index file generation method and device
CN104182529A (en) Method and device for identifying and storing to-be-downloaded files and searching downloaded files in mobile terminals
CN102722386A (en) Method and device for generating firmware over the air (FOTA) upgrade pack
CN108536745B (en) Shell-based data table extraction method, terminal, equipment and storage medium
CN107402798B (en) Method and apparatus for converting sequencing scripts to reuse JCL in different coding environments
US20150373150A1 (en) Server, client, system and method for preloading browsed page in browser
CN105550179A (en) Webpage collection method and browser plug-in
CN105989013A (en) Method and device for removing character watermarks
CN103294507A (en) Method and device for providing information of downloading resources
CN104363237B (en) A kind of processing method and its system of the Internet media resource metadata
CN105260459A (en) Search method and apparatus
CN107241638A (en) The method for configuring navigation bar
CN107168962A (en) A kind of document handling method, client and user equipment
CN109617708B (en) Compression method, device and system for embedded point log
CN105847516A (en) Method and device for managing contact person information
CN114466387B (en) Updating method and device of configuration file of base station, storage medium and electronic device
CN108874856A (en) A kind of page generates system, method and server
CN102346771A (en) Information expression method and device
CN109951318A (en) The function configuration method and device of application
CN108614844B (en) Multimedia file generation method and device
CN108008984A (en) A kind of resource file downloading updating method and device
CN105278987B (en) A kind of information processing method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170915

RJ01 Rejection of invention patent application after publication