CN115329168A - Java-based batch hooking method for file original texts and file entries - Google Patents

Java-based batch hooking method for file original texts and file entries Download PDF

Info

Publication number
CN115329168A
CN115329168A CN202210460027.3A CN202210460027A CN115329168A CN 115329168 A CN115329168 A CN 115329168A CN 202210460027 A CN202210460027 A CN 202210460027A CN 115329168 A CN115329168 A CN 115329168A
Authority
CN
China
Prior art keywords
file
archive
original
hooking
entries
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210460027.3A
Other languages
Chinese (zh)
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.)
Yozosoft Co ltd
Original Assignee
Yozosoft 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 Yozosoft Co ltd filed Critical Yozosoft Co ltd
Priority to CN202210460027.3A priority Critical patent/CN115329168A/en
Publication of CN115329168A publication Critical patent/CN115329168A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/93Document management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/113Details of archiving
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a Java-based method for hooking archive texts and archive entries in batches, which comprises the steps of entering an archive data receiving page; uploading an archive original text compression packet to be hooked and a directory file to be hooked; analyzing the directory file to obtain file entry fields, configuring a storage path of the file original text, and setting the names of the storage folders and the file entry fields correspondingly; reading and analyzing the file folder levels in the file compression package one by one, matching the original file names or the original file folder names with file entry fields in the directory files, successfully matching, reading the original files corresponding to the file entries, successfully hooking the file entries with the corresponding file original files, importing the data into a corresponding file library in a file system, and if hooking which is not successfully matched occurs, sending the corresponding data to a failure library for a file administrator to check and correct. The invention can dynamically configure the storage path corresponding to the original file text according to the sorted hierarchical path, and the storage modes of different files can be dynamically configured to realize batch hanging of file data.

Description

