CN104133544B - Document handling method, device and terminal - Google Patents

Document handling method, device and terminal Download PDF

Info

Publication number
CN104133544B
CN104133544B CN201310375907.1A CN201310375907A CN104133544B CN 104133544 B CN104133544 B CN 104133544B CN 201310375907 A CN201310375907 A CN 201310375907A CN 104133544 B CN104133544 B CN 104133544B
Authority
CN
China
Prior art keywords
file
event
events
sequence
catalogue
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.)
Active
Application number
CN201310375907.1A
Other languages
Chinese (zh)
Other versions
CN104133544A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310375907.1A priority Critical patent/CN104133544B/en
Publication of CN104133544A publication Critical patent/CN104133544A/en
Application granted granted Critical
Publication of CN104133544B publication Critical patent/CN104133544B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention discloses a kind of document handling method, device and terminal, belong to computer realm.Described method comprises: monitor at least one file event corresponding with file, and the type of this file is the type of the file that specified application generates; Corresponding sequence of events is obtained according to the file event listened to; Whether the file event detected in sequence of events meets the first predetermined condition; If testing result is the file event in sequence of events meet the first predetermined condition, then predetermined process is carried out to this file.The present invention is by monitoring the file event corresponding with the file of particular type, obtain the sequence of events that file is corresponding, and when the file event in sequence of events meets predetermined condition, predetermined process is carried out to file detecting, solve in prior art and need user manually to complete processing procedure, thus waste user time, the problem of the electricity of a large amount of consumption terminal, reaches and saves processing time and terminal power, improves the object of terminal duration performance.

Description

