CN102063444A - Method and device for previewing file contents - Google Patents
Method and device for previewing file contents Download PDFInfo
- Publication number
- CN102063444A CN102063444A CN2009102376691A CN200910237669A CN102063444A CN 102063444 A CN102063444 A CN 102063444A CN 2009102376691 A CN2009102376691 A CN 2009102376691A CN 200910237669 A CN200910237669 A CN 200910237669A CN 102063444 A CN102063444 A CN 102063444A
- Authority
- CN
- China
- Prior art keywords
- file
- companionfile
- map record
- scene
- snapshot
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a method and device for previewing file contents. The method comprises the following steps: when a file is stored, generating companion files for the file, wherein the companion files comprise preview data aiming at a plurality of file fragments; and when the file is selected, calling the corresponding companion file to preview. In the method, the rough contents are acquired by previewing the file before the file is opened, so that time consumption in the process of searching the file can be reduced, thereby improving searching efficiency.
Description
Technical field
The present invention relates to the file processing field, particularly relate to a kind of method and apparatus of file content preview.
Background technology
In routine duties, need frequent application to arrive file, this just requires to search certain file that comprises certain content in a large amount of files.If good name is arranged and deposit custom, searching work is easy to finish.But a lot of users are accustomed to mode named files such as " new files ", " new files 2 ", of long duration, not know these files preserved on earth a little what, in this case, the user needs to double-click one by one to open and checks and just can find the file of wanting by a lot of files, has not only increased the read-write number of times to disk, and need the cost plenty of time, have influence on work efficiency.
With the captions project file is example, the common project file of forming by a large amount of scenes, often take very big disk space, for example, take hundreds of million, even the space of several G, like this, open a project file merely and just need expend a lot of times, thereby, search that a time right and wrong ordinary person that project file spent who comprises special scenes can stand.
In a word, need the urgent technical matters that solves of those skilled in the art to be exactly: how can reduce the time consumption in the ff process, thereby improve search efficiency.
Summary of the invention
Technical matters to be solved by this invention provides a kind of method and apparatus of file content preview, just knows the general contents of file before opening file by preview, can reduce consumed time in the ff process, thereby improves search efficiency.
In order to address the above problem, the invention discloses a kind of method of file content preview, comprising:
When preserving file, for this document generates CompanionFile, described CompanionFile comprises the preview data at a plurality of file fragments;
When selecting files, call corresponding CompanionFile and carry out preview.
Preferably, described file comprises a plurality of file fragments;
The generation step of described CompanionFile comprises:
For each file fragment generates map record, described map record comprises numbering, reference position, final position and the snapshot of each file fragment;
The map record of combination All Files fragment obtains CompanionFile.
Preferably, described file is a project file, and described project file comprises a plurality of scenes;
The generation step of described CompanionFile comprises:
For each scene generates map record, described map record comprises numbering, reference position, final position and the snapshot of each scene;
Make up the map record of all scenes, obtain CompanionFile.
Preferably, described preview step comprises:
When mouse-pointing this document, the snapshot of each file fragment or scene in mouse peripheral region suspension display CompanionFile.
Preferably, described preview step comprises:
When in the File Open window, selecting this document, the snapshot of each file fragment or scene in window peripheral region demonstration CompanionFile.
The invention also discloses a kind of file content pre-viewing device, comprising:
Generation module is used for when preserving file, and for this document generates CompanionFile, described CompanionFile comprises the preview data at a plurality of file fragments;
Previewing module is used for when selecting files, and calls corresponding CompanionFile and carries out preview.
Preferably, described generation module comprises:
The first map record generation unit is used for when file comprises a plurality of file fragment, and for each file fragment in the file generates map record, described map record comprises numbering, reference position, final position and the snapshot of each file fragment;
First assembled unit is used to make up the map record of all fragments, obtains CompanionFile.
Preferably, described generation module comprises:
The second map record generation unit, being used at file is project file, and when described project file comprises a plurality of scene, be that each scene of project file generates map record, described map record comprises numbering, reference position, final position and the snapshot of each scene;
Second assembled unit is used to make up the map record of all scenes, obtains CompanionFile.
Preferably, described previewing module comprises:
The suspension display unit is used for when mouse-pointing this document, the snapshot of each file fragment or scene in mouse peripheral region suspension display CompanionFile.
Preferably, described previewing module comprises:
The window display unit is used for when the File Open window is selected this document, the snapshot of each file fragment or scene in window peripheral region demonstration CompanionFile.
Compared with prior art, the present invention has the following advantages:
The present invention is when preserving file, for this document generates CompanionFile automatically, in search procedure, only need the selected this document of user, the preview data in the corresponding CompanionFile of preview automatically just, because this document is made up of a plurality of independently file fragments, and comprised preview data in the described CompanionFile at described a plurality of file fragments, therefore, described CompanionFile has the discrimination suitable with file, like this, when in a plurality of files, searching certain file that comprises certain content, the user can directly see the preview data in the CompanionFile, does not determine content can reduce consumed time in the ff process and do not need to open one by one these files again, improve search efficiency, thereby make things convenient for the user to carry out searching fast of file;
Secondly, the present invention shows the user with the preview data in the CompanionFile with the form of snapshot, can play eye-catching and open-and-shut effect;
Moreover for the project file that takies big disk space, the snapshot of each scene only need take the space of several kb, neither can increase the burden of disk, can guarantee preview speed again, and then realizes the live preview of scene snapshot.
Description of drawings
Fig. 1 is the process flow diagram of a kind of file content method for previewing of the present invention embodiment;
Fig. 2 is the structural drawing of a kind of file content pre-viewing device of the present invention embodiment.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
If can just know the general contents of file before opening file, the user need not to open one by one viewing files so, just can find the purpose file of wanting fast.
Therefore, the inventor herein has creatively proposed one of core idea of the embodiment of the invention, promptly know the general contents of file, the user " is foreseen " to file content, thereby make things convenient for the user to carry out searching fast of file by a kind of method of file content preview.
With reference to Fig. 1, show the process flow diagram of a kind of file content method for previewing of the present invention embodiment, specifically can comprise:
When step 101, preservation file, be that this document generates CompanionFile, described CompanionFile comprises the preview data at a plurality of file fragments;
In practice, because preview data is the difference place of a file and another file, and the file occupation space is very big, and for example, common captions project file often takies hundreds of million, even the space of several G, like this, before the user opens file, read preview data in the big captions project file if go earlier, then the preview data that reads is showed the user, also require a great deal of time.
For avoiding above-mentioned mistaken ideas, the present invention takes to read preview data from little CompanionFile, then described preview data preview is given user's mode.In addition, owing to before opening file, just require the described content of preview, therefore, the present invention adopts and generate described CompanionFile when preserving file, also promptly in the deposit process, generate CompanionFile, can guarantee that the content in the CompanionFile is up-to-date, can not miss the opportunity of when reopening file, showing again for the user.
In actual applications, the difference degree between some file is very little, and for example, certain two file is except certain part, and the content of other parts all is identical, and this has proposed the requirement of a discrimination to CompanionFile.
At the problems referred to above, the present invention introduces file fragment thought, particularly, file is made up of a plurality of file fragments, and these file fragments are separate and different, therefore, if can comprise preview data in the CompanionFile at a plurality of file fragments, CompanionFile just can have the discrimination suitable with file so, thereby makes the user see preview data in the CompanionFile, just can determine whether current file is the file of wanting.
In a preferred embodiment of the present invention, for the file of being made up of a plurality of file fragments, the generation step of its CompanionFile can comprise following substep:
Substep A1, be that each file fragment generates map record;
For example, described map record can comprise numbering, reference position, final position and the snapshot of each file fragment.
The map record of substep A2, combination All Files fragment obtains CompanionFile.
Under the film titler applied environment, the project file of application is made up of a plurality of scenes, and is separate between these scenes, and comprises several subtitle elements in each scene, for example, has literal, figure of various special effects etc.Under this environment, the generation step of described CompanionFile can comprise:
Substep B1, be that each scene generates map record;
For example, certain project file has 100 scenes, and the map record of the 5th scene can comprise so: the snapshot of the reference position of the numbering 5 of this scene in project file, this scene and final position, this scene.Wherein, described reference position and final position can be the deviation post (offset) of this scene with respect to this project file file header, and described snapshot can be for compressing the pel (Icon) that obtains, for example to this scene, the snapshot size can be 32 * 32,64 * 64 etc.
Substep B2, make up the map record of all scenes, obtain CompanionFile.
For above-mentioned example, 100 map records have been comprised in the CompanionFile of described project file.
This step is with the preview data at a plurality of file fragments in the CompanionFile, shows the user.
In specific implementation, owing to snapshot is preserved to scheme n-ary form n, and pel can play eye-catching effect, so the present invention preferentially shows the snapshot of user figure n-ary form n.For example, certain project file has 100 scenes, and the user can see the snapshot of described 100 scenes when selected this project file so.
Corresponding to the situation of suspension display, described preview step can comprise:
When mouse-pointing this document, the snapshot of each file fragment or scene in mouse peripheral region suspension display CompanionFile.
For example, in explorer, when mouse-pointing " new files " project file, the snapshot in the corresponding CompanionFile will be suspended in the lower right of mouse.
Corresponding to the situation that window is showed, described preview step can comprise:
When in the File Open window, selecting this document, the snapshot of each file fragment or scene in window peripheral region demonstration CompanionFile.
For example, in " opening " window, singly-bound is chosen " new files 2 " file, the snapshot in the corresponding CompanionFile will be presented at window under.
Be appreciated that except project file the present invention can also be applied to by a plurality of separate file fragments other type file that form, that have logicality, for example " * .ppt " text etc.
The present invention is when preserving file, for this document generates CompanionFile automatically, in search procedure, only need the selected this document of user, the preview data in the corresponding CompanionFile of preview automatically just, because this document is made up of a plurality of independently file fragments, and comprised preview data in the described CompanionFile at described a plurality of file fragments, therefore, described CompanionFile has the discrimination suitable with file, like this, when in a plurality of files, searching certain file that comprises certain content, the user can directly see the preview data in the CompanionFile, does not determine content can reduce consumed time in the ff process and do not need to open one by one these files again, improve search efficiency, thereby make things convenient for the user to carry out searching fast of file;
Secondly, the present invention shows the user with the preview data in the CompanionFile with the form of snapshot, can play eye-catching and open-and-shut effect;
Moreover for the project file that takies big disk space, the snapshot of each scene only need take the space of several kb, neither can increase the burden of disk, can guarantee preview speed again, and then realizes the live preview of scene snapshot.
With reference to Fig. 2, show the structural drawing of a kind of file content pre-viewing device of the present invention embodiment, specifically can comprise:
For the file of being made up of a plurality of file fragments, in a preferred embodiment of the present invention, described generation module 201 can comprise:
The first map record generation unit 211 is used for when file comprises a plurality of file fragment, and for each file fragment in the file generates map record, described map record comprises numbering, reference position, final position and the snapshot of each file fragment;
First assembled unit 212 is used to make up the map record of all fragments, obtains CompanionFile.
Previewing module 202 is used for when selecting files, and calls corresponding CompanionFile and carries out preview.
In specific implementation, corresponding to the situation of suspension display, described previewing module can comprise:
The suspension display unit is used for when mouse-pointing this document, the snapshot of each file fragment or scene in mouse peripheral region suspension display CompanionFile.
Corresponding to the situation that window is showed, described previewing module can comprise:
Under the film titler applied environment, the project file of application is made up of a plurality of scenes, and is separate between these scenes, and comprises several subtitle elements in each scene, for example, has literal, figure of various special effects etc.Under this environment, described generation module 201 can comprise:
The second map record generation unit, being used at file is project file, and when described project file comprises a plurality of scene, be that each scene of project file generates map record, described map record comprises numbering, reference position, final position and the snapshot of each scene;
Second assembled unit is used to make up the map record of all scenes, obtains CompanionFile.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device embodiment, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
The present invention can be applied to the file that project file etc. is made up of a plurality of file fragments, is used for calling corresponding CompanionFile and carries out preview at the preview data of a plurality of file fragments.
More than to the method and apparatus of a kind of file content preview provided by the present invention, be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (10)
1. the method for a file content preview is characterized in that, comprising:
When preserving file, for this document generates CompanionFile, described CompanionFile comprises the preview data at a plurality of file fragments;
When selecting files, call corresponding CompanionFile and carry out preview.
2. the method for claim 1 is characterized in that, described file comprises a plurality of file fragments;
The generation step of described CompanionFile comprises:
For each file fragment generates map record, described map record comprises numbering, reference position, final position and the snapshot of each file fragment;
The map record of combination All Files fragment obtains CompanionFile.
3. the method for claim 1 is characterized in that, described file is a project file, and described project file comprises a plurality of scenes;
The generation step of described CompanionFile comprises:
For each scene generates map record, described map record comprises numbering, reference position, final position and the snapshot of each scene;
Make up the map record of all scenes, obtain CompanionFile.
4. as claim 2 or 3 described methods, it is characterized in that described preview step comprises:
When mouse-pointing this document, the snapshot of each file fragment or scene in mouse peripheral region suspension display CompanionFile.
5. as claim 2 or 3 described methods, it is characterized in that described preview step comprises:
When in the File Open window, selecting this document, the snapshot of each file fragment or scene in window peripheral region demonstration CompanionFile.
6. a file content pre-viewing device is characterized in that, comprising:
Generation module is used for when preserving file, and for this document generates CompanionFile, described CompanionFile comprises the preview data at a plurality of file fragments;
Previewing module is used for when selecting files, and calls corresponding CompanionFile and carries out preview.
7. device as claimed in claim 6 is characterized in that, described generation module comprises:
The first map record generation unit is used for when file comprises a plurality of file fragment, and for each file fragment in the file generates map record, described map record comprises numbering, reference position, final position and the snapshot of each file fragment;
First assembled unit is used to make up the map record of all fragments, obtains CompanionFile.
8. device as claimed in claim 6 is characterized in that, described generation module comprises:
The second map record generation unit, being used at file is project file, and when described project file comprises a plurality of scene, be that each scene of project file generates map record, described map record comprises numbering, reference position, final position and the snapshot of each scene;
Second assembled unit is used to make up the map record of all scenes, obtains CompanionFile.
9. as claim 7 or 8 described devices, it is characterized in that described previewing module comprises:
The suspension display unit is used for when mouse-pointing this document, the snapshot of each file fragment or scene in mouse peripheral region suspension display CompanionFile.
10. as claim 7 or 8 described devices, it is characterized in that described previewing module comprises:
The window display unit is used for when the File Open window is selected this document, the snapshot of each file fragment or scene in window peripheral region demonstration CompanionFile.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102376691A CN102063444A (en) | 2009-11-13 | 2009-11-13 | Method and device for previewing file contents |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102376691A CN102063444A (en) | 2009-11-13 | 2009-11-13 | Method and device for previewing file contents |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102063444A true CN102063444A (en) | 2011-05-18 |
Family
ID=43998724
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009102376691A Pending CN102063444A (en) | 2009-11-13 | 2009-11-13 | Method and device for previewing file contents |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102063444A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102385630A (en) * | 2011-11-19 | 2012-03-21 | 上海量明科技发展有限公司 | Method and system for marking in folder |
CN103634362A (en) * | 2012-08-28 | 2014-03-12 | 金蝶软件(中国)有限公司 | File transfer method, file server and file transfer system |
CN105787024A (en) * | 2016-02-24 | 2016-07-20 | 广州三星通信技术研究有限公司 | Resource management method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1245613A (en) * | 1996-12-13 | 2000-02-23 | 星视电视广播公司 | Electronic programming guide with movie preview |
CN1924860A (en) * | 2006-10-08 | 2007-03-07 | 网之易信息技术(北京)有限公司 | Search engine based search result fast pre-reading device |
WO2008129544A1 (en) * | 2007-04-19 | 2008-10-30 | Negevision Ltd. | A novel interface for previewing records of a network video recorder |
CN101465959A (en) * | 2007-12-21 | 2009-06-24 | 希姆通信息技术(上海)有限公司 | Method for generating and rapidly browsing image of hand-hold equipment |
CN101477519A (en) * | 2008-12-22 | 2009-07-08 | 传神联合(北京)信息技术有限公司 | Original document synchronous preview apparatus and method for network translation |
-
2009
- 2009-11-13 CN CN2009102376691A patent/CN102063444A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1245613A (en) * | 1996-12-13 | 2000-02-23 | 星视电视广播公司 | Electronic programming guide with movie preview |
CN1924860A (en) * | 2006-10-08 | 2007-03-07 | 网之易信息技术(北京)有限公司 | Search engine based search result fast pre-reading device |
WO2008129544A1 (en) * | 2007-04-19 | 2008-10-30 | Negevision Ltd. | A novel interface for previewing records of a network video recorder |
CN101465959A (en) * | 2007-12-21 | 2009-06-24 | 希姆通信息技术(上海)有限公司 | Method for generating and rapidly browsing image of hand-hold equipment |
CN101477519A (en) * | 2008-12-22 | 2009-07-08 | 传神联合(北京)信息技术有限公司 | Original document synchronous preview apparatus and method for network translation |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102385630A (en) * | 2011-11-19 | 2012-03-21 | 上海量明科技发展有限公司 | Method and system for marking in folder |
CN103634362A (en) * | 2012-08-28 | 2014-03-12 | 金蝶软件(中国)有限公司 | File transfer method, file server and file transfer system |
CN105787024A (en) * | 2016-02-24 | 2016-07-20 | 广州三星通信技术研究有限公司 | Resource management method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102457665B1 (en) | Predict topics for potential relevance based on retrieved/generated digital media files | |
US10152773B2 (en) | Creating a blurred area for an image to reuse for minimizing blur operations | |
JP5658823B2 (en) | Metadata integration for duplicate images | |
US20150334068A1 (en) | Message processing method and apparatus | |
Ciurea et al. | Implementing mobile virtual exhibition to increase cultural heritage visibility | |
CN107273079B (en) | Associated information display method, associated information map processing method, associated information display device, associated information map processing device, associated information map display medium, associated information map processing device and associated information map processing system | |
US8358842B2 (en) | Electronic device with function of separating panels of digital comic strip and method thereof | |
CN109344241A (en) | Recommended method, device, terminal and the storage medium of information | |
CN107562680A (en) | Data processing method, device and terminal device | |
CN105094775B (en) | Webpage generation method and device | |
CN106155454A (en) | A kind of interface display method, device and electronic equipment | |
CN103971391A (en) | Animation method and device | |
CN102332001A (en) | Video thumbnail generation method and device | |
CN106507159A (en) | Display device and its control method | |
CN108600083B (en) | Message reminding method and device | |
CN106534478A (en) | Map information display system based on asynchronous loading | |
CN109709452A (en) | The isolator detecting mthods, systems and devices of transmission line of electricity | |
CN104331342B (en) | The matched method of file path and its device | |
CN102063444A (en) | Method and device for previewing file contents | |
CN111190519A (en) | File and control processing method, device, equipment and storage medium thereof | |
CN104750853A (en) | Method and device for searching heterogeneous data | |
CN102065237A (en) | Title generator capable of being convenient to process title files | |
CN113014853B (en) | Interactive information processing method and device, electronic equipment and storage medium | |
CN110659393B (en) | Method and system for generating xml code | |
CN106547792B (en) | Picture sharing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110518 |