Java-based batch hooking method for file original texts and file entries
Technical Field
The invention relates to the technical field of file hooking, in particular to a Java-based batch hooking method of file originals and file entries.
Background
With the development and application of internet technology, the archive management business of China also gradually moves from traditional paper-based management to electronic archive management. How to conveniently and quickly arrange and accurately realize the hooking and utilization of electronic files and file catalogs of the files becomes an important subject of the digitization work of paper files, but the existing electronic files have the problems of data import errors and data loss easily due to improper hooking modes.
Therefore, a technical solution is needed to better solve the above problems.
Disclosure of Invention
In order to solve the technical problems in the prior art, the invention discloses a Java-based method for hooking archive texts and archive entries in batches, which is characterized by comprising the steps of entering an archive data receiving page; uploading an archive original text compression packet to be hooked and a directory file to be hooked; analyzing the directory file to obtain a file entry field, configuring a storage path of the file original text, and setting the name of the storage path folder corresponding to the file entry field; reading and analyzing the folder levels of the original file storage path one by one, matching the folder names with file entry fields in the directory files, successfully matching, reading the original files corresponding to the file entries, successfully hooking the file entries with the corresponding original file, importing the data into a corresponding archive library in the archive system, and if hooking is not successfully matched, sending the corresponding data to a failed library for a file administrator to check and correct.
Furthermore, the existing file entries in the file system can be hooked with the supplementary file original Wen Piliang, the file entries and folders in the original compressed packet do not need to be set in a field corresponding mode again when the supplementary original text is hooked in batch, and the original texts in the supplementary original compressed packet can be read one by one and hooked in batch according to the configured corresponding relationship.
Furthermore, the archive original text is stored by adopting multilevel directory hierarchical management and a naming method.
Furthermore, the directory file supports reading and hooking of files in various formats, including xls, xlsx, dbf and csv, and the file original text is of a compressed package type.
Further, the corresponding relationship between the fields of the archive original text storage folder and the fields of the directory file comprises one-to-one correspondence between the fields, one field corresponding to multi-field combination and one field corresponding to multi-field splitting.
Furthermore, when the file directory file is connected with the file original text compressed package in batch, the file original text can be asynchronously converted into a PDF format or an OFD format or OCR identification is selected according to requirements.
According to another aspect of the present invention, the present invention also provides a computing device, which includes a processor and a memory, wherein the memory stores program instructions, and the program instructions are executed by the processor to implement the batch hooking method of Java-based archive primitive and archive entries of the above aspect of the present invention.
According to another aspect of the present invention, the present invention further provides a readable medium, in which program instructions are stored, and the program instructions are executed to implement the batch hooking method of Java-based archive originals and archive entries of the above aspect of the present invention.
The Java-based batch hanging method for the archive texts and the archive entries has one or more of the following beneficial effects:
(1) The file original text compression package stores the electronic original text by adopting a multilevel directory hierarchical management and naming method, so that the file original text compression package is more convenient and efficient to arrange.
(2) The storage paths corresponding to the original files can be dynamically configured according to the sorted hierarchical paths, and the storage modes of different files can be dynamically configured to realize batch hooking of file data.
(3) The file entries and the file original texts can be imported simultaneously and hooked in batches, and the existing file entries can be hooked in batches by supplementing the original texts according to the configuration of the storage path.
(4) The file directory file can support reading and hooking of files in various formats, including xls, xlsx, dbf, csv and the like, the file original text is a compressed package type and can support batch hooking of a plurality of files, and the file type can be selected according to actual conditions for hooking.
(5) When the file catalog and the file original text are hooked in batch, hooking can be selected according to needs and asynchronously converted into PDF and OFD formats, OCR recognition can also be selected, and subsequent management, storage and utilization of files are facilitated.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a flowchart of a Java-based method for bulk hooking archive texts and archive entries according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an operation interface for filling in relevant fields of original documents and document entries of a document and uploading relevant documents in a document system according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an operation interface of a directory hierarchical storage path for configuring file entries and corresponding file scripts in a file system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an operation interface for configuring corresponding fields when batch hooking is performed in the archive system and the batch hooking is imported into the corresponding archive repository in the embodiment of the present invention;
FIG. 5 is a diagram illustrating a batch hooking operation interface for supplementing file originals in a file system according to an embodiment of the present invention.
Detailed Description
To further explain the technical means and effects of the present invention adopted to achieve the predetermined objects, the following detailed description of the embodiments, structures, features and effects according to the present invention will be given with reference to the accompanying drawings and preferred embodiments.
Referring to fig. 1, the present invention discloses a Java-based method for hooking archive texts and archive entries in batches, comprising the following steps,
s1: a file system administrator logs in a file system and enters a file data receiving page;
s2: filling corresponding fields to record the transfer condition, and uploading directory files needing to be connected and file original text compressed packets to be connected;
specifically, a system administrator adds file collection data receiving authority to a file administrator in a file system; the method comprises the following steps that a file administrator sorts and uploads a file original text and a directory sorted below the line through a file data receiving page, the directory file supports reading and hooking of files in various formats, including xls, xlsx, dbf and csv, and the file original text is of a compressed package type.
S3: respectively configuring storage paths of file entries and file original texts, analyzing entry fields in a file directory and displaying the entry fields in a pop-up frame, configuring the storage paths of the file original texts, and setting the names of the storage path folders corresponding to the file entry fields according to association rules;
the archive original text is stored by adopting multilevel directory hierarchical management and a naming method, so that the archive original text is more convenient and efficient to arrange.
The folder name of the file original text storage path is composed of entry fields in the directory to be hooked, and specifically, the corresponding relation between the fields of the file compressed packet and the fields of the directory file comprises that the fields are in one-to-one correspondence, a plurality of fields are merged and correspond to one field, and a field is split and correspond to a plurality of fields.
S4: reading and analyzing the file folder levels in the file compression package one by one, matching the original file folder names with file entry fields in the directory files, successfully matching, reading the original texts corresponding to the file entries, successfully hooking the file entries with the corresponding file original texts, importing the data into a corresponding file library in the file system, and if hooking which is not successfully matched occurs, sending the corresponding data to a failure library for a file administrator to check and proofread
Specifically, referring to fig. 2, fig. 3 and fig. 4, the corresponding relationship between the directory file and the fields of the compressed file package is configured according to the parsing conditions, the storage path corresponding to the original file is dynamically configured, after the configuration is completed, the file system further parses the directory file and analyzes the compressed file package, the entries and the original file are matched according to the configuration of the corresponding storage path, if the entries are not matched, the entries are recorded in the failure repository, so that the failure repository is checked and checked by the file administrator, and the successfully hooked data is collected in the corresponding file repository.
When the file directory file and the file original text compressed packet are connected in batch, the file original text can be asynchronously converted into a PDF format and an OFD format or OCR identification is selected according to requirements.
Further, referring to fig. 5, supplementary file source Wen Piliang hooking can be performed on file entries existing in the file system, when supplementary source text is hooked in batch, it is no longer necessary to perform field corresponding setting on file entries and folder hierarchical relationship in the source text compression package, and according to the configured corresponding relationship, the source text in the supplementary source text compression package is read one by one and hooked in batch.
The following are the relevant java code fragments of the batch hooking interface:
Figure BDA0003620207200000041
Figure BDA0003620207200000051
in another embodiment, the present invention further provides a computing device comprising a processor and a memory, wherein the memory stores program instructions, and the program instructions are executed by the processor to implement the batch hooking method of Java-based archive originals and archive entries as described above.
In another embodiment, the present invention further provides a readable medium, in which program instructions are stored, and the program instructions are executed to implement the batch hooking method of Java-based archive originals and archive entries as described above.
In summary, the batch hooking method for the archive texts and the archive entries based on Java of the present invention has one or more of the following advantages:
(1) The file original text compression package stores the electronic original text by adopting a multilevel directory hierarchical management and naming method, so that the file original text compression package is more convenient and efficient to arrange.
(2) The storage paths corresponding to the original files can be dynamically configured according to the sorted hierarchical paths, and the storage modes of different files can be dynamically configured to realize batch hooking of file data.
(3) The file items and the file original texts can be simultaneously imported and hooked in batches, and the existing file items can be supplemented with the original text in batches according to the configuration of the storage path.
(4) The file directory file can support reading and hanging of files with various formats, including xls, xlsx, dbf, csv and the like, the file original text is a compressed package type, can support batch hanging of a plurality of files, and can select file types to be hung according to actual conditions.
(5) When the file catalog and the file original text are hooked in batch, hooking can be selected according to needs and asynchronously converted into PDF and OFD formats, OCR recognition can also be selected, and subsequent management, storage and utilization of files are facilitated.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example" or "some examples" or the like are intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples described in this specification can be combined and combined by one skilled in the art.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are exemplary and not to be construed as limiting the present invention and that variations, modifications, and alterations to the above embodiments may occur to those of ordinary skill in the art and are within the scope of the present invention.