Document handling method, device and terminal
Technical field
The present invention relates to computer realm, particularly a kind of document handling method, device and terminal.
Background technology
Along with the development of field of mobile terminals, the mobile terminals such as smart mobile phone, panel computer and E-book reader have become requisite part in people's life.By having the mobile terminal of specific function, the dribs and drabs in life can be recorded in the files such as text, picture, video or audio frequency by people anywhere or anytime, such as, writes one section of daily record, takes several photo, records one section of video or audio frequency.
For the consideration of protection privacy of user aspect, mobile terminal also can provide for the file of user Treatment Options such as encrypting or hide usually.Existing document handling method, manually realizes mainly through user.Such as, be encrypted the photo of shooting for user, after user uses the mobile terminal including camera to take one or multiple pictures, the photograph album entered in mobile terminal finds the photo of just shooting, click exhalation menu, Choice encryption option completes the encryption of comparison film.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
Existing document handling method, user is needed manually to complete locating file and to processes such as the process of file, especially when needing file to be processed more, user needs to process file respectively, while waste user's plenty of time, also can consume the electricity of terminal in a large number, affect the continuation of the journey of terminal.
Summary of the invention
User is needed manually to complete processing procedure in order to solve in prior art, thus waste user's plenty of time, a large amount of problem consuming the electricity of terminal, embodiments provides a kind of document handling method, device and terminal.Described technical scheme is as follows:
On the one hand, provide a kind of document handling method, described method comprises:
Monitor at least one file event corresponding with file, the type of described file is the type of the file that specified application generates, and each described file event is for characterizing the single operation to described file;
Sequence of events corresponding to described file is obtained according at least one file event described in listening to;
Whether the file event detected in described sequence of events meets the first predetermined condition;
If testing result is the file event in described sequence of events meet described first predetermined condition, then predetermined process is carried out to described file.
On the other hand, provide a kind of document handling apparatus, described device comprises:
Action listener module, for monitoring at least one file event corresponding with file, the type of described file is the type of the file that specified application generates, and each described file event is for characterizing the single operation to described file;
Sequence of events obtains module, obtains sequence of events corresponding to described file at least one file event described in listening to according to described action listener module;
First detection module, whether the file event obtained for detecting described sequence of events in the sequence of events of module acquisition meets the first predetermined condition;
Processing module, if be that file event in described sequence of events meets described first predetermined condition for the testing result of described first detection module, then carries out predetermined process to described file.
Again on the one hand, provide a kind of terminal, described terminal comprises:
Document handling apparatus as shown in above-mentioned another aspect.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By monitoring the file event corresponding with the file of particular type, obtain the sequence of events that file is corresponding, and when the file event in sequence of events meets predetermined condition, predetermined process is carried out to file detecting, solve in prior art and need user manually to complete processing procedure, thus waste user time, the problem of the electricity of a large amount of consumption terminal, reaches and saves processing time and terminal power, improves the object of terminal duration performance.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the document handling method that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of the document handling method that the embodiment of the present invention two provides;
Fig. 3 is the structure drawing of device of the document handling apparatus that the embodiment of the present invention three provides;
Fig. 4 is the structure drawing of device of the document handling apparatus that the embodiment of the present invention four provides;
Fig. 5 is the equipment pie graph of the terminal that the embodiment of the present invention five provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Refer to Fig. 1, it illustrates the method flow diagram of the document handling method that the embodiment of the present invention one provides.This document handling method can comprise:
Step 102, monitors at least one file event corresponding with file, and the type of this file comprises the type of the file that specified application generates, and each file event is for characterizing the single operation to this file;
Step 104, this at least one file event according to listening to obtains sequence of events corresponding to this file;
Step 106, whether the file event detected in this sequence of events meets the first predetermined condition;
Step 108, if testing result is file event in this sequence of events meet this first predetermined condition, then carries out predetermined process to this file.
In sum, the document handling method that the embodiment of the present invention one provides, by monitoring the file event corresponding with the file of particular type, obtain the sequence of events that file is corresponding, and when the file event in sequence of events meets predetermined condition, predetermined process is carried out to file detecting, solve in prior art and need user manually to complete processing procedure, thus waste user time, the problem of the electricity of a large amount of consumption terminal, reach and save processing time and terminal power, improve the object of terminal duration performance.
Embodiment two
Based on the more preferred scheme of the document handling method that above-described embodiment one provides, refer to Fig. 2, it illustrates the method flow diagram of the document handling method that the embodiment of the present invention two provides.This document handling method may be used for being encrypted the file in terminal or hiding process, this file can be document, picture, video or audio frequency etc., and this terminal can be the mobile terminals such as smart mobile phone, panel computer, E-book reader or digital camera.To be encrypted the photo of shooting in the smart mobile phone including image acquisition units, this document handling method can comprise:
Step 202, whether terminal obtains the mark being in the application program of current operation system stack top, detect the mark of application program got and mate with the mark of specified application;
Concrete, when being the photo of just shooting when needing file to be processed, this specified application can be the camera programm in smart mobile phone.In smart mobile phone, the application program being in current operation system stack top is shown in the screen the superiors of smart mobile phone usually, therefore, terminal can open a stack top scanning thread, for the change of monitor operating system stack top, when monitoring the application program being in stack top and changing, obtain the mark of the application program of current stack top, the title of such as this application program, and detect the title of this application program and whether mate with the title of the camera programm in smart mobile phone, if detect both couplings, then illustrate that the camera programm in smart mobile phone is in open mode, now, if monitor the file newly creating picture/mb-type, then can confirm that the file of the picture/mb-type of this new generation is for needing photo to be processed.
Step 204, if the mark of the application program got and the marking matched of specified application, then terminal determines effective catalogue;
Because the storage directory of camera programm is not fixed, such as, user manually may change the storing directory of the photo of new shooting, and carries out monitoring to the file event in storage directories all in smart mobile phone and can waste too many resource, not easily realizes.Therefore, before the picture file corresponding to the photo of new shooting is monitored, need to determine that camera programm may be used for storing effective catalogue of the new photo taken, and only effective catalogue is carried out to the monitoring of file event.Concrete, the storage directory meeting the second predetermined condition under current operation system can be defined as effective catalogue by terminal, and this second predetermined condition can be the one or more kinds of combinations in following three kinds of conditions:
1) storage directory is in non-concealed state;
Because camera programm can not hide storage directory usually, therefore, terminal only can monitor the storage directory of non-concealed.
2) level residing for storage directory is less than predetermined level;
Under normal circumstances, the no matter storage directory that manually arranges of the default storage catalogue of camera programm or user, its number of levels all can not be too high, therefore, terminal can pre-set a predetermined level, such as arranging predetermined level is 5, and catalogue number of levels being less than 5 is considered as camera programm and may be used for effective catalogue of the photo storing new shooting and monitors, and the storage directory that number of levels is greater than or equal to 5 is then ignored.
3) storage directory is the catalogue stored the specified application last time.
Camera programm once to be taken pictures and between this takes pictures, its catalogue storing the photo of new shooting may not change, therefore, camera programm is stored the photo of new shooting by terminal storage directory when upper once monitoring file event is recorded, and when this is monitored, the catalogue of record is defined as effective catalogue.
By determining effective catalogue, terminal can be avoided consuming too many resource as far as possible while expanding monitoring scope, improves terminal capabilities.
Step 206, each file event that terminal monitoring is corresponding with the file under this effective catalogue, filters the file event listened to, and is added into sequence of events corresponding to this file by filtering the file event obtained;
May include very eurypalynous file under effective catalogue, the file of not all type all meets the requirements, and when only documentary type is consistent with the type of the file that specified application generates, just obtains the sequence of events that this file is corresponding.
Such as, in the embodiment of the present invention two, the photo that camera programm is newly taken must be picture format, terminal can the Format Type of the file corresponding to file event that arrives of Anti-Sniffer, if this file is not BMP(Bitmap, bitmap images), JPEG(JointPhotographicExpertsGroup, joint image expert group) or GIF(GraphicsInterchangeFormat, graphic interchange format) etc. picture format, then do not obtain sequence of events corresponding to this file.
In addition, file event corresponding to a file can have a lot, whether not all file event may be used to detect and processes this file, even if all file events listened to are added into sequence of events, in the process whether subsequent detection processes this file, terminal also needs to select wherein a part of file event to detect.And if All Files event is all added into sequence of events, the file event that can cause not being suitable for detecting takies too much memory source, and follow-up detect according to the file event in sequence of events process that whether file can carry out processing also can extra consumption is certain because comprising the file event that is not too much suitable for detecting in sequence of events process resource.In order to reduce the consumption of internal memory and process resource, improving system performance, needing the type of the file event to terminal monitoring to limit.
Specifically such as, in the embodiment of the present invention two, judge whether that the photo that will generate camera programm shooting process according to being the photo newly taken for this photo, for the photo of a newly shooting, its inevitable generative process along with a picture file, mainly comprises the file event with Types Below in the picture file generative process that photo is corresponding: create event Create, open event Open, revise event Modify, close event Close and move into assigned catalogue event Move_To.In addition, system also can produce the irrelevant event of some and picture file generative process, the Access Events Access produced when such as file is accessed, shift out assigned catalogue event Move_From, the event ignored that monitoring project produces when being terminated or removing itself, spilling event that system is busy to be produced when causing file event to be overflowed and establishment or deltree time generation catalogue dependent event etc.When monitoring file event, can pre-set terminal and only monitor the file event of 5 types that the generative process of above-mentioned picture file is correlated with, the file event of all the other types is then ignored.
Secondly, even if the file event of above-mentioned 5 types, also may include and be not suitable for for detecting the situation whether processed file, also need further to filter the file event of the predefined type listened to, such as, terminal can monitor the file event of the predefined type corresponding with this file, and detects and currently whether carry out predetermined process to the file corresponding to the file event of this predefined type listened to; If testing result is current not corresponding to the file event of this predefined type listened to file carry out predetermined process, then this file event is added into sequence of events corresponding to this file.
In the embodiment of the present invention two, terminal to take pictures produce photo carry out predetermined process can comprise comparison film be encrypted or hide.And comparison film be encrypted or hide process in, also can relate to the opening of file, revise or the operation such as closedown, correspondence also can produce the file events such as the event of opening, amendment event or close event, if do not filter out this type of file event, re-treatment may be carried out to the picture file carrying out predetermined process, thus cause process to make mistakes.
Concrete, terminal can record the mark of the file carrying out predetermined process, such as, the title of photo or ID(IDentity, identify label number), when listening to file event, the title of the file of the title of file corresponding for this file event or ID and record or ID are compared, if both couplings, then fall this file event filtering.
Step 208, whether the file event that terminal detects in this sequence of events meets the first predetermined condition;
After terminal obtains the sequence of events after filtering, whether the file event that can detect in sequence of events meets the first predetermined condition, and this first predetermined condition can comprise the one in following two kinds of conditions:
1) immigration assigned catalogue event is included in this sequence of events;
This assigned catalogue can be effective catalogue of terminal current monitor, before a file is moved into effective catalogue of current monitor by application program outside effective catalogue, usually under the original directory of this file, completed the establishment to this file, open, the operating process such as amendment and closedown, therefore, when including immigration assigned catalogue event in the sequence of events of a file, often can not comprise the file event of other type again, therefore, when including immigration assigned catalogue event in sequence of events, namely can think that this sequence of events respective file can carry out predetermined process.
2) include establishment event and at least one amendment event in this sequence of events, and the event of opening comprised in this sequence of events is identical with the number of close event;
If comprise establishment event in the sequence of events of a file, then show that this file is newly-generated file, if and only comprise establishment event in this sequence of events, but amendment event is not comprised, then show not carry out amendment to the new file created, the file of this new establishment is an empty file, does not need to carry out predetermined process.Therefore, terminal can detect and include establishment event in sequence of events, whether also include at least one amendment event, if so, then determine that this file is not empty file.
In addition, file is modified and needs to open and close this file, accordingly, the event of opening and close event will inevitably be produced, and when a file is in open mode, this file may also unmodifiedly complete, or, cannot be carried out some to the file being in open mode specifically to process, such as cannot the file being in open mode be encrypted.Therefore, terminal needs to detect this file and whether is in closed condition, concrete, terminal can detect event of opening in sequence of events corresponding to this file and whether close event is paired appearance, such as, detect the event of opening comprised in sequence of events whether identical with the number of close event, if identical, then detect that this file is in closed condition.For the file that newly creates, be not only empty file at this file, and when this file is in closed condition, terminal just can be defined as pending file.
Said method detects by combining polytype file event, when detect in the sequence of events that file is corresponding include move into assigned catalogue event time, directly this file is defined as pending file, when detect include establishment event in the sequence of events that file is corresponding time, event is opened in further detection sequence of events, close event and amendment event, if detect, the event of opening and close event occur in pairs, and at least comprise an amendment event, then this file event is defined as pending file, take into full account the concrete situation in spanned file process, effectively can detect whether file can process, improve Detection accuracy.
Step 210, if the file event in this sequence of events meets this first predetermined condition, then terminal carries out predetermined process to this file.
If by the file event in sequence of events, terminal detects that this file meets treatment conditions, then can be encrypted file or hide etc. predetermined process.
To be encrypted the photo of shooting new in smart mobile phone, in actual applications, above-mentioned monitoring file event also detects according to the file event listened to the idiographic flow whether comparison film carries out processing and can realize as follows:
Smart mobile phone pre-sets the type of the file event of monitoring, in embodiments of the present invention, the type of this file event pre-set comprises establishment event Create, opens event Open, revises event Modify, close event Close and move into assigned catalogue event Move_To.It should be noted that, close event Close can be divided into two classes: closing one can the event Close_Write of writing in files or catalogue, or close the event Close_Nowrite of a read-only file or catalogue, this two classes event can classify as close event.
Concrete, when smart mobile phone is monitored the file event under an effective catalogue, first successively Anti-Sniffer to file event whether be to ignore the file event irrelevant with picture generative process such as event, spilling event or catalogue dependent event.
If this file event is not to ignore the file event irrelevant with picture generative process such as event, spilling event or catalogue dependent event, then detects file corresponding to this file event further and whether be encrypted.
Be not encrypted if this file event is current, then smart mobile phone does following process according to the particular type of this file event:
If this file event is establishment event, whether the file then detecting the establishment of this file event is further picture format, is if so, then that this file correspondence creates an information monitoring project, the mark of establishment event is set wherein, and this information monitoring project is added in monitoring bulleted list;
If this file event is for moving into assigned catalogue event, whether then detect file corresponding to this immigration assigned catalogue event is further picture format, if, be then that this file correspondence creates an information monitoring project, the mark moving into assigned catalogue event is set wherein, and this information monitoring project is added in monitoring bulleted list;
If this file event is for opening event, then in monitoring bulleted list, searches the information monitoring project that this opens event respective file, the counting of event of opening wherein is added 1;
If this file event is close event, then in monitoring bulleted list, searches the information monitoring project of this close event respective file, the counting of event of opening wherein is subtracted 1;
If this file event is amendment event, then in monitoring bulleted list, searches the information monitoring project of this amendment event respective file, the counting of amendment event is wherein added 1.
While execution said process, smart mobile phone also selects file to be encrypted according to monitoring bulleted list, and concrete selection method can have the following two kinds:
1) traversal monitoring bulleted list, will include the mark of establishment event, and open event be counted as 0, the file corresponding to information monitoring project that the counting of amendment event is at least 1 is picked as encrypt file;
2) traversal monitoring bulleted list, is picked as file to be encrypted by the file corresponding to the information monitoring project including the mark moving into assigned catalogue event.
Smart mobile phone is encrypted the encrypt file picked out.
It should be noted that, due to the method that the embodiment of the present invention two provides, after listening to the file event of the predefined type under effective catalogue, be that object is distinguished the file event listened to file, respectively sequence of events is obtained to each file, the detection respectively to multiple file can be realized, interference each other effectively can be avoided when detecting the different files under identical file catalogue, in addition, also can provide support to the operation of multiple similar application program to the method that multiple file detects respectively simultaneously.
In sum, the document handling method that the embodiment of the present invention two provides, by monitoring the file event corresponding with the file of particular type, obtain the sequence of events that file is corresponding, and when the file event in sequence of events meets predetermined condition, predetermined process is carried out to file detecting, solve in prior art and need user manually to complete processing procedure, thus waste user time, the problem of the electricity of a large amount of consumption terminal, reach and save processing time and terminal power, improve the object of terminal duration performance; Secondly, the document handling method that the embodiment of the present invention two provides, by monitoring the file event of predefined type, and the file event of the predefined type listened to is filtered, only the file event being applicable to carrying out detecting is added into sequence of events, reach minimizing memory consumption, improve the object of system performance; In addition, the document handling method that the embodiment of the present invention two provides, by determining effective catalogue in storage directories all under system, and monitors the file in effective catalogue, reach and avoid consuming too many resource as far as possible while expanding monitoring scope, improve the object of terminal capabilities; In addition, the document handling method that the embodiment of the present invention two provides, be that object is monitored with file, respectively sequence of events is obtained to each file, the detection respectively to multiple file can be realized, effectively can avoid interference each other when detecting the different files under identical file catalogue, can also provide support to the operation of multiple similar application program simultaneously; Finally, the document handling method that the embodiment of the present invention two provides, by detecting the combination of polytype file event, takes into full account the concrete situation to file operation, and whether can effectively detect respective file can need to process, and improves Detection accuracy.
Embodiment three
Refer to Fig. 3, it illustrates the structure drawing of device of the document handling apparatus that the embodiment of the present invention three provides.This document handling apparatus can comprise:
Action listener module 301, for monitoring at least one file event corresponding with file, the type of described file is the type of the file that specified application generates, and each described file event is for characterizing the single operation to described file;
Sequence of events obtains module 302, obtains sequence of events corresponding to described file at least one file event described in listening to according to described action listener module 301;
First detection module 303, whether the file event obtained for detecting described sequence of events in the sequence of events of module 302 acquisition meets the first predetermined condition;
Processing module 304, if be that file event in described sequence of events meets described first predetermined condition for the testing result of described first detection module 303, then carries out predetermined process to described file.
In sum, the document handling apparatus that the embodiment of the present invention three provides, by monitoring the file event corresponding with the file of particular type, obtain the sequence of events that file is corresponding, and when the file event in sequence of events meets predetermined condition, predetermined process is carried out to file detecting, solve in prior art and need user manually to complete processing procedure, thus waste user time, the problem of the electricity of a large amount of consumption terminal, reach and save processing time and terminal power, improve the object of terminal duration performance.
Embodiment four
Based on the more preferred scheme of the document handling apparatus that above-described embodiment three provides, refer to Fig. 4, it illustrates the structure drawing of device of the document handling apparatus that the embodiment of the present invention four provides.This document handling apparatus can be implemented as the part in terminal, may be used for being encrypted the file in terminal or hiding process, this file can be document, picture, video or audio frequency etc., and this terminal can be the mobile terminals such as smart mobile phone, panel computer, E-book reader or digital camera.This document handling apparatus can comprise:
Action listener module 401, for monitoring at least one file event corresponding with file, the type of described file is the type of the file that specified application generates, and each described file event is for characterizing the single operation to described file;
Sequence of events obtains module 402, obtains sequence of events corresponding to described file at least one file event described in listening to according to described action listener module 401;
First detection module 403, whether the file event obtained for detecting described sequence of events in the sequence of events of module 402 acquisition meets the first predetermined condition;
Processing module 404, if be that file event in described sequence of events meets described first predetermined condition for the testing result of described first detection module 403, then carries out predetermined process to described file.
The device that the embodiment of the present invention four provides, be that object is monitored with file, respectively sequence of events is obtained to each file, the detection respectively to multiple file can be realized, interference each other effectively can be avoided when detecting the different files under identical file catalogue, in addition, also can provide support to the operation of multiple similar application program to the method that multiple file detects respectively simultaneously.
Described action listener module 401, for monitoring the file event of at least one predefined type corresponding with described file;
The file event of described predefined type comprises: establishment event, the one opened event, close event, amendment event or move in assigned catalogue event.
Whether described first detection module 403, meet following condition for the file event detected in described sequence of events:
Described immigration assigned catalogue event is included in described sequence of events;
Or,
Include described establishment event and amendment event described at least one in described sequence of events, and it is identical with the number of described close event to open event described in comprising in described sequence of events.
Described first detection module 403 is by detecting the combination of polytype file event, and take into full account the concrete situation to file operation, whether can effectively detect respective file can need to process, and improves Detection accuracy.
Described sequence of events obtains module 402, comprising:
Detecting unit 402a, for detecting, current whether corresponding to the described file event listened to file carries out described predetermined process;
Adding device 402b, if be that current not corresponding to the described file event listened to file carries out described predetermined process for the testing result of described detecting unit 402a, is then added into described sequence of events by described file event.
Wherein, described file is the file under effective catalogue, and described document handling apparatus also comprises:
Catalogue determination module 405, before monitoring at least one file event corresponding with file in described action listener module 401, is defined as described effective catalogue by the storage directory meeting the second predetermined condition under current operation system;
Wherein, described second predetermined condition comprises at least one in following three kinds of conditions:
Described storage directory is in non-concealed state;
Level residing for described storage directory is less than predetermined level;
Described storage directory is the catalogue stored the described specified application last time.
Described document handling apparatus also comprises:
Identifier acquisition module 406, before monitoring at least one file event corresponding with file in described action listener module 401, obtains the mark being in the application program of current operation system stack top;
Second detection module 407, whether the mark for the mark with described specified application that detect the described application program that described identifier acquisition module 406 gets mates;
Described action listener module 401, if the testing result for described second detection module 407 is the mark of the described application program got and the marking matched of described specified application, then perform the step of described monitoring at least one file event corresponding with file.
Described processing module 404, comprising:
Ciphering unit 404a, for encrypting described file;
Hidden unit 404b, for hiding described file.
In sum, the document handling apparatus that the embodiment of the present invention four provides, by monitoring the file event corresponding with the file of particular type, obtain the sequence of events that file is corresponding, and when the file event in sequence of events meets predetermined condition, predetermined process is carried out to file detecting, solve in prior art and need user manually to complete processing procedure, thus waste user time, the problem of the electricity of a large amount of consumption terminal, reach and save processing time and terminal power, improve the object of terminal duration performance; Secondly, the document handling apparatus that the embodiment of the present invention four provides, by monitoring the file event of predefined type, and the file event of the predefined type listened to is filtered, only the file event being applicable to carrying out detecting is added into sequence of events, reach minimizing memory consumption, improve the object of system performance; In addition, the document handling apparatus that the embodiment of the present invention four provides, by determining effective catalogue in storage directories all under system, and monitors the file in effective catalogue, reach and avoid consuming too many resource as far as possible while expanding monitoring scope, improve the object of terminal capabilities; In addition, the document handling apparatus that the embodiment of the present invention four provides, be that object is monitored with file, respectively sequence of events is obtained to each file, the detection respectively to multiple file can be realized, effectively can avoid interference each other when detecting the different files under identical file catalogue, can also provide support to the operation of multiple similar application program simultaneously; Finally, the document handling apparatus that the embodiment of the present invention four provides, by detecting the combination of polytype file event, takes into full account the concrete situation to file operation, and whether can effectively detect respective file can need to process, and improves Detection accuracy.
Embodiment five
Refer to Fig. 5, it illustrates the equipment pie graph of the terminal that the embodiment of the present invention five provides.This terminal can be the mobile terminals such as smart mobile phone, panel computer, E-book reader or digital camera, may be used for being encrypted the file in this terminal or hiding process.This terminal can comprise:
Document handling apparatus 001 as described in above-described embodiment three or embodiment four.
In sum, the terminal that the embodiment of the present invention five provides, by monitoring the file event corresponding with the file of particular type, obtain sequence of events corresponding to file, and when the file event in sequence of events meets predetermined condition, predetermined process is carried out to file detecting, solve in prior art and need user manually to complete processing procedure, thus waste user time, the problem of the electricity of a large amount of consumption terminal, reaches and saves processing time and terminal power, improves the object of terminal duration performance; Secondly, the terminal that the embodiment of the present invention five provides, by monitoring the file event of predefined type, and the file event of the predefined type listened to is filtered, only the file event being applicable to carrying out detecting is added into sequence of events, reaches minimizing memory consumption, improve the object of system performance; In addition, the terminal that the embodiment of the present invention five provides, by determining effective catalogue in storage directories all under system, and monitors the file in effective catalogue, reach and avoid consuming too many resource as far as possible while expanding monitoring scope, improve the object of terminal capabilities; In addition, the terminal that the embodiment of the present invention five provides, be that object is monitored with file, respectively sequence of events is obtained to each file, the detection respectively to multiple file can be realized, effectively can avoid interference each other when detecting the different files under identical file catalogue, can also provide support to the operation of multiple similar application program simultaneously; Finally, the terminal that the embodiment of the present invention five provides, by detecting the combination of polytype file event, takes into full account the concrete situation to file operation, and whether can effectively detect respective file can need to process, and improves Detection accuracy.
It should be noted that: the document handling apparatus that above-described embodiment provides is when processing file, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the document handling apparatus that above-described embodiment provides and document handling method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. a document handling method, is characterized in that, described method comprises:
Monitor at least one file event corresponding with file, the type of described file is the type of the file that specified application generates, and each described file event is for characterizing the single operation to described file;
Sequence of events corresponding to described file is obtained according at least one file event described in listening to;
Whether the file event detected in described sequence of events meets the first predetermined condition; Described first predetermined condition comprises: include in described sequence of events and move into assigned catalogue event; Or, include establishment event and at least one amendment event in described sequence of events, and the event of opening comprised in described sequence of events is identical with the number of close event;
If testing result is the file event in described sequence of events meet described first predetermined condition, then carry out predetermined process to described file, described predetermined process comprises encryption and/or hides.
2. method according to claim 1, is characterized in that, at least one file event that described monitoring is corresponding with described file, comprising:
Monitor the file event of at least one predefined type corresponding with described file;
The file event of described predefined type comprises: establishment event, the one opened event, close event, amendment event or move in assigned catalogue event.
3. method according to claim 2, is characterized in that, at least one file event described that described basis listens to obtains sequence of events corresponding to described file, comprising:
Detect current whether corresponding to the described file event listened to file carries out described predetermined process;
If testing result is current not corresponding to the described file event listened to file carry out described predetermined process, then described file event is added into described sequence of events.
4., according to the arbitrary described method of claims 1 to 3, it is characterized in that, described file is the file under effective catalogue, and before at least one file event that described monitoring is corresponding with file, described method also comprises:
The storage directory meeting the second predetermined condition under current operation system is defined as described effective catalogue;
Wherein, described second predetermined condition comprises at least one in following three kinds of conditions:
Described storage directory is in non-concealed state;
Level residing for described storage directory is less than predetermined level;
Described storage directory is the catalogue stored the described specified application last time.
5. method according to claim 4, is characterized in that, before at least one file event that described monitoring is corresponding with file, described method also comprises:
Obtain the mark being in the application program of current operation system stack top;
Detect the mark of described application program got whether to mate with the mark of described specified application;
If testing result is the mark of the described application program got and the marking matched of described specified application, then perform the step of described monitoring at least one file event corresponding with file.
6. a document handling apparatus, is characterized in that, described device comprises:
Action listener module, for monitoring at least one file event corresponding with file, the type of described file is the type of the file that specified application generates, and each described file event is for characterizing the single operation to described file;
Sequence of events obtains module, obtains sequence of events corresponding to described file at least one file event described in listening to according to described action listener module;
First detection module, whether the file event obtained for detecting described sequence of events in the sequence of events of module acquisition meets the first predetermined condition; Described first predetermined condition comprises: include in described sequence of events and move into assigned catalogue event; Or, include establishment event and at least one amendment event in described sequence of events, and the event of opening comprised in described sequence of events is identical with the number of close event;
Processing module, if be that file event in described sequence of events meets described first predetermined condition for the testing result of described first detection module, then carries out predetermined process to described file;
Described processing module, comprising:
Ciphering unit, for encrypting described file;
Hidden unit, for hiding described file.
7. device according to claim 6, is characterized in that, described action listener module, for monitoring the file event of at least one predefined type corresponding with described file;
The file event of described predefined type comprises: establishment event, the one opened event, close event, amendment event or move in assigned catalogue event.
8. device according to claim 7, is characterized in that, described sequence of events obtains module, comprising:
Detecting unit, for detecting, current whether corresponding to the described file event listened to file carries out described predetermined process;
Adding device, if be that current not corresponding to the described file event listened to file carries out described predetermined process for the testing result of described detecting unit, is then added into described sequence of events by described file event.
9., according to the arbitrary described device of claim 6 to 8, it is characterized in that, described file is the file under effective catalogue, and described device also comprises:
Catalogue determination module, before monitoring at least one file event corresponding with file in described action listener module, is defined as described effective catalogue by the storage directory meeting the second predetermined condition under current operation system;
Wherein, described second predetermined condition comprises at least one in following three kinds of conditions:
Described storage directory is in non-concealed state;
Level residing for described storage directory is less than predetermined level;
Described storage directory is the catalogue stored the described specified application last time.
10. device according to claim 9, is characterized in that, described device also comprises:
Identifier acquisition module, before monitoring at least one file event corresponding with file in described action listener module, obtains the mark being in the application program of current operation system stack top;
Second detection module, whether the mark for the mark with described specified application that detect the described application program that described identifier acquisition module gets mates;
Described action listener module, if be the mark of the described application program got and the marking matched of described specified application for the testing result of described second detection module, then performs the step of described monitoring at least one file event corresponding with file.
11. 1 kinds of terminals, is characterized in that, described terminal comprise as arbitrary in the claims 6 to 10 as described in document handling apparatus.
CN201310375907.1A 2013-08-26 2013-08-26 Document handling method, device and terminal Active CN104133544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310375907.1A CN104133544B (en) 2013-08-26 2013-08-26 Document handling method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310375907.1A CN104133544B (en) 2013-08-26 2013-08-26 Document handling method, device and terminal

