Summary of the invention
Technical matters to be solved by this invention is, a kind of method of large burning file, a kind of main frame, a kind of client computer and a kind of large burning file system are provided.The transmission of large file, transmission, the burning that burning converts small documents to can be promoted the speed of file transfer and burning, make the burning of large file become more convenient, quick.
In order to solve the problems of the technologies described above, on the one hand, embodiments of the invention provide a kind of method of large burning file, comprising:
Be a plurality of small documents with large file division waiting for transmission, the data length sum of described a plurality of small documents is the data length of described large file;
Send described small documents to client computer, by described client computer described small documents is carried out burning file.
Wherein, the described large file division that will transmit is a plurality of small documents, comprising:
Read the size of described large file waiting for transmission;
Be that length is the small documents of the integral multiple of 1024 bytes with described large file division waiting for transmission, and remaining length is encapsulated as a small documents less than the file of 1024 bytes;
Calculate the number of described small documents;
For described small documents monthly dynamics storage space, described small documents is stored in the buffer memory.
Wherein, described described small documents is sent to after the client computer, comprising:
Whether the number of judging small documents described in the described buffer memory is zero, if be judged as is, ends file transfer then if be judged as noly, then continues to send the described small documents in the described buffer memory to client computer.
Embodiments of the invention also provide a kind of method of large burning file, comprising:
The small documents that is become by large file division waiting for transmission that Receiving Host transmits, and described small documents is cached to Installed System Memory;
From described Installed System Memory, read described small documents, and with described small documents write store.
Wherein, described with after the described small documents write store, comprising:
Upgrade the small documents data in the described Installed System Memory;
Judge in the described Installed System Memory whether data are empty, if be judged as are, then finish the burning of transfer files, if be judged as noly, then continue from described Installed System Memory, to read described small documents, and with described small documents write store.
Accordingly, embodiments of the invention provide a kind of main frame, comprising:
Cut apart module, being used for large file division waiting for transmission is a plurality of small documents, and the data length sum of described a plurality of small documents is the data length of described large file;
Transport module is used for sending described small documents to client computer, by described client computer described small documents is carried out burning file.
Wherein, the described module of cutting apart comprises:
Reading unit is for the size that reads described large file waiting for transmission;
Cutting unit, being used for described large file division waiting for transmission is that length is the small documents of the integral multiple of 1024 bytes, and remaining length is encapsulated as a small documents less than the file of 1024 bytes;
Computing unit is for the number that calculates described small documents;
Buffer unit is used to described small documents monthly dynamics storage space, and described small documents is stored in the buffer memory.
Wherein, described transport module comprises:
Judging unit is used for judging whether the number of small documents described in the described buffer memory is zero, if be judged as is, ends file transfer then if be judged as noly, then continues to send the described small documents in the described buffer memory to client computer;
Transmission unit is used for sending described small documents to client computer, by described client computer described small documents is carried out burning file.
On the other hand, embodiments of the invention also provide a kind of client computer, comprising:
Receiver module is used for the small documents by large file division one-tenth waiting for transmission that Receiving Host transmits, and described small documents is cached to Installed System Memory;
Burning module is used for reading described small documents from described Installed System Memory, and with described small documents write store.
Wherein, described burning module comprises:
Updating block is for the small documents data of upgrading described Installed System Memory;
Judging unit is used for judging whether described Installed System Memory data are empty, if be judged as are, then finish the burning of transfer files, if be judged as noly, then continues to read described small documents from described Installed System Memory, and with described small documents write store;
The burning unit is used for reading described small documents from described Installed System Memory, and with described small documents write store.
The embodiment of the invention also provides a kind of large burning file system, comprises the described main frame of foregoing invention content and client computer.
The method that the present invention describes becomes a plurality of small documents with a large file division, to small documents transmit one by one, burning, with transmission, the burning of large file, change into transmission, the burning of small documents.Method described in the invention is supported the file transfer of various forms, and the burning of compatible various memory devices has promoted the speed of file transfer, has solved the problems such as the read-write of file and burning file capacity be limited, makes the burning of large file become more convenient, quick.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention has been described a kind of method of large burning file, a kind of main frame, a kind of client computer and a kind of large burning file system.System becomes a plurality of small documents by main frame with large file division, and the data length sum of a plurality of small documents that are divided into is the data length of described large file, and the small documents that is divided into is sent to client computer, and client computer receives and the described small documents of burning.In the specific implementation, main frame is used for divided file and sends the small documents data that are divided into to client computer, and client computer is used for receiving and the recordable paper data.Client computer is the small documents data that send over of Receiving Host on one side, and the small documents data that receive are stored in the Installed System Memory, from Installed System Memory read small documents data on one side, one by one burning is until the small documents data in the Installed System Memory be sky.The transmission of file is carried out between main frame and client computer, and the general any transmission medium of transmission medium is not subjected to the restriction of transmission medium.The system that the embodiment of the invention provides by large file division is become a plurality of small documents, with the transmission of large file, transmission, the burning that burning changes into small documents, has improved the efficient of file transfer, burning, so that the burning of file becomes is convenient, quick.
Below with reference to accompanying drawing embodiments of the invention are described.Referring to Fig. 1, be the schematic flow sheet of the first embodiment of the method for the large burning file of the present invention.The method of the described large burning file of this example comprises step:
S101 is a plurality of small documents with large file division waiting for transmission, and the data length sum of described a plurality of small documents is the data length of described large file.
S102 sends described small documents to client computer, by described client computer described small documents is carried out burning file.
In the specific implementation, when file transfer begins, first large file is cut apart, be divided into a plurality of small documents with certain-length size, the data length sum of a plurality of small documents that are divided into is the data length of described large file, again the small documents that is divided into is sent to client computer, by client computer small documents is carried out burning.The present embodiment converts the transmission of large file to the transmission of small documents by large File cutting is become small documents, has improved the speed of file transfer, has solved the problems such as the file transfer capacity is limited.
Referring to Fig. 2, be the schematic flow sheet of the second embodiment of the method for the large burning file of the present invention.The method of the described large burning file of this example comprises step:
S201 reads the size of described large file waiting for transmission.
S202 is that length is the small documents of the integral multiple of 1024 bytes with described large file division waiting for transmission, and remaining length is encapsulated as a small documents less than the file of 1024 bytes.
S203 calculates the number of described small documents.
S204 for described small documents monthly dynamics storage space, stores described small documents in the buffer memory into.
S205 sends described small documents to client computer, by described client computer described small documents is carried out burning file.
In the specific implementation, file transfer begins, and reads first the size of large file waiting for transmission, and according to the large young pathbreaker of file to be transmitted large file division average N five equilibrium waiting for transmission, being divided into a plurality of length is the small documents of the integral multiple size of 1024 bytes.It is after the small documents of integral multiple size of 1024 bytes that large file division is become a plurality of length, may be left the file of inadequate 1024 bytes of length, then calculates remaining file size, and will remain file and be encapsulated as a small documents.Large file division is become after small documents finishes, then cut apart the small documents storage allocation that obtains for these, this process is in dynamic allocation procedure, being the small documents storage allocation is dynamic allocation procedure, for then can all being saved in these small documents data in the internal memory after the small documents storage allocation that is divided into, and send small documents to client computer successively, by described client computer described small documents is carried out burning file.The present embodiment converts the transmission of large file to the transmission of small documents by large File cutting being become the small documents of a plurality of certain-length sizes, has improved the speed of file transfer, has solved the problems such as the file transfer capacity is limited.
Referring to Fig. 3, be the schematic flow sheet of the 3rd embodiment of the method for the large burning file of the present invention.The method of the described large burning file of this example comprises step:
S301 reads the size of described large file waiting for transmission.
S302 is that length is the small documents of the integral multiple of 1024 bytes with described large file division waiting for transmission, and remaining length is encapsulated as a small documents less than the file of 1024 bytes.
S303 calculates the number of described small documents.
S304 for described small documents monthly dynamics storage space, stores described small documents in the buffer memory into.
S305 sends described small documents to client computer, by described client computer described small documents is carried out burning file.
S306 judges that whether the number of small documents described in the buffer memory is zero, if be judged as be, execution in step S307 then, if be judged as no, execution in step S305 then.
S307, ends file transfer.
In the specific implementation, file transfer begins, and reads first the size of large file waiting for transmission, and according to the large young pathbreaker of file to be transmitted large file division average N five equilibrium waiting for transmission, being divided into a plurality of length is the small documents of the integral multiple size of 1024 bytes.It is after the small documents of integral multiple size of 1024 bytes that large file division is become a plurality of length, may be left the file of inadequate 1024 bytes of length, then calculates remaining file size, and will remain file and be encapsulated as a small documents.Large file division is become after small documents finishes, then cut apart the small documents storage allocation that obtains for these, this process is in dynamic allocation procedure, being the small documents storage allocation is dynamic allocation procedure, for the small documents storage allocation that is divided into then can all be saved in these small documents data in the internal memory afterwards, and send small documents to client computer successively.In the specific implementation, the transmission of file is carried out between main frame and client computer, and the general any transmission medium of transmission medium is not subjected to the restriction of transmission medium.Can constantly upgrade the number of small documents in the buffer memory when main frame sends the small documents that is divided into to client computer successively, main frame is judged the process of file transfer by the number of judging the small documents in the buffer memory.When main frame is judged to get the number of the small documents in the buffer memory when being zero (namely all small documents all have been sent to client computer), but ends file transfer then.Judge to such an extent that the number of the small documents in the buffer memory is non-vanishing when main frame, then continue to the client transmission file, to carry out burning file by client computer.The present embodiment is by becoming large File cutting the small documents of a plurality of certain-length sizes, the transmission of large file is converted to the transmission of small documents, and constantly upgrade the number of the small documents of buffer memory, judge the process of file transfer by the number of judging small documents, improved the speed of file transfer, make the transmission of file quicker, convenient, solved the problems such as the file transfer capacity is limited.
Referring to Fig. 4, be the first example structure schematic diagram of main frame of the present invention.The described main frame of the present embodiment comprises:
Cut apart module 100, being used for large file division waiting for transmission is a plurality of small documents, and the data length sum of described a plurality of small documents is the data length of described large file.
Transport module 200 is used for sending described small documents to client computer, by described client computer described small documents is carried out burning file.
In the specific implementation, file transfer begins, cutting apart module 100 is first a plurality of small documents with certain-length size with large file division, the data length sum of a plurality of small documents that are divided into is the data length of described large file, send the small documents that is divided into to client computer by transport module 200 again, by client computer small documents is carried out burning.The present embodiment converts the transmission of large file to the transmission of small documents by large File cutting is become small documents, has improved the speed of file transfer, has solved the problems such as the file transfer capacity is limited.
Referring to Fig. 5, be the second example structure schematic diagram of main frame of the present invention.The described main frame of the present embodiment comprises:
Cut apart module 300, being used for large file division waiting for transmission is a plurality of small documents.
Transport module 200 is used for sending described small documents to client computer, by described client computer described small documents is carried out burning file.
Wherein, the described module 300 of cutting apart comprises:
Reading unit 310 is for the size that reads described large file waiting for transmission.
Cutting unit 320, being used for described large file division waiting for transmission is that length is the small documents of the integral multiple of 1024 bytes, and remaining length is encapsulated as a small documents less than the file of 1024 bytes.
Computing unit 330 is for the number that calculates described small documents.
Buffer unit 340 is used to described small documents monthly dynamics storage space, and described small documents is stored in the buffer memory.
In the specific implementation, file transfer begins, read first the size of large file waiting for transmission by reading unit 310, and the size of the file to be transmitted that will read sends to and cuts apart module 320, cut apart module 320 according to the large young pathbreaker of file to be transmitted large file division average N five equilibrium waiting for transmission, being divided into a plurality of length is the small documents of the integral multiple size of 1024 bytes.It is after the small documents of integral multiple size of 1024 bytes that cutting unit 320 becomes a plurality of length with large file division, may be left the file of inadequate 1024 bytes of length, then can calculate remaining file size by computing unit 330 this moment, and will remain file and be encapsulated as a small documents.Cutting unit 320 becomes large file division after small documents finishes, 340 of buffer units are cut apart the small documents storage allocation that obtains for these, this process is in dynamic allocation procedure, being the small documents storage allocation is dynamic allocation procedure, for then can all being saved in these small documents data in the internal memory after the small documents storage allocation that is divided into, and send small documents to client computer successively by transport module 200, by described client computer described small documents is carried out burning file.The present embodiment becomes large File cutting by cutting unit the small documents of a plurality of certain-length sizes, the transmission of large file is converted to the transmission of small documents, has improved the speed of file transfer, has solved the problems such as the file transfer capacity is limited.
Referring to Fig. 6, be the 3rd example structure schematic diagram of main frame of the present invention.The described main frame of the present embodiment comprises:
Cut apart module 300, being used for large file division waiting for transmission is a plurality of small documents, and the data length sum of described a plurality of small documents is the data length of described large file.
Transport module 400 is used for sending described small documents to client computer, by described client computer described small documents is carried out burning file.
Wherein, the described module 300 of cutting apart comprises:
Reading unit 310 is for the size that reads described large file waiting for transmission.
Cutting unit 320, being used for described large file division waiting for transmission is that length is the small documents of the integral multiple of 1024 bytes, and remaining length is encapsulated as a small documents less than the file of 1024 bytes.
Computing unit 330 is for the number that calculates described small documents.
Buffer unit 340 is used to described small documents monthly dynamics storage space, and described small documents is stored in the buffer memory.
Wherein, described transport module 400 comprises:
Judging unit 410 is used for judging whether the number of small documents described in the described buffer memory is zero, if be judged as is, ends file transfer then if be judged as noly, then continues to send the described small documents in the described buffer memory to client computer.
Transmission unit 420 is used for sending described small documents to client computer.
In the specific implementation, file transfer begins, read first the size of large file waiting for transmission by reading unit 310, and the size of the file to be transmitted that will read sends to and cuts apart module 320, cut apart module 320 according to the large young pathbreaker of file to be transmitted large file division average N five equilibrium waiting for transmission, being divided into a plurality of length is the small documents of the integral multiple size of 1024 bytes.It is after the small documents of integral multiple size of 1024 bytes that cutting unit 320 becomes a plurality of length with large file division, may be left the file of inadequate 1024 bytes of length, then can calculate remaining file size by computing unit 330 this moment, and will remain file and be encapsulated as a small documents.Cutting unit becomes large file division after small documents finishes, 340 of buffer units are cut apart the small documents storage allocation that obtains for these, this process is in dynamic allocation procedure, being the small documents storage allocation is dynamic allocation procedure, for the small documents storage allocation that is divided into then can all be saved in these small documents data in the internal memory afterwards, and send small documents to client computer successively.
In the specific implementation, the transmission of file is carried out between main frame and client computer, and the general any transmission medium of transmission medium is not subjected to the restriction of transmission medium.Cutting unit with the small documents that is divided into after transport module 400 can constantly upgrade the number of small documents in the buffer memory when sending client computer to successively, judging unit 410 is judged the process of file transfer by the number of judging the small documents in the buffer memory.When judging unit 410 is judged to get the number of the small documents in the buffer memory when being zero (namely all small documents all have been sent to client computer), but 420 ends file transfer of transmission unit, if judging unit 410 is judged to such an extent that the number of the small documents in the buffer memory is non-vanishing, transmission unit then continues to the client transmission file, to carry out burning file by client computer.The present embodiment is by becoming large File cutting the small documents of a plurality of certain-length sizes, the transmission of large file is converted to the transmission of small documents, and constantly upgrade the number of the small documents of buffer memory, judge the process of file transfer by the number of judging small documents, improved the speed of file transfer, make the transmission of file quicker, convenient, solved the problems such as the file transfer capacity is limited.
Referring to Fig. 7, be the 4th embodiment schematic flow sheet of the method for the large burning file of the present invention.The method of the described large burning file of the present embodiment comprises step:
The small documents that is become by large file division waiting for transmission that S701, Receiving Host transmit, and described small documents is cached in the Installed System Memory.
S702 reads described small documents from described Installed System Memory, and with described small documents write store.
In the specific implementation, from Installed System Memory, read small documents, and the small documents that client computer in the burning process of small documents write store is also transmitted at Receiving Host constantly, and with the small documents buffer memory that receives to the internal memory of system, be client computer be adopt small documents that Receiving Host on one side sends over and with the small documents buffer memory to internal memory, from internal memory, read on one side small documents, small documents is read to burning file mode in the storer.Wherein, Installed System Memory can be stored a plurality of small documents simultaneously, and the burning of file then is that small documents carries out burning one by one, and is to carry out burning in the mode of formation, the burning of the file that namely receives first elder generation, after burning behind the file that receives.The present embodiment is stored in the system storage by the small documents that will receive, and reads the mode that small documents carries out burning from buffer memory again, has improved the efficient of burning file.
Referring to Fig. 8, be the 5th embodiment schematic flow sheet of the method for the large burning file of the present invention.The method of the described large burning file of the present embodiment comprises step:
The small documents that is become by large file division waiting for transmission that S801, Receiving Host transmit, and described small documents is cached to Installed System Memory.
S802 reads described small documents from described Installed System Memory, and with described small documents write store.
S803 upgrades the small documents data in the described Installed System Memory.
S804 judges in the described Installed System Memory whether data are empty, if be judged as are, execution in step S S805 then, if be judged as no, execution in step S802 then.
S805 finishes the burning of transfer files.
In the specific implementation, after the small documents that the client computer Receiving Host transmits with the small documents buffer memory that receives to Installed System Memory, wherein, the said system internal memory can be stored a plurality of small documents simultaneously.During burning file, client computer reads small documents one by one from Installed System Memory, and with the small documents write store that reads.The small documents that client computer also transmits at Receiving Host constantly when carrying out burning file, with the small documents buffer memory that receives to the internal memory of system, and the small documents number of real-time update Installed System Memory.Client computer is finished the burning of a small documents then can judge whether the data in the Installed System Memory are empty afterwards, if the data in the Installed System Memory are empty, the number that is small documents is zero, the then burning of ends file, if the data of Installed System Memory are not empty, then continue from Installed System Memory, to read one by one small documents, and with in the small documents write store that reads, until the small documents number in the Installed System Memory is zero.Client computer adopt small documents that Receiving Host on one side sends over and with the small documents buffer memory to internal memory, from internal memory, read small documents on one side, small documents is read to burning file mode in the storer, Installed System Memory can be stored a plurality of small documents simultaneously, the burning of file then is that small documents carries out burning one by one, and is to carry out burning in the mode of formation, the file elder generation burning that namely receives first, after burning behind the file that receives, improved the efficient of burning file.
Referring to Fig. 9, be the first example structure schematic diagram of client computer of the present invention.The described client computer of the present embodiment comprises:
Receiver module 500 is used for the small documents by large file division one-tenth waiting for transmission that Receiving Host transmits, and described small documents is cached to Installed System Memory.
Burning module 600 is used for reading described small documents from described Installed System Memory, and with described small documents write store.
In the specific implementation, burning module 600 reads small documents from Installed System Memory, and the small documents that receiver module 500 in the burning process of small documents write store is also transmitted at Receiving Host constantly, and with the small documents buffer memory that receives to the internal memory of system, be client computer adopt on one side the small documents that sends over by receiver module 500 Receiving Hosts and with the small documents buffer memory to internal memory, on one side from internal memory, read small documents by burning module 600, small documents is read to burning file mode in the storer.Wherein, Installed System Memory can be stored a plurality of small documents simultaneously, and the burning of file then is that small documents carries out burning one by one, and is to carry out burning in the mode of formation, the burning of the file that namely receives first elder generation, after burning behind the file that receives.The present embodiment is stored in the system storage by the small documents that will receive, and reads the mode that small documents carries out burning from buffer memory again, has improved the efficient of burning file.
Referring to Figure 10, be the second example structure schematic diagram of client computer of the present invention.The described client computer of the present embodiment comprises:
Receiver module 500 is used for the small documents by large file division one-tenth waiting for transmission that Receiving Host transmits, and described small documents is cached to Installed System Memory.
Burning module 800 is used for reading described small documents from described Installed System Memory, and with described small documents write store.
Wherein, described burning module 800 comprises:
Updating block 810 is for the small documents data of upgrading described Installed System Memory;
Judging unit 820 is used for judging whether described Installed System Memory data are empty, if be judged as are, then finish the burning of transfer files, if be judged as noly, then continues to read described small documents from described Installed System Memory, and with described small documents write store.
Burning unit 830 is used for reading described small documents from described Installed System Memory, and with described small documents write store.
In the specific implementation, after the small documents that client computer transmits by receiver module 500 Receiving Hosts with the small documents buffer memory that receives to Installed System Memory, wherein, the said system internal memory can be stored a plurality of small documents simultaneously.During burning file, client computer reads small documents one by one by burning unit 830 from Installed System Memory, and with the small documents write store that reads.Client computer is by burning unit 830 small documents that receiver module 500 also transmits at Receiving Host constantly when carrying out burning file, with the small documents buffer memory that receives to the internal memory of system, and the small documents number by updating block 810 real-time update Installed System Memories.Client computer is finished the burning of a small documents then can judge whether the data in the Installed System Memory are empty by judging unit 820 afterwards, if the data in the Installed System Memory are empty, the number that is small documents is zero, the then burning of ends file, if the data of Installed System Memory are not empty, then continue from Installed System Memory, to read one by one small documents by burning unit 830, and with in the small documents write store that reads, until the small documents number in the Installed System Memory is zero.Client computer adopt on one side the small documents that sends over by receiver module 500 Receiving Hosts and with the small documents buffer memory to internal memory, on one side from internal memory, read small documents by burning module 800, small documents is read to burning file mode in the storer.Wherein, Installed System Memory can be stored a plurality of small documents simultaneously, and the burning of file then is that small documents carries out burning one by one, and is to carry out burning in the mode of formation, the burning of the file that namely receives first elder generation, after burning behind the file that receives.The present embodiment is stored in the system storage by the small documents that will receive, and the updating cache in real time data, reads the mode that small documents carries out burning from buffer memory again, has improved the efficient of burning file.
The embodiment of the invention becomes a plurality of small documents with a large file division, and small documents is carried out one by one burning, with transmission, the burning of large file, changes into transmission, the burning of small documents.Method described in the invention is supported the file transfer of various forms, and the burning of compatible various memory devices has promoted the speed of file transfer, has solved the problems such as the read-write of file and burning file capacity be limited, makes the burning of large file become more convenient, quick.
Device embodiment described above only is schematic, wherein said unit as the separating component explanation can or can not be physically to separate also, the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of module to realize the purpose of the present embodiment scheme.Those of ordinary skills namely can understand and implement in the situation that do not pay performing creative labour.
Through the above description of the embodiments, those skilled in the art can be well understood to each embodiment and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware.Based on such understanding, the part that technique scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the computer-readable recording medium, such as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, perhaps network equipment etc.) carry out the described method of some part of each embodiment or embodiment.
Above-described embodiment does not consist of the restriction to this technical scheme protection domain.Any at above-mentioned embodiment spirit and principle within do modification, be equal to and replace and improvement etc., all should be included within the protection domain of this technical scheme.