Claims (8)

1. A Java-based method for hooking original files and file entries in batches is characterized by comprising,
entering an archive data receiving page;
uploading an archive original text compression packet to be hooked and a directory file to be hooked;
analyzing the directory file to obtain a file entry field, configuring a storage path of the file original text, and setting the name of the storage path folder corresponding to the file entry field;
reading and analyzing the folder levels of the original file storage path one by one, matching the folder names with file entry fields in the directory files, successfully matching, reading the original files corresponding to the file entries, successfully hooking the file entries with the corresponding original file, importing the data into a corresponding archive library in the archive system, and if hooking is not successfully matched, sending the corresponding data to a failed library for a file administrator to check and correct.
2. The Java-based batch hooking method of archive texts and archive entries according to claim 1, wherein supplementary archive texts Wen Piliang can be hooked on existing archive entries in the archive system, and when supplementary original text batch hooking is performed, field corresponding setting of the archive entries and folders in original text compression packages is not required to be performed again, and the original texts in the supplementary original text compression packages can be read one by one and hooked in batch according to the configured corresponding relationship.
3. The Java-based archive original text and archive entry batch hooking method according to claim 1, wherein the archive original text is stored by adopting multilevel directory hierarchical management and naming method.
4. The Java-based bulk hooking method of archive originals and archive entries according to claim 1, wherein the directory file supports reading and hooking of files of various formats including xls, xlsx, dbf and csv, and the archive originals are of a compressed package type.
5. The Java-based bulk hooking method of archive originals and archive entries according to claim 1, wherein the field correspondence between the fields of the archive original storage folder and the fields of the directory file comprises a field-to-field correspondence, a multi-field merging correspondence with one field, and a field splitting correspondence with multiple fields.
6. The Java-based bulk hooking method of archive texts and archive entries according to claim 1, wherein when the archive directory files are bulk hooked with archive text compressed packets, the archive texts can be asynchronously converted into PDF format, OFD format or OCR recognition is selected as required.
7. A computing device comprising a processor and a memory, the memory having stored therein program instructions that are executed by the processor to implement the batch hooking method of Java based archive originals and archive entries of any of claims 1-6.
8. A readable medium having stored therein program instructions which are executed to implement a batch hooking method of Java based archive originals and archive entries according to any of claims 1-6.
CN202210460027.3A 2022-04-24 2022-04-24 Java-based batch hooking method for file original texts and file entries Pending CN115329168A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210460027.3A CN115329168A (en) 2022-04-24 2022-04-24 Java-based batch hooking method for file original texts and file entries

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210460027.3A CN115329168A (en) 2022-04-24 2022-04-24 Java-based batch hooking method for file original texts and file entries

Publications (1)

Publication Number Publication Date
CN115329168A true CN115329168A (en) 2022-11-11

Family

ID=83916319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210460027.3A Pending CN115329168A (en) 2022-04-24 2022-04-24 Java-based batch hooking method for file original texts and file entries

Country Status (1)

Country Link
CN (1) CN115329168A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117891786A (en) * 2024-03-15 2024-04-16 浙江研通信息科技有限公司 File path hooking method and system based on Monte Carlo algorithm

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117891786A (en) * 2024-03-15 2024-04-16 浙江研通信息科技有限公司 File path hooking method and system based on Monte Carlo algorithm
CN117891786B (en) * 2024-03-15 2024-05-31 浙江研通信息科技有限公司 File path hooking method and system based on Monte Carlo algorithm

Similar Documents

Publication Publication Date Title
US8316358B2 (en) Method and apparatus for processing XML for display on a mobile device
CN101546342B (en) Method and system for implementing search service
US8135750B2 (en) Efficiently describing relationships between resources
JP4373721B2 (en) Method and system for encoding markup language documents
US20050223035A1 (en) MPV file creating method and apparatus, and storage medium therefor
US8787616B2 (en) Document processing system and method
US20070299880A1 (en) Document Management Server, Document Management Method, Computer Readable Medium, Computer Data Signal, and System For Managing Document Use
US10367962B2 (en) Information processing system, information processing apparatus, and information processing method
US11070697B2 (en) Information processing system, information processing apparatus, and information processing method
CN111949611B (en) File processing method, system, device and medium
CN115329168A (en) Java-based batch hooking method for file original texts and file entries
CN110737630A (en) Method and device for processing electronic archive file, computer equipment and storage medium
US20110107198A1 (en) Information processing apparatus, storage medium, and information processing method
CA2632810C (en) Automatic package conformance validation
US20030101199A1 (en) Electronic document processing system
US10956659B1 (en) System for generating templates from webpages
US9158493B2 (en) Page description language package file preview
US7860989B2 (en) Efficient transformation of interchange format messages
CN117194322A (en) File classification management method, system and computing device
CN115269511A (en) Generic electronic file packaging method and device
CN110196965B (en) Method and device for converting XML (extensive Makeup language) file into Word file
US8610925B2 (en) Image forming apparatus and method of distinguishing XPS file
CN111143450A (en) Method and device for importing data
CN112564959A (en) Log acquisition method, device and equipment and readable storage medium
CN114118051A (en) Method, device, electronic equipment and medium for analyzing ofd invoice file

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