Publications (2)

Publication Number Publication Date
CN104133544A CN104133544A (en) 2014-11-05
CN104133544B true CN104133544B (en) 2016-03-30

Family

ID=51806256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310375907.1A Active CN104133544B (en) 2013-08-26 2013-08-26 Document handling method, device and terminal

Country Status (1)

Country Link
CN (1) CN104133544B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702701A (en) * 2015-03-30 2015-06-10 魅族科技(中国)有限公司 Method and device for sharing data
CN109688145B (en) * 2015-12-23 2021-07-16 北京奇虎科技有限公司 Method and device for protecting privacy information
CN106815529A (en) * 2016-12-20 2017-06-09 合肥高维数据技术有限公司 Cell phone pictures safety protection system and method based on Steganography
CN110275862B (en) * 2019-06-26 2021-07-30 北京字节跳动网络技术有限公司 Method and device for counting number of created documents
CN111930814B (en) * 2020-05-29 2024-02-27 武汉达梦数据库股份有限公司 File event scheduling method based on ETL system and ETL system
CN113220645B (en) * 2021-05-31 2022-07-05 技德技术研究所(武汉)有限公司 Linux-compatible Android file display method and device
CN113688106B (en) * 2021-10-27 2022-04-15 广东睿江云计算股份有限公司 File monitoring method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246536A (en) * 2008-03-06 2008-08-20 北京鼎信高科信息技术有限公司 Method for encrypting and decrypting computer files based on process monitoring
CN101453327A (en) * 2007-11-29 2009-06-10 北京鼎信高科信息技术有限公司 Information leakage prevention system
CN101951443A (en) * 2010-09-25 2011-01-19 宇龙计算机通信科技(深圳)有限公司 File security method, system and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453327A (en) * 2007-11-29 2009-06-10 北京鼎信高科信息技术有限公司 Information leakage prevention system
CN101246536A (en) * 2008-03-06 2008-08-20 北京鼎信高科信息技术有限公司 Method for encrypting and decrypting computer files based on process monitoring
CN101951443A (en) * 2010-09-25 2011-01-19 宇龙计算机通信科技(深圳)有限公司 File security method, system and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Android智能手机系统中文件实时监控的研究与实现;温敏,艾丽蓉,王志国;《科学技术与工程》;20090430;第9卷(第7期);第1717-1718页,第2节、第3.1节、第3.2节 *

Also Published As

Publication number Publication date
CN104133544A (en) 2014-11-05

Similar Documents

Publication Publication Date Title
CN104133544B (en) Document handling method, device and terminal
CN103970533B (en) The information recording method and device of screen recording
CN1320817C (en) Recording apparatus, playback apparatus, and privacy protecting method
CN104410785A (en) An information processing method and electronic device
CN107729483B (en) Classification display method, classification display device, terminal and computer-readable storage medium
CN103475572A (en) Method, device and system for sending multiple pictures in instant messaging application
US20160226806A1 (en) Digital media messages and files
CN105138699A (en) Photograph classification method and device based on shooting angle and mobile terminal
CN104104871A (en) Parameter configuration method for camera of mobile terminal and mobile terminal
CN110390641B (en) Image desensitizing method, electronic device and storage medium
TW201503674A (en) Media file management method and system, and computer-readable medium
CN105786539A (en) File downloading method and device
WO2016188152A1 (en) Application processing method and apparatus
CN104331342B (en) The matched method of file path and its device
CN106021573A (en) Image classification method and device and electronic device
US20170046350A1 (en) Media organization
CN106557570A (en) File management method and device under a kind of Android system
CN111415266B (en) Sharing method and device of application program, electronic equipment and readable medium
CN102316298A (en) Method for realizing audio and video recording
CN106161743B (en) Media resource processing method, device and terminal
CN102307259A (en) Content processing method based on mobile terminal application and mobile terminal
CN107291909B (en) Data processing method and system
WO2022188417A1 (en) Data processing method and apparatus, device, and storage medium
CN104281657A (en) Information processing method and electronic device
CN109982016A (en) A kind of recorded file methods of exhibiting, device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant