CN116010356B - Method, device, network disk and storage medium for quickly previewing file through label - Google Patents

Method, device, network disk and storage medium for quickly previewing file through label Download PDF

Info

Publication number
CN116010356B
CN116010356B CN202310300805.7A CN202310300805A CN116010356B CN 116010356 B CN116010356 B CN 116010356B CN 202310300805 A CN202310300805 A CN 202310300805A CN 116010356 B CN116010356 B CN 116010356B
Authority
CN
China
Prior art keywords
file
preview
tag
content
information
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
CN202310300805.7A
Other languages
Chinese (zh)
Other versions
CN116010356A (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.)
Tianjin Lenovo Collaboration Technology Inc
Original Assignee
Tianjin Lenovo Collaboration Technology Inc
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 Tianjin Lenovo Collaboration Technology Inc filed Critical Tianjin Lenovo Collaboration Technology Inc
Priority to CN202310300805.7A priority Critical patent/CN116010356B/en
Publication of CN116010356A publication Critical patent/CN116010356A/en
Application granted granted Critical
Publication of CN116010356B publication Critical patent/CN116010356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method, a device, a network disk and a storage medium for quickly previewing a file through a label, wherein the method comprises the following steps: receiving a selection operation of a preview tag, and determining a preview loading rule according to the selection operation; acquiring information of the preview label selected by the selection operation; acquiring file ID information and content offset information in the information of the selected preview tag; obtaining a data block corresponding to the file according to the file ID information, and obtaining the data block corresponding to the file content of the selected preview tag and the data position in the data block according to the content offset information; and loading the data position of the file content corresponding to the selected preview tag according to the preview loading rule. The method, the device, the network disk and the storage medium for quickly previewing the file through the label can load the file according to the user previewing requirement, avoid wasting resources and flow and improve file previewing efficiency.

Description

Method, device, network disk and storage medium for quickly previewing file through label
Technical Field
The invention belongs to the field of network disks, and particularly relates to a method and device for quickly previewing files through labels, a network disk and a storage medium.
Background
With the development of the internet, applications can be used to share files in addition to their own functions. For example, in addition to real-time chat, instant messaging applications often perform file transfer, which greatly improves the efficiency of information exchange in the user's daily life. Before sharing a general file, in order to determine whether there is a content to be shared in the file, a user generally needs to load the file first, and then, can view the related content of the file. But if the relevant content of the file is not of interest to the user, the time consumed for file loading is wasted.
The existing file preview mechanism needs to preview the whole file from the front page after loading, and when the file pages are more, a great deal of pages need to be turned over to locate the important care content, and the important content is difficult to locate, so that the reading efficiency is low. And the whole file loading needs more occupied processing resources, so that the file previewing efficiency is easily affected, and the file previewing operation is inconvenient.
Disclosure of Invention
In view of the above, the present invention aims to provide a method, an apparatus, a network disk and a storage medium for quickly previewing a file by a label, so as to solve the problem of low file previewing efficiency caused by difficult positioning of key content in the existing file previewing mechanism.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
in a first aspect, the present invention provides a method for quickly previewing a file by a label, including:
receiving a selection operation of a preview tag, and determining a preview loading rule according to the selection operation;
acquiring information of the preview label selected by the selection operation;
acquiring file ID information and content offset information in the information of the selected preview tag;
obtaining a data block corresponding to the file according to the file ID information, and obtaining the data block corresponding to the file content of the selected preview tag and the data position in the data block according to the content offset information;
and loading the data position of the file content corresponding to the selected preview tag according to the preview loading rule so as to display the file content corresponding to the selected preview tag.
Further, the receiving a selection operation of the preview tag, determining a preview loading rule according to the selection operation, includes:
receiving a selection operation of a preview tag;
acquiring a selection mode of the selected preview tag, and determining a preview loading rule according to the selection mode; wherein, the selection mode comprises selection from files and direct selection.
Further, the preview loading rule includes:
when the selection mode is that the file is selected from the files, loading the data positions of the file contents corresponding to the selected preview tags according to the sequence of the file contents corresponding to the selected preview tags in the files;
when the selection mode is direct selection or both direct selection and file selection, classifying the selected preview tags according to the file ID information corresponding to the selected preview tags to obtain tag groups with the same file ID information, sequentially sorting the tag groups according to the number of corresponding data blocks from small to large, and loading the data positions corresponding to the tag groups according to the sorting of the number of the data blocks from small to large; and in the tag group with the same file ID information, loading the data positions corresponding to the tag group according to the sequence of the file contents corresponding to the selected preview tag in the file.
Further, after receiving a selection operation of the preview tag and determining a preview loading rule according to the selection operation, the method further includes:
And if the preview label is not selected, receiving an opening operation of the file, and loading the data position of the file according to the opening operation so as to display the file content corresponding to the file.
Further, the method further comprises:
receiving a selection operation of file contents, and determining the starting position and the ending position of the selected file contents according to the selection operation;
acquiring file ID information and content offset information corresponding to the selected file content;
receiving a generating operation of the preview label, and generating the preview label according to the generating operation;
and writing the file ID information and the content offset information corresponding to the selected file content into the generated preview tag.
Further, after writing the file ID information and the content offset information corresponding to the selected file content into the generated preview tag, the method further includes:
acquiring an existing preview tag;
and repeatedly comparing the generated preview label with the existing preview label, and prompting a user to modify when the generated preview label is repeated with the existing preview label.
In a second aspect, the present invention also provides an apparatus for quickly previewing a file by a label, including:
The receiving module receives selection operation of the preview tag and determines a preview loading rule according to the selection operation;
the acquisition module is used for acquiring the information of the preview tag selected by the selection operation;
the reading module is used for acquiring file ID information and content offset information in the information of the selected preview tag;
the positioning module is used for obtaining a data block corresponding to the file according to the file ID information and obtaining the data block corresponding to the file content of the selected preview tag and the data position in the data block according to the content offset information;
and the loading module is used for loading the data position of the file content corresponding to the selected preview tag according to the preview loading rule so as to display the file content corresponding to the selected preview tag.
Further, the device further comprises:
the monitoring module is used for receiving the selected operation on the file content and determining the starting position and the ending position of the selected file content according to the selected operation;
the extraction module is used for acquiring file ID information and content offset information corresponding to the selected file content;
the generating module is used for receiving the generating operation of the preview label and generating the preview label according to the generating operation;
And the writing module is used for writing the file ID information and the content offset information corresponding to the selected file content into the generated preview tag.
In a third aspect, the present invention also provides a network disk, including:
one or more processors;
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of fast previewing files by tags as described in any of the above.
In a fourth aspect, the present invention also provides a storage medium containing computer executable instructions which, when executed by a computer processor, are used to perform a method of fast previewing a file by tab as described in any of the above.
Compared with the prior art, the method, the device, the network disk and the storage medium for quickly previewing the file through the label have the following advantages:
(1) The method, the device, the network disk and the storage medium for quickly previewing the file through the label can load the file according to the user previewing requirement, avoid wasting resources and flow, improve file previewing efficiency and facilitate the user to conveniently obtain file previewing contents according to the requirement.
(2) The method, the device, the network disk and the storage medium for quickly previewing the file through the tag can also determine the preview loading rule according to the selection operation of the user on the preview tag and enable the preview loading rule to be matched with the file preview requirement of the user. And when the preview label is selected, loading the file content data position corresponding to the preview label to obtain the preview of the file content. And when the preview label is not selected, loading the data position corresponding to the file to obtain the preview content of the file.
(3) According to the method, the device, the network disk and the storage medium for quickly previewing the file through the tag, the selection mode of the selected preview tag can be obtained when the preview tag is selected, and the preview loading rule is determined according to the selection mode. When the user selects the file content corresponding to the preview tag in different selection modes, different preview loading rules can be adopted to load the data, so that the loading efficiency and loading effect of the subsequent data are improved, and convenience of previewing the file by the user is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention. In the drawings:
Fig. 1 is a flowchart of a method for quickly previewing a file by a label according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for quickly previewing a file by a label according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for quickly previewing a file by a label according to a third embodiment of the present invention;
fig. 4 is a flowchart of a method for quickly previewing a file by a label according to a fourth embodiment of the present invention;
fig. 5 is a flowchart of a method for quickly previewing a file by a label according to a fifth embodiment of the present invention;
fig. 6 is a flowchart of a method for quickly previewing a file by a label according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a device for quickly previewing a file by a label according to a seventh embodiment of the present invention;
fig. 8 is a schematic structural diagram of a mesh disc according to an eighth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a method for quickly previewing a file by a label according to a first embodiment of the present invention, where the embodiment is applicable to a file previewing operation, and specifically includes the following steps:
step 101, receiving a selection operation of a preview tag, and determining a preview loading rule according to the selection operation.
When a user selects required file contents from a large number of files to perform operations such as browsing, downloading, copying or sharing, it is required to determine whether the file contents are required, and thus preview viewing of the file contents is required. By way of example, the current common convenient viewing mode is file previewing. Specifically, after the user selects or opens the file, the file is loaded through the server side, so that previews of file contents can be obtained, and the user can quickly obtain the file contents to be checked by checking the previews of the file contents through the display side. The server may be a server or a processor, and a person skilled in the art may select other suitable servers according to the file loading requirement to load the file.
To facilitate a user to quickly preview a file, a desired file or file content is found. In this embodiment, the server also needs to monitor the operation of the user and receive the selection operation of the user on the preview tag, so as to provide a decision basis for loading the subsequent file content, and facilitate the loading of the subsequent file content.
In the practical application process, the user can mark the local content in the file for preview in the storage process of the file, so that the follow-up user can preview conveniently. The user can directly determine the file content to be previewed by selecting the preview tag when previewing the file. Meanwhile, aiming at different preview label selection operations of users, in order to improve file loading efficiency, different preview loading rules need to be determined to load file contents in a targeted manner, so that unnecessary time consumption and flow loss are reduced.
In order to realize convenient loading of file contents, the difficulty of quickly previewing the file through the preview tag is reduced. The method for quickly previewing the file through the tag according to the embodiment can comprise a plurality of preview loading rules for loading the file content in different preview tag selection modes, thereby being beneficial to improving the loading efficiency of the file content and reducing redundant information in the loading process of the file content. And the method is also beneficial to reducing the previewing difficulty of the loaded file content, and is convenient for users to conveniently preview the file.
Step 102, obtaining the information of the preview label selected by the selection operation.
In order to locate the file content corresponding to the preview tag, when the user marks the preview tag on the file content in the file, the information corresponding to the file content may be written into the information of the preview tag. When the subsequent user selects the preview tag, the corresponding file content can be searched and positioned according to the information in the preview tag, so that the preview of the file content corresponding to the preview tag is realized.
In the practical application process, after receiving the selection operation of the user on the preview label, the server side can read the information of the preview label selected by the selection operation, thereby realizing the subsequent reading and loading of the file content corresponding to the preview label.
And step 103, acquiring file ID information and content offset information in the information of the selected preview tag.
The storage principle of the network disk is that the network company divides a part of capacity in a hard disk or a hard disk array of a server to registered users for use, and the file storage still needs to use disk resources, and the principle is that information in a logic file is stored in a physical disk block. The existing modes of storing files in physical disk blocks include a continuous file storage mode, a serial file storage mode, an index file storage mode and the like, and in order to realize file searching, specific file ID information (also called meta information) such as inode number, file size, access authority, creation time, modification time, data position on a disk and the like are required for each file storage.
Because a large number of files may be stored in the network disk at the same time, after the user selects the preview tag, the server side still needs to search and locate the corresponding file according to the file ID information in the preview tag, and reads and loads the file content corresponding to the preview tag through the content offset information.
In the practical application process, the file ID information in the information of the selected preview label is obtained, so that the file can be directly positioned at the storage position of the file. And then, the storage position of the file content to be previewed in the file can be positioned by acquiring the content offset information in the preview tag, so that the file content is read, and data support is provided for the subsequent file content loading.
And 104, obtaining a data block corresponding to the file according to the file ID information, and obtaining the data block corresponding to the file content of the selected preview tag and the data position in the data block according to the content offset information.
Since the file is a named combination of related information recorded on the external memory. From the perspective of a disk user, a file is the smallest allocation unit of logical memory, that is, data can only be written to memory by the file. In general, files represent programs (source and target forms) and data. The data file may be digital, alphanumeric, or binary. The file may be free form, such as a text file, or may be in a strict format. Furthermore, a file is typically a sequence of bits, bytes, rows, or records, the meaning of which is defined by the creator of the file and the network disk user.
For files or programs that require efficient, fast and reliable data access, developers prefer to use data block storage. Data block storage is a technique for controlling data storage and memory devices. It will take any data (such as a file or database entry) and then divide it into equal sized data blocks. The data block storage system then stores the data blocks on the underlying physical storage in a manner optimized for quick access and retrieval. Therefore, when the file content is selected by the user through selecting the preview tag, the data block of the file corresponding to the file content actually needs to be acquired according to the file ID information, and then the specific data block of the file content corresponding to the preview tag in the file data block and the data position in the data block can be acquired according to the content offset information.
The offset is the number of bytes moved forward or backward from the specified location, and is used when finding the data used from the file. The offset is typically three, one is to move several bytes back from the beginning of the file to find the target (this is unsigned, since there is no data in front of the beginning). The second is to move several bytes forward from the end of the file to find the target (again without a sign). The third is the relative position, which is a forward or backward movement seek (signed) from the current position of the file. Since the file is a sequence of bits, bytes, rows or records. So when the content in the file is selected, in practice the user of the disk will typically select a byte sequence. By obtaining the start and end positions (i.e., content offset information) of the selected byte sequence, the data position, i.e., a byte stream, of the file content corresponding to the selected preview tag can be obtained.
In addition, since the data corresponding to the whole file is more bytes than the data corresponding to the file content of the preview tag, when the server loads the file content under the existing file loading mechanism, the server resources occupied by the whole file corresponding to the data loading are more, and the time consumption is longer. In order to avoid wasting the server resources, the embodiment can effectively reduce occupation of the server resources by directly loading the data positions corresponding to the file contents according to the preview labels selected by the user.
And 105, loading the data position of the file content corresponding to the selected preview tag according to the preview loading rule so as to display the file content corresponding to the selected preview tag.
After the preview loading rule is determined, the data position of the file content is required to be loaded according to the preview loading rule so as to display the file content corresponding to the selected preview label, thereby facilitating the user to preview the file content.
In the practical application process, when the user does not select any preview label, the data position corresponding to the file can be loaded according to the file opening operation of the user, so that the preview viewing requirement of the user on the file content in the whole file can be met. However, when the user selects the preview tag, only the file content data position corresponding to the preview tag can be loaded, so that occupation of the file preview on the server resource is reduced.
In this embodiment, the user may preview the file by selecting the preview tag, so that the preview of the specific local content of the file is conveniently implemented, and not only is the user more convenient to preview the file, but also the file preview efficiency is higher. And because the loading processing is the local content of the file, compared with the loading of the whole file, the time consumption, the flow and the resources occupied by the loading processing of the specific local content of the file are lower, the loading efficiency is higher, and the file previewing efficiency in the actual use process is improved.
Optionally, after loading the data position of the file content, the file content can be displayed by the existing terminal equipment with a display function, so that the user can check the file content conveniently. Specifically, the user can view the file preview through the terminal device, and then can read, download, copy or share the file under the existing file operation mechanism. When the file content is displayed, file names, file attributes or file ID information and the like corresponding to the displayed file content can be attached, so that a user can find out corresponding files quickly according to the information, and follow-up operation on required files after previewing is facilitated.
In the practical application process, the terminal equipment can be connected with the Internet to realize data transmission, and a person skilled in the art can select proper terminal equipment and a connection mode of the terminal equipment and the Internet according to the requirement to realize the display of the file content by the terminal equipment.
The embodiment can determine the preview loading rule by receiving the selection operation of the preview label and according to the selection operation. And obtaining file ID information and content offset information in the information of the preview tag selected by the selection operation, obtaining a data block corresponding to the file according to the file ID information, and obtaining the data block corresponding to the file content of the selected preview tag and the data position in the data block according to the content offset information. And finally, loading the data position of the file content corresponding to the selected preview tag according to the preview loading rule so as to display the file content corresponding to the selected preview tag. The method is beneficial to improving the loading efficiency of the file content, thereby solving the problem of overlong loading time of the file content caused by overlarge resource occupation of file loading in the file previewing process and being beneficial to improving the efficiency and convenience of file previewing.
Example two
Fig. 2 is a flowchart of a method for quickly previewing a file by a label according to a second embodiment of the present invention; the present embodiment is optimized based on the foregoing embodiment, in this embodiment, a selection operation for a preview tag will be received, and a preview loading rule is determined according to the selection operation, which is specifically optimized as follows: receiving a selection operation of a preview tag; acquiring a selection mode of the selected preview tag, and determining a preview loading rule according to the selection mode; wherein, the selection mode comprises selection from files and direct selection.
Correspondingly, the method for quickly previewing the file through the tag provided by the embodiment specifically comprises the following steps:
step 201, receiving a selection operation of a preview tag.
Since when the actual file is previewed, if the file content to be previewed by the user has the corresponding preview tag, the user can obtain the file content corresponding to the preview tag by selecting the preview tag. However, if the user wants to preview the whole file or the content of the file to be previewed has no corresponding label, the user does not need or cannot select the preview label, but can directly open the file to preview, and at this time, the user needs to determine whether to select the label or not, so as to facilitate the subsequent file loading. By distinguishing the situations that the preview label selection exists and the situation that the preview label selection does not exist, the preview requirement of a user can be distinguished, so that file content is loaded according to the preview requirement of the user, waste of resources and flow is avoided, and file preview efficiency is improved.
In the practical application process, in order to facilitate the user to select the tags, the preview tag library may be set to store the existing preview tags, and when the user selects the file to preview, the user may directly select the preview tags through the preview tag library, or may select the existing preview tags existing in the file after opening the file. For example, the preview tag library may pop-up when the user opens the current folder and file for selection by the user. When the user opens the current folder, all preview tags in the current folder can be displayed for the user to select, and when the user opens a specific file, all preview tags in the current file can be displayed for the user to select.
Step 202, acquiring a selection mode of the selected preview tag, and determining a preview loading rule according to the selection mode; wherein, the selection mode comprises selection from files and direct selection.
Because the selection modes of the preview labels are different, the file contents (namely, the data positions corresponding to the file contents) corresponding to the preview labels are selected by the user in different selection modes, and different preview loading rules are needed to load the data positions, so that the loading efficiency and loading effect of subsequent data are improved, and meanwhile, the convenience of the user for previewing the file is improved.
In the practical application process, generally, one preview tag corresponds to one file content, and when a user previews a file, the user can obtain the file content corresponding to the tag by selecting one tag. Specifically, when a user opens a file, the user can check that a preview tag exists in the file, select a preview tag, further determine a preview loading rule, and load the file content corresponding to the selected preview tag according to the preview loading rule. Similarly, the user can also directly select the preview tag in the preview tag library.
Optionally, a plurality of preview tags may be corresponding to one file content, and when a user opens a file, the user may check that the preview tag exists in the file, select the preview tags, locate one file content by using the preview tags, and further determine a preview loading rule, so that the file content corresponding to the selected preview tag is loaded according to the preview loading rule. The file content is positioned by the plurality of preview tags, so that a user can more easily position the corresponding file content by the tags, and the difficulty of previewing the file content by the tags is reduced. And when a plurality of labels are used for positioning a file content, the positioning accuracy is more accurate, the loading of redundant file content can be avoided, and a user can obtain the file content which is required to be previewed more conveniently and accurately.
In this embodiment, when the user selects a label to preview a file, a plurality of preview labels may be connected by using a connector to form a label combination, and a file content is positioned by using the label combination, so that more accurate positioning of the file content to be previewed may be achieved, and further, a file content corresponding to the label combination is loaded by using a preview loading rule.
For example, when a file content with multiple tags needs to be previewed, the connector may be a sum, i.e. "and" tag ", and the tag combination may be a tag one and a tag two and a tag three, and then the file content with the three tags may be obtained by using a preview loading rule, so as to realize accurate preview of the file content, and obtain the file content that best meets the preview requirement of the user. When a plurality of file contents with independent labels need to be previewed, the connector can adopt or, namely the label combination type can be the label I label II label III, and file contents with one of the three labels can be obtained by utilizing a file preview loading rule so as to improve the positioning and searching efficiency of the file contents.
In addition, the connectors may incorporate no, non-equal connectors. For example, the no-connector can be used for eliminating file contents with certain labels, and reserving file contents to be previewed so as to further improve the locating and searching efficiency of the file contents. According to the embodiment, the connector and the tag are combined to form the tag combination type, so that accurate preview of batch file contents can be further realized, and the preview efficiency of the batch file contents is improved.
Step 203, obtaining the information of the preview tag selected by the selecting operation.
Step 204, obtaining file ID information and content offset information in the information of the selected preview tag.
And 205, obtaining a data block corresponding to the file according to the file ID information, and obtaining the data block corresponding to the file content of the selected preview tag and the data position in the data block according to the content offset information.
And 206, loading the data positions of the file contents corresponding to the selected preview tags according to the preview loading rules so as to display the file contents corresponding to the selected preview tags.
The embodiment receives a selection operation of the preview tag, determines a preview loading rule according to the selection operation, and specifically optimizes: receiving a selection operation of a preview tag; if the preview label is selected, a selection mode of the selected preview label is obtained, and a preview loading rule is determined according to the selection mode. Through the steps, when the user selects the file content corresponding to the preview tag in different selection modes, different preview loading rules can be adopted to load the data position, so that the loading efficiency and loading effect of subsequent data are improved, and convenience of previewing the file by the user is improved.
Example III
Fig. 3 is a flowchart of a method for quickly previewing a file by a label according to a third embodiment of the present invention; the present embodiment optimizes the preview loading rule based on the above embodiment, and in this embodiment, the preview loading rule is specifically optimized as follows: when the selection mode is that the file is selected from the files, loading the data positions of the file contents corresponding to the selected preview tags according to the sequence of the file contents corresponding to the selected preview tags in the files; when the selection mode is direct selection or both direct selection and file selection, classifying the selected preview tags according to the file ID information corresponding to the selected preview tags to obtain tag groups with the same file ID information, sequentially sorting the tag groups according to the number of corresponding data blocks from small to large, and loading the data positions corresponding to the tag groups according to the sorting of the number of the data blocks from small to large; and in the tag group with the same file ID information, loading the data positions corresponding to the tag group according to the sequence of the file contents corresponding to the selected preview tag in the file.
Correspondingly, the method for quickly previewing the file through the tag provided by the embodiment specifically comprises the following steps:
step 301, receiving a selection operation of a preview tag.
Step 302, acquiring a selection mode of the selected preview tag, and determining a preview loading rule according to the selection mode; wherein, the selection mode comprises selection from files and direct selection.
And 303, loading the data positions of the file contents corresponding to the selected preview tags according to the sequence of the file contents corresponding to the selected preview tags in the file when the selection mode is that the file is selected from the file.
Since a file is typically a sequence of bits, bytes, rows, or records, its meaning is defined by the creator of the file and the network disk user. Therefore, the sequence of the contents in the file also has a sequence, and if the user selects the preview tag from the file, the sequence of the loaded file contents in the file is facilitated by loading the file contents corresponding to the preview tag according to the sequence of the file contents in the file, so that the user can review and understand more conveniently.
Step 304, when the selection mode is direct selection or both direct selection and selection from files exist, classifying the selected preview tags according to the file ID information corresponding to the selected preview tags to obtain tag groups with the same file ID information, sequentially sorting the tag groups according to the number of corresponding data blocks from small to large, and loading the data positions corresponding to the tag groups according to the sorting of the number of the data blocks from small to large; and in the tag group with the same file ID information, loading the data positions corresponding to the tag group according to the sequence of the file contents corresponding to the selected preview tag in the file.
Because the user also needs time to review the loaded file content, the time can be used for loading the subsequent file content, and the user can not easily realize slow loading of the preview file in the whole process of previewing the file, thereby being beneficial to improving the experience of the user. In addition, the file content with the preview tag can be quickly positioned by loading the corresponding file content of the preview tag with the same file ID information, and the position of the file data block only needs to be positioned once. Thus, repeated positioning of file data blocks is avoided, loading speed of file contents is improved, occupation of repeated operation on server resources is reduced, and overall preview efficiency is improved.
In the practical application process, after the user selects the preview tag on the operation interface or the folder interface, the server can classify the selected preview tag according to the file ID information corresponding to the selected preview tag, so as to obtain a tag group with the same file ID information. And sequentially sequencing the tag groups according to the number of the data blocks corresponding to the tag groups from small to large, and loading the data positions corresponding to the tag groups according to the sequence of the number of the data blocks from small to large. Therefore, the tag group with small data block quantity has fewer file contents than the tag group with small data block quantity, the loading speed is higher, and the file contents can be obtained rapidly to be displayed to the user. When the user reviews the displayed file contents, the server can load the file contents corresponding to other tag groups by utilizing the time difference, so that the user can continuously load the preview tag contents until the loading is completed.
It should be noted that, in the tag group with the same file ID information, the corresponding data positions in the tag group are still loaded according to the sequence of the file contents corresponding to the selected preview tag in the file.
Step 305, obtaining the information of the preview tag selected by the selecting operation.
Step 306, obtaining file ID information and content offset information in the information of the selected preview tag.
Step 307, obtaining a data block corresponding to the file according to the file ID information, and obtaining a data block corresponding to the file content of the selected preview tag and a data position in the data block according to the content offset information.
And step 308, loading the data position of the file content corresponding to the selected preview tag according to the preview loading rule so as to display the file content corresponding to the selected preview tag.
The embodiment optimizes the preview loading rule specifically as follows: when the selection mode is that the file is selected from the files, loading the data positions of the file contents corresponding to the selected preview tags according to the sequence of the file contents corresponding to the selected preview tags in the files; and classifying the selected preview tags according to the file ID information corresponding to the selected preview tags when the selection mode is direct selection or both direct selection and file selection exist, obtaining tag groups with the same file ID information, sequentially sorting the tag groups according to the number of corresponding data blocks from small to large, and loading the data positions corresponding to the tag groups according to the sorting of the number of the data blocks from small to large. By adopting the steps, the file content with the preview tag in the file can be rapidly positioned, repeated positioning of the file is avoided, the loading speed of the file content is improved, meanwhile, the occupation of repeated operation on the server resource is reduced, and the integral preview efficiency is further improved.
Example IV
Fig. 4 is a flowchart of a method for quickly previewing a file by a label according to a fourth embodiment of the present invention; the present embodiment optimizes based on the above embodiment, in this embodiment, after receiving a selection operation on a preview tag, determining a preview loading rule according to the selection operation, the following steps are added: and if the preview label is not selected, receiving an opening operation of the file, and loading the data position of the file according to the opening operation so as to display the file content corresponding to the file.
Correspondingly, the method for quickly previewing the file through the tag provided by the embodiment specifically comprises the following steps:
step 401, receiving a selection operation of a preview tag, and determining a preview loading rule according to the selection operation.
And step 402, if the preview label is not selected, receiving an opening operation of the file, and loading the data position of the file according to the opening operation so as to display the file content corresponding to the file.
Because the situation that part of file contents have no label exists in the actual use process, when the user needs to preview the part of file contents, the user does not have labels which can be selected by the user, and only the whole file can be loaded according to the preview loading rule, so that the user previews the file contents corresponding to the whole file. At this time, if no preview label is selected, the server may receive the opening operation of the user on the file, and load the data location corresponding to the file according to the opening operation of the user, so as to display the content of the file, so that the user can preview the content of the file.
Step 403, obtaining information of the preview tag selected by the selecting operation.
Step 404, acquiring file ID information and content offset information in the information of the selected preview tag.
And 405, obtaining a data block corresponding to the file according to the file ID information, and obtaining the data block corresponding to the file content of the selected preview tag and the data position in the data block according to the content offset information.
And step 406, loading the data position of the file content corresponding to the selected preview tag according to the preview loading rule so as to display the file content corresponding to the selected preview tag.
In this embodiment, after the selection operation of the preview tag is received and the preview loading rule is determined according to the selection operation, the following steps are added: if the preview label is not selected, receiving an opening operation of the file, and loading the data position of the file according to the opening operation, so that loading of file contents under the condition that the user does not select the preview label can be realized, and various use requirements of the user can be better met.
Example five
Fig. 5 is a flowchart of a method for quickly previewing a file by a label according to a fifth embodiment of the present invention; the present embodiment is optimized based on the above embodiment, and in this embodiment, the method includes the following steps: receiving a selection operation of file contents, and determining the starting position and the ending position of the selected file contents according to the selection operation; acquiring file ID information and content offset information corresponding to the selected file content; receiving a generating operation of the preview label, and generating the preview label according to the generating operation; and writing the file ID information and the content offset information corresponding to the selected file content into the generated preview tag.
Correspondingly, the method for quickly previewing the file through the tag provided by the embodiment specifically comprises the following steps:
step 501, receiving a selection operation on file contents, and determining starting and ending positions of the selected file contents according to the selection operation.
In the practical application process, in order to facilitate the subsequent user to preview the untagged content of the file part, the user can also tag the preview of the content of the file part after the user previews the file, so as to reduce the file previewing difficulty of the subsequent user. The server side may receive a selection operation of the user on the file content, and determine a start position and an end position of the selected file content according to the selection operation of the user when the user selects a part of the file content, so as to facilitate a subsequent acquisition of content offset information of the part of the file content.
Step 502, obtaining file ID information and content offset information corresponding to the selected file content.
When the user performs the file content selection operation, the file needs to be opened first, so that the file ID information of the file when the file is opened is obtained, the starting position and the ending position of the file content selected by the user are further obtained, and further the content offset information of the content selected by the user is obtained, so that the file ID information and the content offset information corresponding to the selected content can be obtained, and the generation of a subsequent preview label is facilitated.
Step 503, receiving a generating operation on the preview label, and generating the preview label according to the generating operation.
The user can select to manually print the preview tag on the selected file content, so that the file content has a corresponding preview tag, and when the user needs to preview the file content again, the user can position the preview tag corresponding to the file content and load the preview tag by utilizing a preview loading rule, so that the file content corresponding to the preview tag can be obtained quickly.
For example, after the user selects the file content, a new preview tag may be manually input, and the file content may be marked, so that the new preview tag corresponds to the file content one by one. Then the new preview label can be input into the existing preview label library, so that the subsequent user can conveniently find and select.
Optionally, in order to avoid duplication of the new preview tag with the existing preview tag, the preview tag may also be generated by using a "time" + "text remark", where the time may be year, month, day, and hour and minute, if necessary, so as to distinguish the new preview tag from the existing preview tag. By adopting the label form of 'time' + 'text remarks', the time can represent the generation time of the preview label, and the text remarks can prompt the user about the information of the file content, so that the user can conveniently recall or search the preview label. When the subsequent user selects the preview tag, the required preview tag and the file content corresponding to the preview tag can be quickly found through time and text remarks, so that the corresponding file content is obtained by utilizing the preview loading rule, and the file content preview efficiency of the user is further improved.
And step 504, writing the file ID information and the content offset information corresponding to the selected file content into the generated preview tag.
By writing the file ID information and the content offset information into the generated preview tag, the new preview tag can be provided with preview tag information which can be acquired during subsequent selection operation, so that the subsequent user can preview the file content through the preview tag selection operation.
Step 505, receiving a selection operation of the preview tag, and determining a preview loading rule according to the selection operation.
Step 506, obtaining the information of the preview tag selected by the selecting operation.
Step 507, obtaining file ID information and content offset information in the information of the selected preview tag.
And step 508, obtaining the data block corresponding to the file according to the file ID information, and obtaining the data block corresponding to the file content of the selected preview tag and the data position in the data block according to the content offset information.
Step 509, loading the data position of the file content corresponding to the selected preview tag according to the preview loading rule, so as to display the file content corresponding to the selected preview tag.
The method for quickly previewing the file through the tag according to the embodiment adds the following steps: receiving a selection operation of file contents, and determining the starting position and the ending position of the selected file contents according to the selection operation; acquiring file ID information and content offset information corresponding to the selected file content; receiving a generating operation of the preview label, and generating the preview label according to the generating operation; and writing the file ID information and the content offset information corresponding to the selected file content into the generated preview tag. By providing the method for generating the preview tag for the file content, when a user previews the file content, the user can also select local content in the file and mark the local content of the file to generate a new preview tag corresponding to the local content of the file, so that the subsequent user can conveniently and rapidly preview the part of content, and along with the increasing number of preview tags in the file, the subsequent user can more conveniently obtain the file content to be previewed according to the preview tag.
Example six
Fig. 6 is a flowchart of a method for quickly previewing a file by a label according to a sixth embodiment of the present invention; in this embodiment, after writing the file ID information and the content offset information corresponding to the selected file content into the generated preview tag, the following steps are added: acquiring an existing preview tag; and repeatedly comparing the generated preview label with the existing preview label, and prompting a user to modify when the generated preview label is repeated with the existing preview label.
Correspondingly, the method for quickly previewing the file through the tag provided by the embodiment specifically comprises the following steps:
step 601, receiving a selection operation on file contents, and determining starting and ending positions of the selected file contents according to the selection operation.
Step 602, obtaining file ID information and content offset information corresponding to the selected file content.
Step 603, receiving a generating operation on the preview label, and generating the preview label according to the generating operation.
Step 604, writing the file ID information and the content offset information corresponding to the selected file content into the generated preview tag.
Step 605, acquiring the existing preview tag.
Because the new preview label may be repeated with the existing preview label, in order to avoid confusion of the correspondence between the preview label and the file content, when the user beats the preview label on the file content, the server side may read the existing preview label in the existing preview label library, so as to facilitate comparison of subsequent preview labels, and avoid the user generating repeated preview labels, thereby preventing confusion of the subsequent user when previewing the file through the preview label.
Step 606, comparing the generated preview label with the existing preview label repeatedly, and prompting the user to modify when the generated preview label is repeated with the existing preview label.
For example, after the user generates a new preview tag, the server compares whether the new preview tag is repeated with the existing preview tag, and when the new preview tag manually input by the user is repeated with the existing preview tag, the server may prompt the user to modify the new manually input tag. After the user modifies the preview tag, the server may repeat the above comparison step until the new preview tag is not repeated with the existing preview tag, and then enter the new preview tag into the preview tag library.
Step 607, receiving a selection operation of the preview tag, and determining a preview loading rule according to the selection operation.
Step 608, obtaining the information of the preview label selected by the selection operation.
Step 609, acquiring file ID information and content offset information in the information of the selected preview tag.
Step 610, obtaining a data block corresponding to the file according to the file ID information, and obtaining a data block corresponding to the file content of the selected preview tag and a data position in the data block according to the content offset information.
Step 611, loading the data position of the file content corresponding to the selected preview tag according to the preview loading rule, so as to display the file content corresponding to the selected preview tag.
In this embodiment, after writing the file ID information and the content offset information corresponding to the selected file content into the generated preview tag, the following steps are added: acquiring an existing preview tag; and repeatedly comparing the generated preview label with the existing preview label, and prompting a user to modify when the generated preview label is repeated with the existing preview label. The generated preview tag is compared with the existing preview tag in a repeated mode, the fact that the user generates the repeated preview tag can be avoided, confusion is prevented when a subsequent user previews the file through the preview tag, and stability and accuracy of file previewing operation through the preview tag are improved.
Example seven
Fig. 7 is a schematic structural diagram of a device for quickly previewing a file by a label according to a seventh embodiment of the present invention; as shown in fig. 7, the apparatus for quickly previewing a file by a label includes:
the receiving module 701 receives a selection operation of the preview tag, and determines a preview loading rule according to the selection operation.
And the acquiring module 702 is configured to acquire information of the preview tag selected by the selecting operation.
A reading module 703, configured to obtain file ID information and content offset information in the information of the selected preview tag.
And the positioning module 704 is configured to obtain a data block corresponding to the file according to the file ID information, and obtain a data block corresponding to the content of the file and a data position in the data block according to the content offset information.
And the loading module 705 is configured to load the data location of the file content corresponding to the selected preview tag according to the preview loading rule, so as to display the file content corresponding to the selected preview tag.
According to the device for quickly previewing the file through the tag, provided by the embodiment, the selection operation of the preview tag is received, and the preview loading rule is determined according to the selection operation. And obtaining the data block of the file corresponding to the selected preview label according to the content offset information after obtaining the file ID information and the content offset information in the information of the preview label selected by the selection operation and obtaining the data block of the file corresponding to the file according to the file ID information. And finally, loading the data position of the file content corresponding to the selected preview tag according to the preview loading rule so as to display the file content corresponding to the selected preview tag. Therefore, the preview loading of the file content is realized, the occupation of the file content loading to resources is reduced, the file content loading efficiency is improved, and the preview operation efficiency of a user is improved.
On the basis of the above embodiments, the receiving module is configured to:
receiving a selection operation of a preview tag;
acquiring a selection mode of the selected preview tag, and determining a preview loading rule according to the selection mode; wherein, the selection mode comprises selection from files and direct selection.
On the basis of the above embodiments, the preview loading rule includes:
when the selection mode is that the file is selected from the files, loading the data positions of the file contents corresponding to the selected preview tags according to the sequence of the file contents corresponding to the selected preview tags in the files;
when the selection mode is direct selection or both direct selection and file selection, classifying the selected preview tags according to the file ID information corresponding to the selected preview tags to obtain tag groups with the same file ID information, sequentially sorting the tag groups according to the number of corresponding data blocks from small to large, and loading the data positions corresponding to the tag groups according to the sorting of the number of the data blocks from small to large; and in the tag group with the same file ID information, loading the data positions corresponding to the tag group according to the sequence of the file contents corresponding to the selected preview tag in the file.
On the basis of the above embodiments, the device further includes:
and the processing module is used for receiving the opening operation of the file if the preview label is not selected, and loading the data position of the file according to the opening operation so as to display the file content corresponding to the file.
On the basis of the above embodiments, the device further includes:
the monitoring module is used for receiving the selected operation on the file content and determining the starting position and the ending position of the selected file content according to the selected operation;
the extraction module is used for acquiring file ID information and content offset information corresponding to the selected file content;
the generating module is used for receiving the generating operation of the preview label and generating the preview label according to the generating operation;
and the writing module is used for writing the file ID information and the content offset information corresponding to the selected file content into the generated preview tag.
On the basis of the above embodiments, the device further includes:
the checking module is used for acquiring the existing preview tag;
and the comparison module is used for repeatedly comparing the generated preview label with the existing preview label, and prompting a user to modify when the generated preview label is repeated with the existing preview label.
The device for quickly previewing the file through the tag provided by the embodiment of the invention can execute the method for quickly previewing the file through the tag provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example eight
Fig. 8 is a schematic structural diagram of a mesh disc according to an eighth embodiment of the present invention. Fig. 8 shows a block diagram of an exemplary network disk 12 suitable for use in implementing embodiments of the present invention. The net tray 12 shown in fig. 8 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 8, the network disk 12 is embodied in the form of a general purpose computing device. Components of the net tray 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The network disk 12 typically includes a variety of computer system readable media. Such media can be any available media that can be accessed by the network disk 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The network disk 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 8, commonly referred to as a "hard disk drive"). Although not shown in fig. 8, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The network disk 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the network disk 12, and/or any devices (e.g., network card, modem, etc.) that enable the network disk 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the network disk 12 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 20. As shown, network adapter 20 communicates with other modules of network disk 12 via bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with the network disk 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the method for quickly previewing files by tags provided by the embodiment of the present invention.
Example nine
A ninth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method of previewing a file by tab as in any of the above embodiments.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (8)

1. A method for quickly previewing a document by a label, comprising:
receiving a selection operation of a preview tag, and determining a preview loading rule according to the selection operation;
acquiring information of the preview label selected by the selection operation;
acquiring file ID information and content offset information in the information of the selected preview tag;
obtaining a data block corresponding to the file according to the file ID information, and obtaining the data block corresponding to the file content of the selected preview tag and the data position in the data block according to the content offset information;
Loading the data position of the file content corresponding to the selected preview tag according to the preview loading rule so as to display the file content corresponding to the selected preview tag;
the receiving the selection operation of the preview tag, determining the preview loading rule according to the selection operation, including:
receiving a selection operation of a preview tag;
acquiring a selection mode of the selected preview tag, and determining a preview loading rule according to the selection mode; wherein the selection mode comprises selection and direct selection from files;
the preview loading rule comprises:
when the selection mode is that the file is selected from the files, loading the data positions of the file contents corresponding to the selected preview tags according to the sequence of the file contents corresponding to the selected preview tags in the files;
when the selection mode is direct selection or both direct selection and file selection, classifying the selected preview tags according to the file ID information corresponding to the selected preview tags to obtain tag groups with the same file ID information, sequentially sorting the tag groups according to the number of corresponding data blocks from small to large, and loading the data positions corresponding to the tag groups according to the sorting of the number of the data blocks from small to large; and in the tag group with the same file ID information, loading the data positions corresponding to the tag group according to the sequence of the file contents corresponding to the selected preview tag in the file.
2. The method of claim 1, wherein after the receiving a selection operation of a preview tag, determining a preview loading rule according to the selection operation, the method further comprises:
and if the preview label is not selected, receiving an opening operation of the file, and loading the data position of the file according to the opening operation so as to display the file content corresponding to the file.
3. The method according to claim 1, wherein the method further comprises:
receiving a selection operation of file contents, and determining the starting position and the ending position of the selected file contents according to the selection operation;
acquiring file ID information and content offset information corresponding to the selected file content;
receiving a generating operation of the preview label, and generating the preview label according to the generating operation;
and writing the file ID information and the content offset information corresponding to the selected file content into the generated preview tag.
4. The method of claim 3, wherein after writing the file ID information and the content offset information corresponding to the selected file content to the generated preview tag, the method further comprises:
Acquiring an existing preview tag;
and repeatedly comparing the generated preview label with the existing preview label, and prompting a user to modify when the generated preview label is repeated with the existing preview label.
5. An apparatus for quickly previewing documents via labels, comprising:
the receiving module is used for receiving selection operation of the preview tag and determining a preview loading rule according to the selection operation; the receiving the selection operation of the preview tag, determining the preview loading rule according to the selection operation, and comprises the following steps:
receiving a selection operation of a preview tag;
acquiring a selection mode of the selected preview tag, and determining a preview loading rule according to the selection mode; wherein the selection mode comprises selection and direct selection from files;
the preview loading rule comprises:
when the selection mode is that the file is selected from the files, loading the data positions of the file contents corresponding to the selected preview tags according to the sequence of the file contents corresponding to the selected preview tags in the files;
when the selection mode is direct selection or both direct selection and file selection, classifying the selected preview tags according to the file ID information corresponding to the selected preview tags to obtain tag groups with the same file ID information, sequentially sorting the tag groups according to the number of corresponding data blocks from small to large, and loading the data positions corresponding to the tag groups according to the sorting of the number of the data blocks from small to large; in the tag group with the same file ID information, loading the data positions corresponding to the tag group according to the sequence of the file contents corresponding to the selected preview tag in the file;
The acquisition module is used for acquiring the information of the preview tag selected by the selection operation;
the reading module is used for acquiring file ID information and content offset information in the information of the selected preview tag;
the positioning module is used for obtaining a data block corresponding to the file according to the file ID information and obtaining the data block corresponding to the file content of the selected preview tag and the data position in the data block according to the content offset information;
and the loading module is used for loading the data position of the file content corresponding to the selected preview tag according to the preview loading rule so as to display the file content corresponding to the selected preview tag.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the monitoring module is used for receiving the selected operation on the file content and determining the starting position and the ending position of the selected file content according to the selected operation;
the extraction module is used for acquiring file ID information and content offset information corresponding to the selected file content;
the generating module is used for receiving the generating operation of the preview label and generating the preview label according to the generating operation;
And the writing module is used for writing the file ID information and the content offset information corresponding to the selected file content into the generated preview tag.
7. A net tray, the net tray comprising:
one or more processors;
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of fast previewing documents by tags as claimed in any one of claims 1 to 4.
8. A storage medium containing computer executable instructions which when executed by a computer processor are for performing the method of previewing files by tab of any of claims 1-4.
CN202310300805.7A 2023-03-27 2023-03-27 Method, device, network disk and storage medium for quickly previewing file through label Active CN116010356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310300805.7A CN116010356B (en) 2023-03-27 2023-03-27 Method, device, network disk and storage medium for quickly previewing file through label

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310300805.7A CN116010356B (en) 2023-03-27 2023-03-27 Method, device, network disk and storage medium for quickly previewing file through label

