CN103607444A - Method and apparatus for download processing of Zip compression packet in application program - Google Patents

Method and apparatus for download processing of Zip compression packet in application program Download PDF

Info

Publication number
CN103607444A
CN103607444A CN201310566711.0A CN201310566711A CN103607444A CN 103607444 A CN103607444 A CN 103607444A CN 201310566711 A CN201310566711 A CN 201310566711A CN 103607444 A CN103607444 A CN 103607444A
Authority
CN
China
Prior art keywords
compressed package
zip
xap
suffix
zip compressed
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.)
Granted
Application number
CN201310566711.0A
Other languages
Chinese (zh)
Other versions
CN103607444B (en
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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201310566711.0A priority Critical patent/CN103607444B/en
Publication of CN103607444A publication Critical patent/CN103607444A/en
Application granted granted Critical
Publication of CN103607444B publication Critical patent/CN103607444B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and apparatus for download processing of a Zip compression packet in an application program. The download processing method comprises the following steps: obtaining an Xap compression packet in an application program; obtaining a Zip compression packet in the Xap compression packet; modifying the postfix of the Zip compression packet into a preset postfix; and downloading the Zip compression packet with modified preset postfix. According to the invention, an effect of Zip compression packet downloading without an error is realized.

Description

The download process method and apparatus of Zip compressed package in application program
Technical field
The present invention relates to internet arena, in particular to the download process method and apparatus of Zip compressed package in a kind of application program.
Background technology
Silverlight program is in when issue, can produce a main Xap compressed package with a plurality of by the associated Zip compressed package of Xap compressed package.While using Silverlight program, can first from server, obtain Xap compressed package, and by Xap, wrap built-in configuration file and download relevant Zip compressed package.And the part telecom operation chamber of commerce carries out " buffer memory " to Zip compressed package, exactly Zip compressed package is saved in themselves server from real server.Inventor finds, Silverlight program is when obtaining associated Zip compressed package, need the server at Zip compressed package place that a kind of special access authority is provided, and in the server of telecom operators, do not have this authority, thereby it is imperfect to cause Silverlight to download Zip compressed package, and program is made mistakes.If solve the problem of this buffer memory, generally needs and telecom operators link up ,Rang telecom operators and remove the buffer memory abduction to Zip compressed package.
Problem for downloading Zip compressed package in correlation technique and easily makeing mistakes, not yet proposes effective solution at present.
Summary of the invention
Main purpose of the present invention is to provide the download process method and apparatus of Zip compressed package in a kind of application program, to solve, downloads the problem that Zip compressed package is easily made mistakes in correlation technique.
To achieve these goals, according to an aspect of the present invention, provide the download process method of Zip compressed package in a kind of application program.In application according to the present invention program, the download process method of Zip compressed package comprises: obtain the Xap compressed package in application program; Obtain the Zip compressed package in Xap compressed package; The suffix of Zip compressed package is revised as to default suffix; And download is revised as the Zip compressed package of default suffix.
Further, the Zip compressed package obtaining in Xap compressed package comprises: decompress(ion) Xap compressed package; Read the address of quoting Zip compressed package of recording in the configuration file in the Xap compressed package after decompress(ion); And by all Zip compressed packages associated with Xap compressed package of address search.
Further, after the suffix of Zip compressed package being revised as to default suffix, download process method also comprises: the address that obtains amended Zip compressed package; And the address of the address of recording in configuration file being revised as to amended Zip compressed package.
Further, after the address of amended Zip compressed package is revised as in the address of recording in configuration file, download process method also comprises: preserve amended configuration file; And the Xap compressed package after configuration file is revised in compression again.
Further, application program is Silverlight program, the suffix of Zip compressed package is revised as to default suffix and comprises: the suffix of Zip compressed package is revised as to gszip.
To achieve these goals, according to a further aspect in the invention, provide the download process device of Zip compressed package in a kind of application program.In application according to the present invention program, the download process device of Zip compressed package comprises: the first acquiring unit, for obtaining the Xap compressed package of application program; Second acquisition unit, for obtaining the Zip compressed package of Xap compressed package; First revises unit, for the suffix of Zip compressed package is revised as to default suffix; And download unit, for downloading the Zip compressed package that is revised as default suffix.
Further, second acquisition unit comprises: decompression module, for decompress(ion) Xap compressed package; Read module, for reading the address of quoting Zip compressed package of recording in the configuration file of the Xap compressed package after decompress(ion); And search module, for by all Zip compressed packages associated with Xap compressed package of address search.
Further, download process device also comprises: the 3rd acquiring unit, and for after the suffix of Zip compressed package being revised as to default suffix, the address that obtains amended Zip compressed package; And second revise unit, the address of being revised as amended Zip compressed package for the address that configuration file is recorded.
Further, download process device also comprises: memory cell, for after the address of amended Zip compressed package is revised as in the address that configuration file is recorded, preserve amended configuration file; And compression unit, for again compressing the Xap compressed package of revising after configuration file.
Further, application program is Silverlight program, and first revises unit comprises: modified module, and for the suffix of Zip compressed package is revised as to gszip.
By the present invention, adopt the download process method of Zip compressed package in application program to comprise: to obtain the Xap compressed package in application program; Obtain the Zip compressed package in Xap compressed package; The suffix of Zip compressed package is revised as to default suffix; And download is revised as the Zip compressed package of default suffix, after obtaining the Zip compressed package in Xap compressed package, Zip compressed package is revised as to default suffix, because telecom operators are when kidnapping file, can kidnap according to specific suffix name, when revising Zip compressed package for after presetting suffix, can walk around telecom operators, by download, be revised as the Zip compressed package of default suffix, to avoid, because telecom operators' abduction causes downloading the problem that Zip compressed package is easily made mistakes, downloading thereby reached the effect that Zip compressed package is not made mistakes.
Accompanying drawing explanation
The accompanying drawing that forms the application's a part is used to provide a further understanding of the present invention, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the structural representation of the download process device of Zip compressed package in the application program of first embodiment of the invention;
Fig. 2 is according to the structural representation of the download process device of Zip compressed package in the application program of second embodiment of the invention;
Fig. 3 is according to the structural representation of the download process device of Zip compressed package in the application program of third embodiment of the invention
Fig. 4 is according to the flow chart of the download process method of Zip compressed package in the application program of first embodiment of the invention;
Fig. 5 is according to the flow chart of the download process method of Zip compressed package in the application program of second embodiment of the invention; And
Fig. 6 is according to the flow chart of the download process method of Zip compressed package in the application program of third embodiment of the invention.
Embodiment
It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
In order to make those skilled in the art person understand better the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, the term " first " in specification of the present invention and claims and above-mentioned accompanying drawing, " second " etc. are for distinguishing similar object, and needn't be for describing specific order or precedence.Should be appreciated that the data of such use are suitably exchanging in situation, so that embodiments of the invention described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, for example, those steps or unit that the process that has comprised series of steps or unit, method, system, product or equipment are not necessarily limited to clearly list, but can comprise clearly do not list or for these processes, method, product or equipment intrinsic other step or unit.
The embodiment of the present invention provides the download process device of Zip compressed package in a kind of application program, and this device can be realized its function by computer equipment.
Fig. 1 is according to the structural representation of the download process device of Zip compressed package in the application program of first embodiment of the invention.As shown in Figure 1, in this application program, the download process device of Zip compressed package comprises: the first acquiring unit 10, second acquisition unit 20, first are revised unit 30 and download unit 40.
The first acquiring unit 10 is for obtaining the Xap compressed package of application program.
When application program update, need to obtain the Xap compressed package in application program, can be to download from the server of application program, in order to upgrade application program.The application program here can be Silverlight program.
Second acquisition unit 20 is for obtaining the Zip compressed package of Xap compressed package.
During due to renewal application program, the Zip compressed package that need to upgrade Xap compressed package and be associated with Xap compressed package, therefore, after the Xap compressed package in obtaining application program, obtains the Zip compressed package in Xap compressed package.The Zip compressed package obtaining in Xap compressed package can be the address of quoting Zip compressed package that obtains the configuration file record in Xap compressed package, then finds all Zip compressed package associated with Xap compressed package according to this address.
First revises unit 30 for the suffix of Zip compressed package is revised as to default suffix.
After Zip compressed package in obtaining Xap compressed package, the suffix name of the Zip compressed package that Xap compressed package is associated is changed.Because there is different suffix names in its corresponding capital of different files, for example the suffix of Zip compressed package can be " Zip ", the suffix of Xap compressed package can be " Xap ", the suffix of the Zip compressed package in Xap compressed package is revised as to default suffix, the suffix name of the file that this default suffix can be default settings can be suffix name arbitrarily.For example, the suffix that can preset amended Zip compressed package is " gszip ", when its original suffix is " Zip ", the suffix of Zip compressed package is changed to " gszip " by " Zip ".It can be that the suffix of all Zip compressed packages that Xap compressed package is associated is all revised as default suffix that the suffix of Zip compressed package is revised as to default suffix.
Download unit 40 is for downloading the Zip compressed package that is revised as default suffix.
After revising the suffix of Zip compressed package, download the Zip compressed package that is revised as default suffix.Owing to just the suffix of Zip compressed package being modified, its file content is not done any change, therefore the file in the Zip compressed package that is revised as default suffix of downloading is identical with the file in the Zip compressed package of revising before suffix, when using this Zip compressed package application programs to upgrade, there will not be abnormal.
According to the embodiment of the present invention, after obtaining the Zip compressed package in Xap compressed package, Zip compressed package is revised as to default suffix, because telecom operators are when kidnapping file, can kidnap according to specific suffix name, when revising Zip compressed package for after presetting suffix, can walk around telecom operators, by download, be revised as the Zip compressed package of default suffix, to avoid, because telecom operators' abduction causes downloading the problem that Zip compressed package is easily made mistakes, downloading thereby reach the effect that Zip compressed package is not made mistakes.
Fig. 2 is according to the structural representation of the download process device of Zip compressed package in the application program of second embodiment of the invention.In the application program of this embodiment, the download process device of Zip compressed package can be used as a kind of preferred implementation of above-described embodiment.As shown in Figure 2, in this application program, the download process device of Zip compressed package comprises: the first acquiring unit 10, second acquisition unit 20, first are revised unit 30 and download unit 40, wherein, second acquisition unit 20 comprises decompression module 201, read module 202 and searches module 203.It is all identical with download unit 40 functions with the first acquiring unit 10, the first modification unit 30 shown in Fig. 1 with download unit 40 that the first acquiring unit 10, first is revised unit 30, do not repeat here.
Decompression module 201 is for decompress(ion) Xap compressed package.
When each Xap compressed package upgrades, decompress(ion) Xap compressed package, can be automatic decompress(ion) Xap compressed package.Owing to recording the address of the Zip compressed package that this Xap compressed package quotes in the built-in configuration file of Xap compressed package, therefore Xap compressed package is carried out to decompress(ion), so that read the address of Zip compressed package.
Read module 202 is for reading the address of quoting Zip compressed package of recording in the configuration file of the Xap compressed package after decompress(ion).
After decompress(ion) Xap compressed package, read the address that records the Zip compressed package that this Xap compressed package quotes in the built-in configuration file of Xap compressed package.This address can be the true address in the server of application program, by this address, can find the original Zip compressed package associated with Xap compressed package.
Search module 203 for by all Zip compressed packages associated with Xap compressed package of address search.
After the address of quoting Zip compressed package of recording in the configuration file in the Xap compressed package after reading decompress(ion), by the address of reading, find all Zip compressed packages associated with Xap compressed package, so that the suffix name of this Zip compressed package is correspondingly processed.
Fig. 3 is according to the structural representation of the download process device of Zip compressed package in the application program of third embodiment of the invention.In the application program of this embodiment, the download process device of Zip compressed package can be used as a kind of preferred implementation of above-described embodiment.As shown in Figure 3, in this application program, the download process device of Zip compressed package comprises: the first acquiring unit 10, second acquisition unit 20, first are revised unit 30, download unit 40, the 3rd acquiring unit 50 and the second modification unit 60, wherein, second acquisition unit 20 comprises decompression module 201, read module 202 and searches module 203.The first acquiring unit 10, second acquisition unit 20, first revised unit 30 and download unit 40 and the first acquiring unit 10 shown in Fig. 2, second acquisition unit 20, the first modification unit 30 is all identical with download unit 40 functions, do not repeat here.
The 3rd acquiring unit 50 is for after being revised as the suffix of Zip compressed package default suffix, the address that obtains amended Zip compressed package.
Due to after the suffix of Zip compressed package being revised as to default suffix, the address of corresponding Zip compressed package likely can change, and the address that therefore obtains amended Zip compressed package, so that be again stored in this address in the configuration file of Xap compressed package.
Second revises unit 60 is revised as the address of amended Zip compressed package for the address that configuration file is recorded.
During due to use application program, can first from server, obtain Xap compressed package, and download by the built-in configuration file of Xap compressed package the Zip compressed package being associated, therefore the address of amended Zip compressed package need to be revised as in the address of the Zip compressed package recording in configuration file, thereby avoid makeing mistakes and causing Zip compressed package to download the problem of makeing mistakes due to the address of Zip compressed package.
Preferably, in the application program of the embodiment of the present invention, Zip compressed package download process device also comprises memory cell and compression unit.
Memory cell, for after the address of amended Zip compressed package is revised as in the address that configuration file is recorded, is preserved amended configuration file.
The address of Zip compressed package is revised as to the address of revising the Zip compressed package after suffix name, has completed the modification to the configuration file of Xap compressed package, after revising good this configuration file, amended configuration file is stored.
Compression unit is for again compressing the Xap compressed package of revising after configuration file.
After configuration file is revised and stored, again compress amended Xap compressed package and form new Xap compressed package, thus can be for the renewal of application program.
Preferably, the application program of the embodiment of the present invention is Silverlight program, and wherein, first revises unit 30 comprises modified module, and this modified module is for being revised as gszip by the suffix of Zip compressed package.
The embodiment of the present invention also provides the download process method of Zip compressed package in a kind of application program.The method may operate on computer.It should be noted that, in the application program that in the application program of the embodiment of the present invention, the download process method of Zip compressed package can provide by the embodiment of the present invention, the download process device of Zip compressed package is carried out, the download process method of Zip compressed package in the application program that in the application program of the embodiment of the present invention, the download process device of Zip compressed package also can provide for the execution embodiment of the present invention.
Fig. 4 is according to the flow chart of the download process method of Zip compressed package in the application program of first embodiment of the invention.As shown in Figure 4, in this application program, the download process method of Zip compressed package comprises that step is as follows:
Step S101, obtains the Xap compressed package in application program.
When application program update, need to obtain the Xap compressed package in application program, can be to download from the server of application program, in order to upgrade application program.The application program here can be Silverlight program.
Step S102, obtains the Zip compressed package in Xap compressed package.
During due to renewal application program, the Zip compressed package that need to upgrade Xap compressed package and be associated with Xap compressed package, therefore, after the Xap compressed package in obtaining application program, obtains the Zip compressed package in Xap compressed package.The Zip compressed package obtaining in Xap compressed package can be the address of quoting Zip compressed package that obtains the configuration file record in Xap compressed package, then finds all Zip compressed package associated with Xap compressed package according to this address.
Step S103, is revised as default suffix by the suffix of Zip compressed package.
After Zip compressed package in obtaining Xap compressed package, the suffix name of the Zip compressed package that Xap compressed package is associated is changed.Because there is different suffix names in its corresponding capital of different files, for example the suffix of Zip compressed package can be " Zip ", the suffix of Xap compressed package can be " Xap ", the suffix of the Zip compressed package in Xap compressed package is revised as to default suffix, the suffix name of the file that this default suffix can be default settings can be suffix name arbitrarily.For example, the suffix that can preset amended Zip compressed package is " gszip ", when its original suffix is " Zip ", the suffix of Zip compressed package is changed to " gszip " by " Zip ".It can be that the suffix of all Zip compressed packages that Xap compressed package is associated is all revised as default suffix that the suffix of Zip compressed package is revised as to default suffix.
Step S104, downloads the Zip compressed package that is revised as default suffix.
After revising the suffix of Zip compressed package, download the Zip compressed package that is revised as default suffix.Owing to just the suffix of Zip compressed package being modified, its file content is not done any change, therefore the file in the Zip compressed package that is revised as default suffix of downloading is identical with the file in the Zip compressed package of revising before suffix, when using this Zip compressed package application programs to upgrade, there will not be abnormal.
According to the embodiment of the present invention, after obtaining the Zip compressed package in Xap compressed package, Zip compressed package is revised as to default suffix, because telecom operators are when kidnapping file, can kidnap according to specific suffix name, when revising Zip compressed package for after presetting suffix, can walk around telecom operators, by download, be revised as the Zip compressed package of default suffix, to avoid, because telecom operators' abduction causes downloading the problem that Zip compressed package is easily made mistakes, downloading thereby reach the effect that Zip compressed package is not made mistakes.
Fig. 5 is according to the flow chart of the download process method of Zip compressed package in the application program of second embodiment of the invention.In the application program of this embodiment, the download process method of Zip compressed package can be used as a kind of preferred implementation of the download process method of Zip compressed package in the application program of above-described embodiment.As shown in Figure 5, in this application program, the download process method of Zip compressed package comprises that step is as follows:
Step S201, obtains the Xap compressed package in application program.
When application program update, need to obtain the Xap compressed package in application program, can be to download from the server of application program, can be also to obtain from local cache, in order to upgrade application program.The application program here can be Silverlight program.
Step S202, decompress(ion) Xap compressed package.
When each Xap compressed package upgrades, decompress(ion) Xap compressed package, can be automatic decompress(ion) Xap compressed package.Owing to recording the address of the Zip compressed package that this Xap compressed package quotes in the built-in configuration file of Xap compressed package, therefore Xap compressed package is carried out to decompress(ion), so that read the address of Zip compressed package.
Step S203, reads the address of quoting Zip compressed package of recording in the configuration file in the Xap compressed package after decompress(ion).
After decompress(ion) Xap compressed package, read the address that records the Zip compressed package that this Xap compressed package quotes in the built-in configuration file of Xap compressed package.This address can be the true address in the server of application program, by this address, can find the original Zip compressed package associated with Xap compressed package.
Step S204, by all Zip compressed packages associated with Xap compressed package of address search.
After the address of quoting Zip compressed package of recording in the configuration file in the Xap compressed package after reading decompress(ion), by the address of reading, find all Zip compressed packages associated with Xap compressed package, so that the suffix name of this Zip compressed package is correspondingly processed.
Step S205, is revised as default suffix by the suffix of Zip compressed package.
After Zip compressed package in obtaining Xap compressed package, the suffix name of the Zip compressed package that Xap compressed package is associated is changed.Because there is different suffix names in its corresponding capital of different files, for example the suffix of Zip compressed package can be " Zip ", the suffix of Xap compressed package can be " Xap ", the suffix of the Zip compressed package in Xap compressed package is revised as to default suffix, the suffix name of the file that this default suffix can be default settings can be suffix name arbitrarily.For example, the suffix that can preset amended Zip compressed package is " gszip ", when its original suffix is " Zip ", the suffix of Zip compressed package is changed to " gszip " by " Zip ".It can be that the suffix of all Zip compressed packages that Xap compressed package is associated is all revised as default suffix that the suffix of Zip compressed package is revised as to default suffix.
Step S206, downloads the Zip compressed package that is revised as default suffix.
After revising the suffix of Zip compressed package, download the Zip compressed package that is revised as default suffix.Owing to just the suffix of Zip compressed package being modified, its file content is not done any change, therefore the file in the Zip compressed package that is revised as default suffix of downloading is identical with the file in the Zip compressed package of revising before suffix, when using this Zip compressed package application programs to upgrade, there will not be abnormal.
Fig. 6 is according to the flow chart of the download process method of Zip compressed package in the application program of third embodiment of the invention.In the application program of this embodiment, the download process method of Zip compressed package can be used as a kind of preferred implementation of the download process method of Zip compressed package in the application program of above-described embodiment.As shown in Figure 6, in this application program, the download process method of Zip compressed package comprises that step is as follows:
Step S301, obtains the Xap compressed package in application program.
When application program update, need to obtain the Xap compressed package in application program, can be to download from the server of application program, can be also to obtain from local cache, in order to upgrade application program.The application program here can be Silverlight program.
Step S302, decompress(ion) Xap compressed package.
When each Xap compressed package upgrades, decompress(ion) Xap compressed package, can be automatic decompress(ion) Xap compressed package.Owing to recording the address of the Zip compressed package that this Xap compressed package quotes in the built-in configuration file of Xap compressed package, therefore Xap compressed package is carried out to decompress(ion), so that read the address of Zip compressed package.
Step S303, reads the address of quoting Zip compressed package of recording in the configuration file in the Xap compressed package after decompress(ion).
After decompress(ion) Xap compressed package, read the address that records the Zip compressed package that this Xap compressed package quotes in the built-in configuration file of Xap compressed package.This address can be the true address in the server of application program, by this address, can find the original Zip compressed package associated with Xap compressed package.
Step S304, by all Zip compressed packages associated with Xap compressed package of address search.
After the address of quoting Zip compressed package of recording in the configuration file in the Xap compressed package after reading decompress(ion), by the address of reading, find all Zip compressed packages associated with Xap compressed package, so that the suffix name of this Zip compressed package is correspondingly processed.
Step S305, is revised as default suffix by the suffix of Zip compressed package.
After Zip compressed package in obtaining Xap compressed package, the suffix name of the Zip compressed package that Xap compressed package is associated is changed.Because there is different suffix names in its corresponding capital of different files, for example the suffix of Zip compressed package can be " Zip ", the suffix of Xap compressed package can be " Xap ", the suffix of the Zip compressed package in Xap compressed package is revised as to default suffix, the suffix name of the file that this default suffix can be default settings can be suffix name arbitrarily.For example, the suffix that can preset amended Zip compressed package is " gszip ", when its original suffix is " Zip ", the suffix of Zip compressed package is changed to " gszip " by " Zip ".It can be that the suffix of all Zip compressed packages that Xap compressed package is associated is all revised as default suffix that the suffix of Zip compressed package is revised as to default suffix.
Step S306, the address that obtains amended Zip compressed package.
Due to after the suffix of Zip compressed package being revised as to default suffix, the address of corresponding Zip compressed package likely can change, and the address that therefore obtains amended Zip compressed package, so that be again stored in this address in the configuration file of Xap compressed package.
Step S307, the address of the address of recording in configuration file being revised as to amended Zip compressed package.
During due to use application program, can first from server, obtain Xap compressed package, and download by the built-in configuration file of Xap compressed package the Zip compressed package being associated, therefore the address of amended Zip compressed package need to be revised as in the address of the Zip compressed package recording in configuration file, thereby avoid makeing mistakes and causing Zip compressed package to download the problem of makeing mistakes due to the address of Zip compressed package.
Step S308, downloads the Zip compressed package that is revised as default suffix.
After revising the suffix of Zip compressed package, download the Zip compressed package that is revised as default suffix.Owing to just the suffix of Zip compressed package being modified, its file content is not done any change, therefore the file in the Zip compressed package that is revised as default suffix of downloading is identical with the file in the Zip compressed package of revising before suffix, when using this Zip compressed package application programs to upgrade, there will not be abnormal.
Preferably, after step S307, in application program, the download process method of Zip compressed package also comprises step S1 and step S2:
Step S1, preserves amended configuration file.
The address of Zip compressed package is revised as to the address of revising the Zip compressed package after suffix name, has completed the modification to the configuration file of Xap compressed package, after revising good this configuration file, amended configuration file is stored.
Step S2, and the Xap compressed package after configuration file is revised in compression again.
After configuration file is revised and stored, again compress amended Xap compressed package and form new Xap compressed package, thus can be for the renewal of application program.
Preferably, the application program in the embodiment of the present invention is Silverlight program, the suffix of Zip compressed package is revised as to default suffix and comprises: the suffix of Zip compressed package is revised as to gszip.
It should be noted that, in the step shown in the flow chart of accompanying drawing, can in the computer system such as one group of computer executable instructions, carry out, and, although there is shown logical order in flow process, but in some cases, can carry out shown or described step with the order being different from herein.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
These are only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a download process method for Zip compressed package in application program, is characterized in that, comprising:
Obtain the Xap compressed package in application program;
Obtain the Zip compressed package in described Xap compressed package;
The suffix of described Zip compressed package is revised as to default suffix; And
Download is revised as the Zip compressed package of default suffix.
2. download process method according to claim 1, is characterized in that, the Zip compressed package obtaining in described Xap compressed package comprises:
Xap compressed package described in decompress(ion);
Read the address of quoting Zip compressed package of recording in the configuration file in the described Xap compressed package after decompress(ion);
And
By all described Zip compressed packages associated with described Xap compressed package of described address search.
3. download process method according to claim 2, is characterized in that, after the suffix of described Zip compressed package being revised as to default suffix, described download process method also comprises:
Obtain the address of described amended described Zip compressed package; And
The address of recording in described configuration file is revised as to the address of described amended described Zip compressed package.
4. download process method according to claim 3, is characterized in that, after the address of described amended described Zip compressed package is revised as in the address of recording in described configuration file, described download process method also comprises:
Preserve amended described configuration file; And
Again the described Xap compressed package after described configuration file is revised in compression.
5. download process method according to claim 1, is characterized in that, described application program is Silverlight program, the suffix of described Zip compressed package is revised as to default suffix and comprises:
The suffix of described Zip compressed package is revised as to gszip.
6. a download process device for Zip compressed package in application program, is characterized in that, comprising:
The first acquiring unit, for obtaining the Xap compressed package of application program;
Second acquisition unit, for obtaining the Zip compressed package of described Xap compressed package;
First revises unit, for the suffix of described Zip compressed package is revised as to default suffix; And
Download unit, for downloading the Zip compressed package that is revised as default suffix.
7. download process device according to claim 6, is characterized in that, described second acquisition unit comprises:
Decompression module, for Xap compressed package described in decompress(ion);
Read module, for reading the address of quoting Zip compressed package of recording in the configuration file of the described Xap compressed package after decompress(ion); And
Search module, for by all described Zip compressed packages associated with described Xap compressed package of described address search.
8. download process device according to claim 7, is characterized in that, described download process device also comprises:
The 3rd acquiring unit, for after the suffix of described Zip compressed package being revised as to default suffix, the address that obtains described amended described Zip compressed package; And
Second revises unit, the address of being revised as described amended described Zip compressed package for the address that described configuration file is recorded.
9. download process device according to claim 8, is characterized in that, described download process device also comprises:
Memory cell, for after the address of described amended described Zip compressed package is revised as in the address that described configuration file is recorded, preserves amended described configuration file; And
Compression unit, for again compressing the described Xap compressed package of revising after described configuration file.
10. download process device according to claim 6, is characterized in that, described application program is Silverlight program, and described first revises unit comprises:
Modified module, for being revised as gszip by the suffix of described Zip compressed package.
CN201310566711.0A 2013-11-14 2013-11-14 The download process method and apparatus of Zip compressed package in application program Active CN103607444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310566711.0A CN103607444B (en) 2013-11-14 2013-11-14 The download process method and apparatus of Zip compressed package in application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310566711.0A CN103607444B (en) 2013-11-14 2013-11-14 The download process method and apparatus of Zip compressed package in application program

Publications (2)

Publication Number Publication Date
CN103607444A true CN103607444A (en) 2014-02-26
CN103607444B CN103607444B (en) 2016-10-05

Family

ID=50125644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310566711.0A Active CN103607444B (en) 2013-11-14 2013-11-14 The download process method and apparatus of Zip compressed package in application program

Country Status (1)

Country Link
CN (1) CN103607444B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306531A (en) * 2015-09-17 2016-02-03 浪潮集团有限公司 Packaged downloading method based on Zip compression mode
CN107360254A (en) * 2017-08-22 2017-11-17 北京奇艺世纪科技有限公司 A kind of document down loading method, device, server and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882156A (en) * 2010-06-13 2010-11-10 用友软件股份有限公司 Controllable cache method and system of Silverlight client side
US20110225488A1 (en) * 2010-03-15 2011-09-15 Jasim George Schluter X/html support for silverlight applications
CN102520962A (en) * 2011-12-22 2012-06-27 苏州博远容天信息科技有限公司 Method for simplifying Silverlight component deployment
CN102902564A (en) * 2012-09-26 2013-01-30 北京奇虎科技有限公司 Method and device for installing patches

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110225488A1 (en) * 2010-03-15 2011-09-15 Jasim George Schluter X/html support for silverlight applications
CN101882156A (en) * 2010-06-13 2010-11-10 用友软件股份有限公司 Controllable cache method and system of Silverlight client side
CN102520962A (en) * 2011-12-22 2012-06-27 苏州博远容天信息科技有限公司 Method for simplifying Silverlight component deployment
CN102902564A (en) * 2012-09-26 2013-01-30 北京奇虎科技有限公司 Method and device for installing patches

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306531A (en) * 2015-09-17 2016-02-03 浪潮集团有限公司 Packaged downloading method based on Zip compression mode
CN107360254A (en) * 2017-08-22 2017-11-17 北京奇艺世纪科技有限公司 A kind of document down loading method, device, server and terminal

Also Published As

Publication number Publication date
CN103607444B (en) 2016-10-05

Similar Documents

Publication Publication Date Title
CN107729352B (en) Page resource loading method and terminal equipment
CN109391673B (en) Method, system and terminal equipment for managing update file
CN109829287A (en) Api interface permission access method, equipment, storage medium and device
CN104104971A (en) Video file processing method and system
CN106850842A (en) A kind of download of file, method for uploading and device
CN105468393B (en) Module release upgrade method and terminal installation
CN105516246A (en) Method for preventing application program downloading hijacking and server
CN106648445B (en) Data storage method and device for web crawler
CN113010378B (en) Log processing method and device of microservice module, storage medium and electronic device
CN106055375B (en) Application program installation method and device
CN104090946A (en) Method and device for adding information to application installation package
CN105022832A (en) Method for safely downloading APP (application), mobile terminal and download server
EP3506599B1 (en) Method for synchronizing contact information, apparatus and medium
WO2018076769A1 (en) Information processing method and apparatus
CN104361007B (en) The processing method of browser and its collection
CN111176706A (en) Terminal upgrading method and device, electronic equipment and storage medium
CN103607444A (en) Method and apparatus for download processing of Zip compression packet in application program
CN105740298A (en) File processing method and apparatus, and server-side equipment
CN105656643A (en) Method and equipment for performing compatible management based on network configuration protocol
CN106569865B (en) Method and device for manufacturing system upgrade file of terminal
CN113259494A (en) File storage method and device, electronic equipment and storage medium
CN105959779A (en) Method and device for updating satellite frequency points in set top box
CN105872106A (en) Over-the-air upgrade method, over-the-air server and terminal
US10528625B2 (en) Client cloud synchronizer
CN109842498B (en) Client configuration method, server, client and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method and apparatus for download processing of Zip compression packet in application program

Effective date of registration: 20190531

Granted publication date: 20161005

Pledgee: Shenzhen Black Horse World Investment Consulting Co., Ltd.

Pledgor: Beijing Guoshuang Technology Co.,Ltd.

Registration number: 2019990000503

PE01 Entry into force of the registration of the contract for pledge of patent right
CP02 Change in the address of a patent holder

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Patentee after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Patentee before: Beijing Guoshuang Technology Co.,Ltd.

CP02 Change in the address of a patent holder