CN109947771A - Conversion method, device, equipment and the computer readable storage medium of file type - Google Patents

Conversion method, device, equipment and the computer readable storage medium of file type Download PDF

Info

Publication number
CN109947771A
CN109947771A CN201810947606.4A CN201810947606A CN109947771A CN 109947771 A CN109947771 A CN 109947771A CN 201810947606 A CN201810947606 A CN 201810947606A CN 109947771 A CN109947771 A CN 109947771A
Authority
CN
China
Prior art keywords
file type
file
conversion
type
target
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
CN201810947606.4A
Other languages
Chinese (zh)
Other versions
CN109947771B (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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201810947606.4A priority Critical patent/CN109947771B/en
Publication of CN109947771A publication Critical patent/CN109947771A/en
Application granted granted Critical
Publication of CN109947771B publication Critical patent/CN109947771B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of conversion method of file type, device, equipment and computer readable storage mediums, the described method includes: when receiving the conversion instruction of file type in the application interface of business development application, the corresponding data content of file identification before extracting conversion, and determine target file type to be converted;The Java archive file jar packet for calling the business development application to prestore, to obtain the corresponding target file type template of the target file type according to the jar packet;The data content of extraction is added in the target file type template, to generate the file of target file type, realizes the conversion of file type.The present invention improves the convenience of file conversion, also improves transfer efficiency.

Description

Conversion method, device, equipment and the computer readable storage medium of file type
Technical field
The present invention relates to file processing technology field more particularly to a kind of conversion method of file type, device, equipment and Computer readable storage medium.
Background technique
It is not the same developer when due to exploitation business function during existing business development, it sometimes appear that The file type of downloading and the file type of upload are inconsistent, and business function is difficult to general, in this case, need files classes Type is converted, so that the file type after conversion meets the demand of user.However, existing file type needs user hand Dynamic downloading file, then conversion, this conversion regime, not only cumbersome, Er Qiezhuan are clicked by special switching software manually It is relatively low to change efficiency.
Summary of the invention
The main purpose of the present invention is to provide a kind of conversion method of file type, device, equipment and computer-readable Storage medium, it is intended to solve the conversion regime of existing file type, cumbersome, the low technical problem of transfer efficiency.
To achieve the above object, the present invention provides a kind of conversion method of file type, the conversion side of the file type Method includes:
File when receiving the conversion instruction of file type in the application interface of business development application, before extracting conversion Corresponding data content is identified, and determines target file type to be converted;
The Java archive file jar packet for calling the business development application to prestore, to obtain the mesh according to the jar packet Mark the corresponding target file type template of file type;
The data content of extraction is added in the target file type template, to generate target file type File realizes the conversion of file type.
Optionally, it is described business development application application interface in receive the conversion instruction of file type when, extract The corresponding data content of file identification before conversion, and the step of determining target file type to be converted includes:
File identification window is shown in the first predeterminable area of application interface where business development application, and described Second predeterminable area of application interface shows that file type selects window;
If detecting file identification selection instruction in the file identification window, and window is selected in the file type In receive file type selection operation, then enable switching button;
When receiving touch control operation in the switching button, confirmation receives the conversion instruction of file type;
Based on the conversion instruction of the file type, extracted in the corresponding data of file identification of selection in the database Hold, and target file type is determined according to the file type of selection.
Optionally, it is described business development application application interface in receive the conversion instruction of file type when, extract The corresponding data content of file identification before conversion, and the step of determining target file type to be converted further include:
File identification window is shown in the application interface of business development application, if in the file identification window File identification selection instruction is received, then pops up file type selection window;
After receiving file type selection operation in file type selection window, confirmation receives file type Conversion instruction;
Based on the conversion instruction of the file type, extracted in the corresponding data of file identification of selection in the database Hold, and target file type is determined according to the file type of selection.
Optionally, the Java archive file jar packet for calling the business development application to prestore, according to the jar Packet obtains the step of target file type corresponding target file type template and includes:
The jar packet for calling the business development application to prestore;
The application programming api interface of the jar packet is determined according to the target file type, and obtains the API The corresponding target file type template of interface.
Optionally, the application programming api interface that the jar packet is determined according to the target file type, and The step of obtaining the api interface corresponding target file type template include:
Identify the suffix information of the target file type;
The associated api interface of suffix information is determined in the jar packet;
According to the mapping relations of preset api interface and target file type template, the determining api interface pair is obtained The target file type template answered.
Optionally, it is described business development application application interface in receive the conversion instruction of file type when, extract The corresponding data content of file identification before conversion, and before the step of determining target file type to be converted, the method Further include:
When receiving file uploading instructions, show that file uploads window in the application interface of business development application Mouthful, to receive the file of user's upload;
When the file uploads the file for receiving user's upload in window, files-designated is extracted from the file received Knowledge and data content;
The data content of extraction is stored into the tables of data of database, and establishes the data content and the file of storage The incidence relation of mark, so as to subsequently received file download instruction when, according to the file identification of file database institute It states and extracts data content in tables of data.
Optionally, described that the data content of extraction is added in the target file type template, to generate mesh The file of file type is marked, after the step of realizing the conversion of file type, the method also includes:
The file of the target file type is cached;
Within a preset time interval, if receiving the conversion instruction of the file type, the file of caching is directly extracted It is shown.
In addition, to achieve the above object, the present invention also provides a kind of conversion equipment of file type, the file type Conversion equipment includes:
Processing module mentions when for receiving the conversion instruction of file type in the application interface that business development is applied The corresponding data content of file identification before taking conversion, and determine target file type to be converted;
It calls and obtains module, the Java archive file jar packet for calling the business development application to prestore, according to institute It states jar packet and obtains the corresponding target file type template of the target file type;
Generation module, for the data content extracted to be added in the target file type template, to generate The file of target file type realizes the conversion of file type.
In addition, to achieve the above object, the present invention also provides a kind of conversion equipment of file type, the file type Conversion equipment includes memory, processor, communication bus and is stored on the memory and can run on the processor File type conversion program;
The communication bus is for realizing the communication connection between processor and memory;
The processor is used to execute the conversion program of the file type, to realize file type as described above The step of conversion method.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium It is stored with the conversion program of file type on storage medium, is realized such as when the conversion program of the file type is executed by processor The step of conversion method of file type described above.
The conversion method of file type proposed by the present invention receives files classes in the application interface of business development application When the conversion instruction of type, the corresponding data content of file identification before converting is extracted, and determine target file type to be converted, Then the Java archive file jar packet for calling the business development application to prestore, to obtain the target text according to the jar packet The corresponding target file type template of part type, is added to the target file type mould for the data content of extraction later In plate, to generate the file of target file type, the conversion of file type is realized.Conversion of the present invention to file type, without User, which downloads file manually and passes through special switching software again, to convert, as long as selecting in the application interface of business development application File identification and target file type to be converted before selecting conversion, can call jar packet to realize the conversion process of file type, The convenience for improving file conversion, also improves transfer efficiency.
Detailed description of the invention
Fig. 1 is the conversion equipment structural representation of the file type for the hardware running environment that the embodiment of the present invention is related to Figure;
Fig. 2 is the flow diagram of the conversion method first embodiment of file type of the present invention;
The first refinement flow diagram that Fig. 3 is step S10 in Fig. 2;
The second refinement flow diagram that Fig. 4 is step S10 in Fig. 2;
Fig. 5 is the refinement flow diagram of step S20 in Fig. 2;
Fig. 6 is the refinement flow diagram of step S22 in Fig. 5;
Fig. 7 is the flow diagram of the conversion method second embodiment of file type of the present invention;
Fig. 8 is the flow diagram of the conversion method 3rd embodiment of file type of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The solution of the embodiment of the present invention is mainly: receiving file type in the application interface of business development application Conversion instruction when, the corresponding data content of file identification before extracting conversion, and determine target file type to be converted, so The Java archive file jar packet for calling the business development application to prestore afterwards, to obtain the file destination according to the jar packet The corresponding target file type template of type, is added to the target file type template for the data content of extraction later In, to generate the file of target file type, realize the conversion of file type.Conversion of the present invention to file type.To solve The conversion regime of existing file type, conversion operation is cumbersome, the low problem of transfer efficiency.
As shown in Figure 1, Fig. 1 is the conversion equipment of the file type for the hardware running environment that the embodiment of the present invention is related to Structural schematic diagram.
The conversion equipment of file type of the embodiment of the present invention can be PC, be also possible to smart phone, tablet computer, portable The equipment having a display function such as computer.
As shown in Figure 1, the conversion equipment of this document type may include: processor 1001, such as CPU, communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 for realizing these components it Between connection communication.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), Optional user interface 1003 can also include wireline interface (such as connecting wired keyboard, wire mouse etc.), the nothing of standard Line interface (such as connecting Wireless Keyboard, wireless mouse).Network interface 1004 optionally may include that the wired of standard connects Mouth (for connecting cable network), wireless interface (such as WI-FI interface, blue tooth interface, infrared interface, for connecting wirelessly Network).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile ), such as magnetic disk storage memory.Memory 1005 optionally can also be the storage dress independently of aforementioned processor 1001 It sets.
Optionally, equipment can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio Circuit, WiFi module etc..
It will be understood by those skilled in the art that the conversion equipment structure of file type shown in Fig. 1 do not constitute to turn The restriction of exchange device may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
As shown in Figure 1, as may include operating system, net in a kind of memory 1005 of computer readable storage medium The conversion program of network communication module, Subscriber Interface Module SIM and file type.Wherein, operating system is to manage and control files classes The conversion equipment of type and the program of software resource, support network communication module, Subscriber Interface Module SIM, file type conversion program And the operation of other programs or software;Network communication module is for managing and controlling network interface 1002;Subscriber Interface Module SIM For managing and controlling user interface 1003.
In the conversion equipment of file type shown in Fig. 1, the conversion equipment of the file type passes through processor 1001 The conversion program of the file type stored in memory 1005 is called, to realize the conversion method of file type as described below The step of.
The hardware configuration of conversion equipment based on above-mentioned file type proposes each of the conversion method of file type of the present invention A embodiment.
It is the flow diagram of the conversion method first embodiment of file type of the present invention referring to Fig. 2, Fig. 2.
In the present embodiment, the conversion method of the file type includes:
Step S10 when receiving the conversion instruction of file type in the application interface of business development application, extracts conversion The corresponding data content of preceding file identification, and determine target file type to be converted;
Step S20, the Java archive file jar packet for calling the business development application to prestore, to be obtained according to the jar packet Take the corresponding target file type template of the target file type;
The data content of extraction is added in the target file type template by step S30, to generate target text The file of part type realizes the conversion of file type.
In the present embodiment, the conversion method of the file type is applied to the conversion equipment of file type, the file The conversion equipment of type conversion equipment as shown in Figure 1.It is provided with database in the conversion equipment of the file type, the data Library content for storing data.
It is the specific steps that the conversion of file type is realized in the present embodiment below:
Step S10 when receiving the conversion instruction of file type in the application interface of business development application, extracts conversion The corresponding data content of preceding file identification, and determine target file type to be converted;
In the present embodiment, first start business development application, to show the application interface of business development application, show business After the application interface of development and application, the conversion instruction of file type is received in the application interface of business development application, with The corresponding data content of file identification before conversion is extracted according to the conversion instruction of file type, and determines target text to be converted Part type.
Specifically, the embodiment of the step S10 includes:
1) mode one, reference Fig. 3, the step S10 include:
Step S11 shows file identification window in the first predeterminable area of application interface where business development application, And show that file type selects window in the second predeterminable area of the application interface;
In the present embodiment, after starting business development application, first at interface where business development application is pre- If region shows that file identification window, the specific location of first predeterminable area without limitation, can be arranged according to actual needs, It include each file identification in the file identification window, each file identification is the corresponding files-designated of file before conversion Know, file identification is chosen as filename (such as data statistic), being also chosen as the filename comprising file extension, (such as data are united Count table .xsl).
In the present embodiment, business development application can also be selected in the second predeterminable area and show file type selection window, institute State the specific location of the second predeterminable area equally without limitation, with the first predeterminable area difference, the file type selection Include each file type in window, in the present embodiment, the file type includes file extension, such as xls, csv or doc。
Step S12, if detecting file identification selection instruction in the file identification window, and in the file type File type selection operation is received in selection window, then enables switching button;
The first predeterminable area show file identification window, and the second predeterminable area show file type selection window it Afterwards, it if detecting file identification selection instruction in the file identification window, and is connect in file type selection window File type selection operation is received, then enables switching button set in advance in application interface, it should be noted that switching button That gray scale is shown in advance, indicate the switching button can not touch-control (even if touch-control there will not be response), this document identify window Mouth detects file identification selection instruction, and after this document type selects to receive file type selection operation in window, The switching button is just enabled, so that the switching button can be triggered the conversion instruction of file type by touch-control.
Step S13, when receiving touch control operation in the switching button, the conversion that confirmation receives file type refers to It enables;
After enabled switching button, if receiving touch control operation in the switching button, determination receives file type Conversion instruction, wherein the touch control operation includes clicking operation or pressing operation.
Step S14, based on the conversion instruction of the file type, the file identification for extracting selection in the database is corresponding Data content, and target file type is determined according to the file type of selection.
After receiving the conversion instruction of file type, based on the conversion instruction of the file type, in the database The corresponding data content of file identification of selection is extracted, and target file type is determined according to the file type of selection.It should be understood that The conversion instruction of file type is triggered according to file identification selection instruction and file type selection operation, therefore, is being received To after the conversion instruction of the file type, selected file identification can be determined according to file identification selection instruction, and The corresponding data content of file identification of selection is extracted in database, wherein file identification and data content are in the database Associated storage.In addition, after the conversion instruction for receiving the file type, it can also be true according to file type selection operation The file type of selection is determined, later, using the file type selected as target file type, so that it is determined that target file type.
In the present embodiment, file identification window and files classes are shown simultaneously in the application interface of business development application Type selects window, and after receiving file identification and the file type of selection in two windows, and determination receives files classes The conversion instruction of type, to realize subsequent file type conversion.
2) mode two, reference Fig. 4, the step S10 include:
Step S15 shows file identification window in the application interface of business development application, if in the files-designated Know in window and receive file identification selection instruction, then pops up file type selection window;
In the present embodiment, file identification window first is shown in the application interface of business development application, if in file File identification selection instruction is received in mark window, file type is just popped up and selects window, it should be appreciated that if not in files-designated Know in window and receive file identification selection instruction, then can not pop up file type selection window.
Step S16, after receiving file type selection operation in file type selection window, confirmation receives text The conversion instruction of part type;
After pop-up file type selection window, if receiving file type selection in this document type selection window Operation just determines the conversion instruction for receiving file type.
Step S17, based on the conversion instruction of the file type, the file identification for extracting selection in the database is corresponding Data content, and target file type is determined according to the file type of selection.
It should be understood that the conversion instruction of file type is triggered according to file identification selection instruction and file type selection operation , therefore, after the conversion instruction for receiving the file type, it can be determined according to file identification selection instruction selected File identification, and the corresponding data content of file identification for extracting selection in the database, wherein file identification and data content It is associated storage in the database.In addition, after the conversion instruction for receiving the file type, it can also be according to files classes Type selection operation determines the file type of selection, later, using the file type selected as target file type, so that it is determined that mesh Mark file type.
In the present embodiment, file identification window first is shown in the application interface of business development application, only in file File identification selection instruction is received in mark window, file type is just popped up and selects window, to carry out the selection of file type, Two kinds of windows, present embodiment need not be shown at the very start, so that be used to show that the space of every kind of window is bigger in application interface, It is accidentally touched caused by effectivelying prevent font too small, improves the accuracy of file type conversion.
Step S20, the Java archive file jar packet for calling the business development application to prestore, to be obtained according to the jar packet Take the corresponding target file type template of the target file type;
The conversion instruction according to file type extract conversion before the corresponding data content of file identification, and determine to After the target file type of conversion, the jar (Java Archive, Java archive file) that calls the business development application to prestore Packet, to obtain the corresponding target file type template of the target file type according to the jar packet of calling, specifically, referring to figure 5, the step S20 include:
Step S21, the jar packet for calling the business development application to prestore;
That is, the corresponding data content of file identification before the conversion instruction according to file type extracts conversion, and really After fixed target file type to be converted, the jar packet that calls business development application to prestore in the database.
Step S22, the application programming api interface of the jar packet is determined according to the target file type, and is obtained The corresponding target file type template of the api interface.
After the jar packet for calling the business development application to prestore, then determined in the jar packet according to target file type The corresponding API of target file type (Application Programming Interface, application programming interface) connects Mouthful, to obtain the corresponding target file type template of the api interface, wherein include: referring to Fig. 6, the step S22
Step S221 identifies the suffix information of the target file type;
That is, identifying the suffix information of the target file type, suffix letter in the case where having determined target file type Breath includes but is not limited to the suffix informations such as xls, csv or doc.
Step S222 determines the associated api interface of suffix information in the jar packet;
After identifying the suffix information of target file type, the suffix information association is determined in the jar packet Api interface, in the present embodiment, a kind of suffix information corresponds to a kind of api interface in jar packet, because identifying target text After the suffix information of part type, the associated api interface of the suffix information can be uniquely determined in jar packet.
Step S223 is obtained determining described according to the mapping relations of preset api interface and target file type template The corresponding target file type template of api interface.
After determining the associated api interface of the suffix information in jar packet, according to preset api interface and file destination The mapping relations of template types obtain the corresponding target file type template of the determining api interface.In the present embodiment, institute Stating api interface and target file type template is one-to-one relationship, i.e. the corresponding target file type of an api interface Template can uniquely get target in jar packet after the associated api interface of suffix information of determining target file type File type template.
The data content of extraction is added in the target file type template by step S30, to generate target text The file of part type realizes the conversion of file type.
After getting target file type template, the data content of extraction is added to the target file type mould In plate, with the file of target file type, to realize the conversion of file type.
The conversion method for the file type that the present embodiment proposes receives file in the application interface of business development application When the conversion instruction of type, the corresponding data content of file identification before converting is extracted, and determine file destination class to be converted Type, the Java archive file jar packet for then calling the business development application to prestore, to obtain the mesh according to the jar packet The corresponding target file type template of file type is marked, the data content of extraction is added to the file destination class later In pattern plate, to generate the file of target file type, the conversion of file type is realized.Conversion of the present invention to file type, It downloads file manually without user and passes through special switching software again and convert, as long as in the application interface of business development application File identification and target file type to be converted before middle selection conversion, can call jar packet to realize the conversion of file type Process improves the convenience of file conversion, also improves transfer efficiency.
Further, the second embodiment of the conversion method of file type of the present invention is proposed based on first embodiment.
The difference of the first embodiment of the conversion method of the second embodiment and file type of the conversion method of file type It is, before reference Fig. 7, the step S10, the method also includes:
Step S40 shows file in the application interface of business development application when receiving file uploading instructions Window is uploaded, to receive the file of user's upload;
Step S50 is extracted from the file received when the file uploads the file for receiving user's upload in window File identification and data content out;
Step S60 stores the data content of extraction into the tables of data of database, and establish the data content of storage with The incidence relation of the file identification, so as to subsequently received file download instruction when, according to the file identification of file in number According to extracting data content in the tables of data in library.
In the present embodiment, before the conversion that file type is carried out in the application interface of business development application, first may be used The various files converted are uploaded in the database that business development is applied and are stored.
File described in detail below uploads to the specific steps stored in database:
Step S40 shows file in the application interface of business development application when receiving file uploading instructions Window is uploaded, to receive the file of user's upload;
In the present embodiment, the application interface of business development application shows document uploading control, the transmission control on this document When detecting clicking operation in part, determination receives file uploading instructions.After receiving file uploading instructions, opened in business It sends out and shows that file uploads window in the application interface of application, so that user uploads transmitting file on window in the file.
Step S50 is extracted from the file received when the file uploads the file for receiving user's upload in window File identification and data content out;
After uploading the file for receiving user's upload in window in this document, file is extracted from the file received Mark and data content, specifically, the filename for extracting file as file identification, extracts file content work hereof For the data content of file.
Step S60 stores the data content of extraction into the tables of data of database, and establish the data content of storage with The incidence relation of the file identification, so as to subsequently received file download instruction when, according to the file identification of file in number According to extracting data content in the tables of data in library.
In the present embodiment, the embodiment of the step S60 includes:
1) mode one, the step S60 include:
Step a establishes a tables of data in the database, and obtains the mark information of the tables of data;
In the present embodiment, after extracting the data content of file, a tables of data is established in the database, and Determine that the mark information of the tables of data, the mark information of tables of data are chosen as the table name of the tables of data.
The data content of extraction is stored into the tables of data of foundation, and establishes the mark information of the tables of data by step b With the incidence relation of the file identification of the data content, so as to subsequently received file download instruction when, according to file File identification extracts data content in the tables of data of database.
Later, the data content of extraction is stored into the tables of data of foundation, and establishes the mark information of tables of data and deposits The incidence relation of the file identification of the data content of storage.It is subsequent in the download instruction for receiving file, according to the file of file Mark can find the associated tables of data mark information of the file identification in the database, and believe from the data list notation Data content is extracted in tables of data where ceasing.
2) mode two, the step S60 include:
Step c selects a subpool in the tables of data of database, and selection is arrived in the data content storage of extraction In subpool;
In the present embodiment, after extracting the data content of file, by the data content storage of extraction to data In the tables of data in library, the tables of data is established in advance in database, for storing the data content of each file, the data Optional in table includes multiple subpools, including the subpool of storing data content and not stored data content Idle subpool first selects an idle subpool, and will mention before the data content storage to tables of data that will be extracted The data content taken is stored into the idle subpool of tables of data.
Step d, determines the partition identification of the subpool, and establish subpool partition identification and the files-designated The incidence relation of knowledge, so as to subsequently received file download instruction when, according to the file identification of file in the partition identification Data content is extracted in the subpool at place.
Later, it determines the partition identification of the subpool, and establishes the partition identification of the subpool and the data of storage The incidence relation of the file identification of content a, wherein subpool is used to store the data content of a file, therefore one The partition identification of subpool is associated with a file identification.
It is subsequent in the download instruction for receiving file, can be in the tables of data of database according to the file identification of file In find the associated subpool partition identification of the file identification, and from the son storage where the subpool partition identification Data content is extracted in area.
In the present embodiment, the optional data content by above two embodiment storage file, improves in data The flexibility of storage is stored, in addition, in mode two, it is only necessary to carry out subregion in a tables of data, deposit by multiple subpools The data content for storing up multiple files establishes a tables of data for each data content without one, reduces data storage Occupied space.
Further, data content is extracted hereof and is stored to tables of data, the method also includes: it deletes The file of data content is extracted, to avoid the consuming of memory space.
Further, propose that the third of the conversion method of file type of the present invention is implemented based on first or second embodiments Example.
The first or second embodiments of the conversion method of the 3rd embodiment and file type of the conversion method of file type Difference be, referring to Fig. 8, after the step S30, the method also includes:
Step S70 caches the file of the target file type;
In the present embodiment, the data content of extraction is added to the target file type template to generate target After the file of file type, the file of generation can also be cached, the time of caching may be configured as prefixed time interval, should The specific value of prefixed time interval without limitation, is configured according to actual needs.
Step S80 if receiving the conversion instruction of the file type, is directly extracted slow within a preset time interval The file deposited is shown.
After the file of generation is cached, if receiving the conversion of identical file type within a preset time interval Instruction, the then file that can directly extract caching are shown, are used so that user downloads.It should be understood that in the cache-time of file When beyond prefixed time interval, it can be automatically deleted the file of caching, to avoid the occupancy of memory space.
In the present embodiment, for a period of time by the file cache after conversion, to receive identical file in the time When conversion instruction, directly the file of caching is shown and is used so that user downloads, executes file type turn without repeating Operation is changed, the convenience and flexibility of file type conversion are improved.
The present invention also provides a kind of conversion equipment of file type, the conversion equipment of the file type includes:
Processing module mentions when for receiving the conversion instruction of file type in the application interface that business development is applied The corresponding data content of file identification before taking conversion, and determine target file type to be converted;
It calls and obtains module, the Java archive file jar packet for calling the business development application to prestore, according to institute It states jar packet and obtains the corresponding target file type template of the target file type;
Generation module, for the data content extracted to be added in the target file type template, to generate The file of target file type realizes the conversion of file type.
The specific embodiment of the conversion equipment of file type of the present invention and above-mentioned each embodiment of file type conversion method Essentially identical, details are not described herein.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with the conversion program of file type, realized when the conversion program of the file type is executed by processor as described above File type conversion method.
Computer readable storage medium specific embodiment of the present invention and each embodiment base of above-mentioned file type conversion method This is identical, and details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include the other elements being not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of conversion method of file type, which is characterized in that the conversion method of the file type include the following:
File identification when receiving the conversion instruction of file type in the application interface of business development application, before extracting conversion Corresponding data content, and determine target file type to be converted;
The Java archive file jar packet for calling the business development application to prestore, to obtain the target text according to the jar packet The corresponding target file type template of part type;
The data content of extraction is added in the target file type template, to generate the text of target file type Part realizes the conversion of file type.
2. the conversion method of file type as described in claim 1, which is characterized in that the application in business development application When receiving the conversion instruction of file type in interface, extract conversion before the corresponding data content of file identification, and determine to The step of target file type of conversion includes:
File identification window is shown in the first predeterminable area of application interface where business development application, and in the application Second predeterminable area at interface shows that file type selects window;
If detecting file identification selection instruction in the file identification window, and connect in file type selection window File type selection operation is received, then enables switching button;
When receiving touch control operation in the switching button, confirmation receives the conversion instruction of file type;
Based on the conversion instruction of the file type, the corresponding data content of file identification of selection is extracted in the database, and Target file type is determined according to the file type of selection.
3. the conversion method of file type as described in claim 1, which is characterized in that the application in business development application When receiving the conversion instruction of file type in interface, extract conversion before the corresponding data content of file identification, and determine to The step of target file type of conversion further include:
File identification window is shown in the application interface of business development application, if receiving in the file identification window To file identification selection instruction, then file type selection window is popped up;
After receiving file type selection operation in file type selection window, confirmation receives the conversion of file type Instruction;
Based on the conversion instruction of the file type, the corresponding data content of file identification of selection is extracted in the database, and Target file type is determined according to the file type of selection.
4. the conversion method of file type as described in claim 1, which is characterized in that described to call the business development application The Java archive file jar packet prestored, to obtain the corresponding target file type of the target file type according to the jar packet The step of template includes:
The jar packet for calling the business development application to prestore;
The application programming api interface of the jar packet is determined according to the target file type, and obtains the api interface Corresponding target file type template.
5. the conversion method of file type as claimed in claim 4, which is characterized in that described according to the target file type It determines the application programming api interface of the jar packet, and obtains the corresponding target file type template of the api interface Step includes:
Identify the suffix information of the target file type;
The associated api interface of suffix information is determined in the jar packet;
According to the mapping relations of preset api interface and target file type template, it is corresponding to obtain the determining api interface Target file type template.
6. the conversion method of file type as described in claim 1, which is characterized in that the application in business development application When receiving the conversion instruction of file type in interface, extract conversion before the corresponding data content of file identification, and determine to Before the step of target file type of conversion, the method also includes:
When receiving file uploading instructions, show that file uploads window in the application interface of business development application, with Receive the file that user uploads;
The file upload window in receive user upload file when, extracted from the file received file identification and Data content;
The data content of extraction is stored into the tables of data of database, and establishes the data content and the file identification of storage Incidence relation, so as to subsequently received file download instruction when, according to the file identification of file database the number According to extracting data content in table.
7. the conversion method of file type as claimed in any one of claims 1 to 6, which is characterized in that it is described will be described in extraction Data content is added in the target file type template, to generate the file of target file type, realizes file type After the step of conversion, the method also includes:
The file of the target file type is cached;
Within a preset time interval, if receiving the conversion instruction of the file type, the file for directly extracting caching is carried out Display.
8. a kind of conversion equipment of file type, which is characterized in that the conversion equipment of the file type includes:
Processing module when for receiving the conversion instruction of file type in the application interface that business development is applied, being extracted and being turned The corresponding data content of file identification before changing, and determine target file type to be converted;
It calls and obtains module, the Java archive file jar packet for calling the business development application to prestore, according to Jar packet obtains the corresponding target file type template of the target file type;
Generation module, for the data content extracted to be added in the target file type template, to generate target The file of file type realizes the conversion of file type.
9. a kind of conversion equipment of file type, which is characterized in that the conversion equipment of the file type includes memory, processing Device, communication bus and the conversion program for being stored in the file type that can be run on the memory and on the processor;
The communication bus is for realizing the communication connection between processor and memory;
The processor is used to execute the conversion program of the file type, to realize as described in any one of claims 1 to 7 File type conversion method the step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with files classes on the computer readable storage medium It realizes when the conversion program of the conversion program of type, the file type is executed by processor such as any one of claims 1 to 7 institute The step of conversion method for the file type stated.
CN201810947606.4A 2018-08-20 2018-08-20 File type conversion method, apparatus, device and computer readable storage medium Active CN109947771B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810947606.4A CN109947771B (en) 2018-08-20 2018-08-20 File type conversion method, apparatus, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810947606.4A CN109947771B (en) 2018-08-20 2018-08-20 File type conversion method, apparatus, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109947771A true CN109947771A (en) 2019-06-28
CN109947771B CN109947771B (en) 2023-07-21

Family

ID=67006306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810947606.4A Active CN109947771B (en) 2018-08-20 2018-08-20 File type conversion method, apparatus, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109947771B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399345A (en) * 2019-07-30 2019-11-01 山东浪潮通软信息科技有限公司 A kind of file uploads and management method
CN110633254A (en) * 2019-09-19 2019-12-31 中国银行股份有限公司 Data interaction method and device
CN111666745A (en) * 2020-06-03 2020-09-15 中国建设银行股份有限公司 File downloading method, device, server and medium
CN111949614A (en) * 2020-08-12 2020-11-17 中国工商银行股份有限公司 Bank system file conversion method and device
CN112287265A (en) * 2020-12-24 2021-01-29 深圳市蓝凌软件股份有限公司 Asynchronous event driven based file conversion method and system
CN113296898A (en) * 2021-05-26 2021-08-24 北京京东振世信息技术有限公司 Asynchronous task processing method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1419211A (en) * 2001-11-12 2003-05-21 株式会社Ntt都科摩 File conversion system and method, readable medium for storing file conversion program
CN101763255A (en) * 2008-12-23 2010-06-30 中国移动通信集团公司 Format conversion method and device of special interface tool
US20140282371A1 (en) * 2013-03-14 2014-09-18 Media Direct, Inc. Systems and methods for creating or updating an application using a pre-existing application
CN106126491A (en) * 2016-06-29 2016-11-16 江苏中威科技软件系统有限公司 A kind of paper form is converted to the method and system of web form
CN106484835A (en) * 2016-09-29 2017-03-08 广州鹤互联网科技有限公司 Approving electronic document handling method and device
CN106886390A (en) * 2015-12-15 2017-06-23 大唐软件技术股份有限公司 A kind of Java object generation and conversion method and Java object generation and conversion equipment
CN107256206A (en) * 2017-05-24 2017-10-17 北京京东尚科信息技术有限公司 The method and apparatus of character stream format conversion
CN107609012A (en) * 2017-07-31 2018-01-19 珠海市魅族科技有限公司 Multimedia file treating method and apparatus, computer installation, readable storage medium storing program for executing
CN108090213A (en) * 2017-12-29 2018-05-29 福建南威软件有限公司 The method that mobile terminal rapid translating generates pdf document

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1419211A (en) * 2001-11-12 2003-05-21 株式会社Ntt都科摩 File conversion system and method, readable medium for storing file conversion program
CN101763255A (en) * 2008-12-23 2010-06-30 中国移动通信集团公司 Format conversion method and device of special interface tool
US20140282371A1 (en) * 2013-03-14 2014-09-18 Media Direct, Inc. Systems and methods for creating or updating an application using a pre-existing application
CN106886390A (en) * 2015-12-15 2017-06-23 大唐软件技术股份有限公司 A kind of Java object generation and conversion method and Java object generation and conversion equipment
CN106126491A (en) * 2016-06-29 2016-11-16 江苏中威科技软件系统有限公司 A kind of paper form is converted to the method and system of web form
CN106484835A (en) * 2016-09-29 2017-03-08 广州鹤互联网科技有限公司 Approving electronic document handling method and device
CN107256206A (en) * 2017-05-24 2017-10-17 北京京东尚科信息技术有限公司 The method and apparatus of character stream format conversion
CN107609012A (en) * 2017-07-31 2018-01-19 珠海市魅族科技有限公司 Multimedia file treating method and apparatus, computer installation, readable storage medium storing program for executing
CN108090213A (en) * 2017-12-29 2018-05-29 福建南威软件有限公司 The method that mobile terminal rapid translating generates pdf document

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399345A (en) * 2019-07-30 2019-11-01 山东浪潮通软信息科技有限公司 A kind of file uploads and management method
CN110399345B (en) * 2019-07-30 2023-04-07 浪潮通用软件有限公司 File uploading and managing method
CN110633254A (en) * 2019-09-19 2019-12-31 中国银行股份有限公司 Data interaction method and device
CN111666745A (en) * 2020-06-03 2020-09-15 中国建设银行股份有限公司 File downloading method, device, server and medium
CN111949614A (en) * 2020-08-12 2020-11-17 中国工商银行股份有限公司 Bank system file conversion method and device
CN111949614B (en) * 2020-08-12 2024-04-02 中国工商银行股份有限公司 Bank system file conversion method and device
CN112287265A (en) * 2020-12-24 2021-01-29 深圳市蓝凌软件股份有限公司 Asynchronous event driven based file conversion method and system
CN112287265B (en) * 2020-12-24 2021-05-07 深圳市蓝凌软件股份有限公司 Asynchronous event driven based file conversion method and system
CN113296898A (en) * 2021-05-26 2021-08-24 北京京东振世信息技术有限公司 Asynchronous task processing method and device, electronic equipment and storage medium
CN113296898B (en) * 2021-05-26 2024-05-17 北京京东振世信息技术有限公司 Asynchronous task processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109947771B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
CN109947771A (en) Conversion method, device, equipment and the computer readable storage medium of file type
US10506090B2 (en) Operation method and system of mobile terminal
US10356235B2 (en) Operation method and system of mobile terminal
CN106873854B (en) Terminal and interface interaction control method, and contact object creation method and device
CN102819461B (en) Desktop synchronous method, device, equipment and system
US8819578B2 (en) Display controller, display control method, display control program, and portable terminal device
CN109408132A (en) A kind of configuration file processing method and server, user terminal, storage medium
EP2634682A2 (en) Apparatus and method for creating a shortcut menu
EP2587771A1 (en) Improved handling and configuration of a mobile communications terminal
US8140109B2 (en) Method of operating a mobile electronic device and mobile electronic device
US20160248843A1 (en) Data upload method using shortcut
WO2010073530A1 (en) Download system, information processing terminal, management device, and method and program used therefor
EP2369533A1 (en) Method, system, computer-readable medium and mobile device for managing messages
JP2011257990A (en) File exchange system, mobile device, and program
CN108769234A (en) Using method for down loading, device, storage medium and electronic equipment
CN110222288A (en) Page display method, device and storage medium
CN112346887A (en) Data processing method, data processing device, display device and computer-readable storage medium
WO2016202074A1 (en) Method and apparatus for setting state of contact in address book
CN113721936B (en) Application management method, intelligent terminal, device and storage medium
CN104933085B (en) Update method, terminal and the server of e-book
CN109697129A (en) A kind of information sharing method, equipment and computer readable storage medium
CN107943687B (en) Equipment sharing method, device, server and storage medium
CN107535013B (en) Service processing method and terminal
JP2016224988A (en) File exchange system and method, and mobile device and program
JP5242305B2 (en) Information processing device, information processing method, information processing program, and portable terminal device

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
GR01 Patent grant
GR01 Patent grant