Publications (2)

Publication Number Publication Date
CN116010356A CN116010356A (en) 2023-04-25
CN116010356B true CN116010356B (en) 2023-08-11

Family

ID=86025195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310300805.7A Active CN116010356B (en) 2023-03-27 2023-03-27 Method, device, network disk and storage medium for quickly previewing file through label

Country Status (1)

Country Link
CN (1) CN116010356B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360233A (en) * 2008-09-18 2009-02-04 中兴通讯股份有限公司 Method for network digital video preview label generation, playing method and system
CN103024010A (en) * 2012-12-03 2013-04-03 北京奇虎科技有限公司 File display device and method
WO2017076200A1 (en) * 2015-11-04 2017-05-11 阿里巴巴集团控股有限公司 Method and device for dividing webpage tabs into groups
CN109561323A (en) * 2019-01-02 2019-04-02 武汉珈铭汉象教育科技有限公司 MP4 file encryption, decryption method and device
CN110493641A (en) * 2019-08-06 2019-11-22 东软集团股份有限公司 A kind of video file encryption and decryption method and device
CN111212317A (en) * 2020-01-15 2020-05-29 清华大学 Skip navigation method for video playing
CN111915392A (en) * 2020-06-30 2020-11-10 深圳市世强元件网络有限公司 Classified display method for search results of electronic commerce platform of components
CN114817969A (en) * 2022-06-30 2022-07-29 天津联想协同科技有限公司 Method, device, terminal and storage medium for previewing network disk drive letter file

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360233A (en) * 2008-09-18 2009-02-04 中兴通讯股份有限公司 Method for network digital video preview label generation, playing method and system
CN103024010A (en) * 2012-12-03 2013-04-03 北京奇虎科技有限公司 File display device and method
WO2017076200A1 (en) * 2015-11-04 2017-05-11 阿里巴巴集团控股有限公司 Method and device for dividing webpage tabs into groups
CN109561323A (en) * 2019-01-02 2019-04-02 武汉珈铭汉象教育科技有限公司 MP4 file encryption, decryption method and device
CN110493641A (en) * 2019-08-06 2019-11-22 东软集团股份有限公司 A kind of video file encryption and decryption method and device
CN111212317A (en) * 2020-01-15 2020-05-29 清华大学 Skip navigation method for video playing
CN111915392A (en) * 2020-06-30 2020-11-10 深圳市世强元件网络有限公司 Classified display method for search results of electronic commerce platform of components
CN114817969A (en) * 2022-06-30 2022-07-29 天津联想协同科技有限公司 Method, device, terminal and storage medium for previewing network disk drive letter file

Also Published As

Publication number Publication date
CN116010356A (en) 2023-04-25

Similar Documents

Publication Publication Date Title
US9954964B2 (en) Content suggestion for posting on communication network
US10353943B2 (en) Computerized system and method for automatically associating metadata with media objects
US20060080603A1 (en) Method and apparatus for utilizing an object model to manage document parts for use in an electronic document
US9792034B2 (en) Multi-source, multi-destination data transfers
CN106980665B (en) Data dictionary implementation method and device and data dictionary management system
CN114003963B (en) Method, system, network disk and storage medium for file authorization under enterprise network disk
US20140297687A1 (en) System and method for declaring contents of mobile devices as records
CN114416667A (en) Method and device for rapidly sharing network disk file, network disk and storage medium
US20160371244A1 (en) Collaboratively reconstituting tables
US11429494B2 (en) File backup based on file type
US9507790B2 (en) Providing file indexes and per-file viewing modes within a file management application
CN113886339B (en) Method and device for selecting out-link file, network disk and storage medium
CN113760894A (en) Data calling method and device, electronic equipment and storage medium
CN116010356B (en) Method, device, network disk and storage medium for quickly previewing file through label
Pledge et al. Process and progress: working with born-digital material in the Wendy Cope Archive at the British Library
CN113688139B (en) Object storage method, gateway, device and medium
CN111897778B (en) Computer file merging method, device and system
US20110125710A1 (en) Efficient change tracking of transcoded copies
CN116016553B (en) File sharing method and device based on network disk, network disk and storage medium
CN112632266B (en) Data writing method and device, computer equipment and readable storage medium
US8782519B1 (en) Systems and methods for archiving and displaying lengthy documents based on content priority levels
CN115248803B (en) Collection method and device suitable for network disk file, network disk and storage medium
CN116011410B (en) Method, device, network disk and storage medium for realizing document call content
US9361285B2 (en) Method and apparatus for storing notes while maintaining document context
CN115408985B (en) Online spreadsheet worksheet name display method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant