JP2005216251A - Variable length multi-format converting apparatus and method and file transfer system using the same - Google Patents

Variable length multi-format converting apparatus and method and file transfer system using the same Download PDF

Info

Publication number
JP2005216251A
JP2005216251A JP2004025853A JP2004025853A JP2005216251A JP 2005216251 A JP2005216251 A JP 2005216251A JP 2004025853 A JP2004025853 A JP 2004025853A JP 2004025853 A JP2004025853 A JP 2004025853A JP 2005216251 A JP2005216251 A JP 2005216251A
Authority
JP
Japan
Prior art keywords
format
item
file
format conversion
record
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.)
Granted
Application number
JP2004025853A
Other languages
Japanese (ja)
Other versions
JP4205603B2 (en
Inventor
Tetsuo Norimatsu
哲生 乘松
Hiroshi Komoto
大志 向本
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.)
NEC Corp
NEC Solution Innovators Ltd
Original Assignee
NEC Corp
NEC Solution Innovators 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 NEC Corp, NEC Solution Innovators Ltd filed Critical NEC Corp
Priority to JP2004025853A priority Critical patent/JP4205603B2/en
Publication of JP2005216251A publication Critical patent/JP2005216251A/en
Application granted granted Critical
Publication of JP4205603B2 publication Critical patent/JP4205603B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a variable length multi-format converting apparatus and method and file transfer system using the same in which a format can be converted even if record length of each of records is a variable length in the case of converting formats of records in electronic data comprised of a plurality of records in different formats. <P>SOLUTION: The variable length multi-format converting apparatus includes: a format conversion definition file storage section 2 for storing a format conversion definition file indicating rules of format conversion; a file read section 11 for reading data of a conversion target file for the unit of a record; a format specification section 12 for specifying a format of each of the read records based on the format conversion definition file; an item extraction section 13 for extracting contents of items included in the records of which the formats are specified, based on the format conversion definition file; and a format conversion processing section 14 for converting the format of the conversion target file for each item based on the format conversion definition file. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、フォーマット形式が異なる複数のレコードで構成される電子データのそれぞれのレコードのフォーマットを変換する方法及びこれを用いたファイル転送システムに関し、各レコードのレコード長が可変長であってもフォーマット形式を変換可能な可変長マルチフォーマット変換方法及びこれを用いたファイル転送システムに関する。   The present invention relates to a method for converting the format of each record of electronic data composed of a plurality of records having different format formats, and a file transfer system using the method, and formats even if the record length of each record is variable The present invention relates to a variable length multi-format conversion method capable of converting a format and a file transfer system using the same.

従来、複数のレコードで構成される電子データは、各レコードのレコードサイズが固定長であれば、各レコードのフォーマット形式が異なっていても(すなわち、マルチフォーマットであっても)各レコードのフォーマット形式を変換した上で転送できた。   Conventionally, electronic data composed of a plurality of records, if the record size of each record is a fixed length, even if the format format of each record is different (that is, even if it is multi-format), the format format of each record We were able to transfer after converting.

しかし、各レコードのレコードサイズが可変長である場合には、各レコードのフォーマット形式を変換した上で転送することはできなかった。   However, when the record size of each record is variable, it is impossible to transfer after converting the format of each record.

複数のレコードからなる電子データのフォーマット形式を変換する従来技術としては、特許文献1に開示される「フォーマット変換装置及び方法」及び特許文献2に開示される「データ変換装置」がある。
特開2001−184190号公報 特開平11−296510号公報
Conventional techniques for converting the format format of electronic data composed of a plurality of records include a “format conversion apparatus and method” disclosed in Patent Document 1 and a “data conversion apparatus” disclosed in Patent Document 2.
JP 2001-184190 A Japanese Patent Laid-Open No. 11-296510

特許文献1に開示される発明は、変換元データの各項目の桁数を指定することで、各レコードを特定してフォーマット形式を変換している。しかし、レコードサイズが可変長である場合には、各項目の桁数も変動してしまうため、これを桁数として指定することは容易ではない。
また、特許文献1に開示される発明は、フォーマット形式が異なるレコードが混在する電子データ(すなわちマルチフォーマットデータ)のフォーマット形式を変換することはできない。
In the invention disclosed in Patent Document 1, the format is converted by specifying each record by specifying the number of digits of each item of the conversion source data. However, when the record size is variable length, the number of digits of each item also varies, so it is not easy to specify this as the number of digits.
The invention disclosed in Patent Document 1 cannot convert the format format of electronic data (that is, multi-format data) in which records having different format formats are mixed.

また、特許文献2に開示される発明は、固定長データからなる変換元ファイルを読み込んで、レイアウトパラメータに基づいて可変長データからなるファイルに変換して出力するものである。しかし、特許文献2に記載の発明は、可変長項目を抽出する際に、項目ごとに任意の項目区切り文字を指定することはできない。また、ファイル内のレコードは単一のフォーマット形式でなければならず、異なるフォーマット形式のレコードが混在するマルチフォーマット形式のファイルを変換することはできない。
すなわち、上記特許文献2に記載の発明は、変換元のファイルが単一のフォーマット形式のレコードで構成されていなければフォーマット変換を行うことができない。すなわち変換元のファイルがマルチフォーマット形式のファイルである場合には、フォーマットを変換することはできなかった。
The invention disclosed in Patent Document 2 reads a conversion source file composed of fixed-length data, converts the file into a file composed of variable-length data based on a layout parameter, and outputs the file. However, the invention described in Patent Document 2 cannot specify an arbitrary item delimiter for each item when extracting variable length items. In addition, the records in the file must be in a single format, and a multi-format file in which records of different format formats are mixed cannot be converted.
In other words, the invention described in Patent Document 2 cannot perform format conversion unless the conversion source file is composed of a single format record. That is, when the conversion source file is a multi-format file, the format cannot be converted.

これら固定長マルチフォーマット変換のみのファイル転送システムでは、転送対象のファイルがレコードごとにフォーマット構成やレコード長が異なる場合には、ファイル内容の解析を行うプログラムが別途必要となる。そして、ファイルの数や情報量のよっては、個々のファイルごとに解析プログラムが必要となり、プログラムが複雑で大規模なものとなってしまう。これは、システムの運用や保守の面で管理者に大きな負担を強いることとなる。   In these fixed length multi-format conversion only file transfer systems, if the transfer target file has a different format configuration and record length for each record, a separate program for analyzing the file contents is required. Depending on the number of files and the amount of information, an analysis program is required for each individual file, and the program becomes complicated and large-scale. This places a heavy burden on the administrator in terms of system operation and maintenance.

このように、従来は、フォーマット形式が異なる複数のレコードで構成される電子データのそれぞれのレコードのフォーマットを変換する場合に、各レコードのレコード長が可変長であるとフォーマット形式を変換することはできなかった。   Thus, conventionally, when the format of each record of electronic data composed of a plurality of records having different format formats is converted, the format format cannot be converted if the record length of each record is variable. could not.

本発明はかかる問題に鑑みて為されたものであり、フォーマット形式が異なる複数のレコードで構成される電子データのそれぞれのレコードのフォーマットを変換する場合に、各レコードのレコード長が可変長であってもフォーマット形式を変換できる可変長マルチフォーマット変換装置及び方法並びにこれを用いたファイル転送システムを提供することを目的とする。   The present invention has been made in view of such problems. When converting the format of each record of electronic data composed of a plurality of records having different format formats, the record length of each record is variable. It is an object of the present invention to provide a variable length multi-format conversion apparatus and method capable of converting a format format and a file transfer system using the same.

上記目的を達成するため、本発明は、第1の態様として、フォーマット変換の法則を示すフォーマット変換定義情報を記憶する手段と、変換対象ファイルのデータをレコード単位で読み込む手段と、読み込んだ各レコードのフォーマット形式を、フォーマット変換定義情報に基づいて特定する手段と、フォーマット形式を特定した各レコードに含まれる各項目の内容を、フォーマット変換定義情報に基づいて抽出する手段と、フォーマット変換定義情報に基づいて、変換対象ファイルのフォーマット形式を各項目ごとに変換する手段とを有する可変長マルチフォーマット変換装置を提供するものである。   In order to achieve the above object, the present invention provides, as a first aspect, means for storing format conversion definition information indicating a format conversion rule, means for reading data of a file to be converted in record units, and each record read For identifying the format format based on the format conversion definition information, means for extracting the contents of each item included in each record identifying the format format based on the format conversion definition information, and format conversion definition information Based on this, a variable-length multi-format conversion device having means for converting the format of the conversion target file for each item is provided.

上記本発明の第1の態様においては、フォーマット形式を変換した変換対象ファイルを、外部装置へ送信する手段をさらに有することがより好ましい。または、変換対象ファイルは、外部装置から受信したデータであることが好ましい。   In the first aspect of the present invention, it is more preferable to further include means for transmitting the conversion target file whose format has been converted to an external device. Alternatively, the conversion target file is preferably data received from an external device.

上記本発明の第1の態様のいずれの構成においても、フォーマット変換定義情報は、項目の区切りを表すコードと各項目のデータ型と各項目のサイズとをそれぞれ示す情報を変換前後のフォーマット形式について組にした情報であることが好ましい。   In any of the configurations of the first aspect of the present invention, the format conversion definition information includes a code indicating the delimiter of the item, information indicating the data type of each item, and the size of each item. It is preferable that the information is a set.

また、上記目的を達成するため、本発明は、第2の態様として、フォーマット変換の法則を示すフォーマット変換定義情報を記憶装置に登録するステップと、変換対象ファイルのデータをレコード単位で読み込むステップと、読み込んだ各レコードのフォーマット形式を、フォーマット変換定義情報に基づいて特定するステップと、フォーマット形式を特定した各レコードに含まれる各項目の内容を、フォーマット変換定義情報に基づいて抽出するステップと、フォーマット変換定義情報に基づいて、各項目ごとに変換対象ファイルのフォーマット形式を変換するステップとを有する可変長マルチフォーマット変換方法を提供するものである。   In order to achieve the above object, the present invention provides, as a second aspect, a step of registering format conversion definition information indicating a law of format conversion in a storage device, and a step of reading data of a file to be converted in record units. A step of specifying the format format of each read record based on the format conversion definition information; a step of extracting the contents of each item included in each record specifying the format format based on the format conversion definition information; The present invention provides a variable length multi-format conversion method including a step of converting a format format of a file to be converted for each item based on format conversion definition information.

上記本発明の第2の態様においては、フォーマット形式を変換した変換対象ファイルを外部装置へ送信するステップを最後段にさらに有することがより好ましい。または、外部装置から変換対象ファイルを受信するステップを、変換対象ファイルのデータをレコード単位で読み込むステップよりも前段に有することがより好ましい。   In the second aspect of the present invention, it is more preferable that the last stage further includes a step of transmitting the conversion target file whose format has been converted to the external device. Alternatively, it is more preferable that the step of receiving the conversion target file from the external device is provided before the step of reading the data of the conversion target file in record units.

上記本発明の第2の態様のいずれの構成においても、フォーマット変換定義情報は、項目の区切りを表すコードと各項目のデータ型と各項目のサイズとをそれぞれ示す情報を変換前後のフォーマット形式について組にした情報であることが好ましい。   In any configuration of the second aspect of the present invention, the format conversion definition information includes a code indicating an item delimiter, information indicating the data type of each item, and information indicating the size of each item. It is preferable that the information is a set.

また、上記目的を達成するため、本発明は、第3の態様として、転送元の情報処理装置と転送先の情報処理装置とがネットワークを介して接続されたファイル転送システムであって、転送元の情報処理装置は、フォーマット変換の法則を示すフォーマット変換定義情報を記憶する手段と、転送対象ファイルのデータをレコード単位で読み込む手段と、読み込んだ各レコードのフォーマットをフォーマット変換定義情報に基づいて特定する手段と、フォーマット形式を特定した各レコードに含まれる各項目の内容を、フォーマット変換定義情報に基づいて抽出する手段と、フォーマット変換定義情報に基づいて各項目ごとに転送対象ファイルのフォーマット形式を変換する手段と、各レコードのフォーマット形式を変換した転送対象ファイルを、転送先の情報処理装置へ送信する手段とを有することを特徴とするファイル転送システムを提供するものである。   In order to achieve the above object, according to a third aspect of the present invention, there is provided a file transfer system in which a transfer source information processing apparatus and a transfer destination information processing apparatus are connected via a network. The information processing apparatus includes: means for storing format conversion definition information indicating a format conversion rule; means for reading data of a transfer target file in units of records; and specifying the format of each read record based on the format conversion definition information Means for extracting the contents of each item included in each record specifying the format format based on the format conversion definition information, and the format format of the transfer target file for each item based on the format conversion definition information. The file to be transferred and the transfer target file with the format format of each record converted It is intended to provide a file transfer system, characterized in that it comprises a means for transmitting to the destination of the information processing apparatus.

また、上記目的を達成するため、本発明は、第4の態様として、転送元の情報処理装置と転送先の情報処理装置とがネットワークを介して接続されたファイル転送システムであって、転送先の情報処理装置は、フォーマット変換の法則を示すフォーマット変換定義情報を記憶する手段と、転送元の情報処理装置から受信した転送対象ファイルのデータをレコード単位で読み込む手段と、読み込んだ各レコードのフォーマットをフォーマット変換定義情報に基づいて特定する手段と、フォーマット形式を特定した各レコードに含まれる各項目の内容を、フォーマット変換定義情報に基づいて抽出する手段と、フォーマット変換定義情報に基づいて各項目ごとに転送対象ファイルのフォーマット形式を変換する手段とを有することを特徴とするファイル転送システムを提供するものである。   In order to achieve the above object, according to a fourth aspect of the present invention, there is provided a file transfer system in which a transfer source information processing apparatus and a transfer destination information processing apparatus are connected via a network. The information processing apparatus includes: means for storing format conversion definition information indicating a format conversion law; means for reading data of a transfer target file received from a transfer source information processing apparatus in units of records; and format of each read record Means based on the format conversion definition information, means for extracting the contents of each item included in each record specifying the format format based on the format conversion definition information, and each item based on the format conversion definition information Each of which has a means for converting the format of the transfer target file. There is provided a yl transfer system.

上記本発明の第3の態様又は第4の態様においては、フォーマット変換定義情報は、項目の区切りを表すコードと各項目のデータ型と各項目のサイズとをそれぞれ示す情報を変換前後のフォーマット形式について組にした情報であることが好ましい。   In the third aspect or the fourth aspect of the present invention, the format conversion definition information includes a code indicating the item delimiter, information indicating the data type of each item, and the size of each item. It is preferable that the information is a group.

本発明によれば、フォーマット形式が異なる複数のレコードで構成される電子データのそれぞれのレコードのフォーマットを変換する場合に、各レコードのレコード長が可変長であってもフォーマット形式を変換できる可変長マルチフォーマット変換装置及び方法並びにこれを用いたファイル転送システムを提供できる。   According to the present invention, when converting the format of each record of electronic data composed of a plurality of records having different format formats, the variable format can be converted even if the record length of each record is variable. A multi-format conversion apparatus and method and a file transfer system using the same can be provided.

〔発明の原理〕
本発明にかかるマルチフォーマットファイル変換方法は、変換元データのフォーマット形式を定義する際に、フォーマットを構成する要素(本明細書中では項目とも表記する。)単位に区切りコードを定義する。
[Principle of the Invention]
In the multi-format file conversion method according to the present invention, when a format format of conversion source data is defined, a delimiter code is defined for each element (also referred to as an item in the present specification) constituting the format.

これにより、変換元データが可変長の項目を含むとしても、区切りコードで挟まれた部分(ただし、先頭は最初の区切りコードまでの部分。また、末尾は最後の区切りコードよりも後の部分。)を一つの項目として扱えるようになるため、変換元のデータが可変長のレコードを含むとしても、フォーマット形式を変換できる。すなわち、各項目の区切り位置を固定せず、区切りコードを用いて動的に定めることで、可変長のレコードを含むとしてもフォーマット形式を変換できる。   As a result, even if the conversion source data includes variable-length items, the part between the delimiter codes (however, the beginning is the part up to the first delimiter code. The end is the part after the last delimiter code. ) Can be handled as one item, the format can be converted even if the conversion source data includes a variable-length record. That is, the format format can be converted even if a variable-length record is included, by dynamically determining using a delimiter code without fixing the delimiter position of each item.

以下、本発明を好適に実施した実施の形態について図面を用いて説明する。   DESCRIPTION OF EXEMPLARY EMBODIMENTS Embodiments in which the invention is suitably implemented will be described below with reference to the drawings.

〔第1の実施形態〕
本発明を好適に実施した第1の実施形態について説明する。図1に、本実施形態にかかるファイル転送システムの構成を示す。このファイル転送システムは、可変長マルチフォーマット変換機能を備えたファイル転送システムであり、ファイルの送信元であるローカルホスト6とファイルを受信する側であるリモートホスト8とがネットワーク(通信回線)7を介して接続された構成である。
[First Embodiment]
A first embodiment in which the present invention is suitably implemented will be described. FIG. 1 shows a configuration of a file transfer system according to the present embodiment. This file transfer system is a file transfer system having a variable length multi-format conversion function, and a local host 6 that is a file transmission source and a remote host 8 that is a file receiving side establish a network (communication line) 7. It is the structure connected via.

ローカルホスト6は、フォーマット変換部1、フォーマット変換定義ファイル格納部2、送信ファイル格納部3及び転送制御部5を有する。フォーマット変換部1は、後に詳細に説明する可変長マルチフォーマット変換方法によってファイルのフォーマットを変換する。フォーマット変換定義ファイル格納部2は、フォーマット変換部1がファイルのフォーマットを変換する際の法則を示す情報(フォーマット変換定義ファイル)を格納している。送信ファイル格納部3は、リモートホスト8へ転送しようとするファイルが格納されている。転送制御部5は、ネットワーク7を介してファイルをリモートホスト8へ送信する動作を制御する。   The local host 6 includes a format conversion unit 1, a format conversion definition file storage unit 2, a transmission file storage unit 3, and a transfer control unit 5. The format conversion unit 1 converts the format of the file by a variable length multi-format conversion method described in detail later. The format conversion definition file storage unit 2 stores information (format conversion definition file) indicating a rule when the format conversion unit 1 converts a file format. The transmission file storage unit 3 stores a file to be transferred to the remote host 8. The transfer control unit 5 controls the operation of transmitting a file to the remote host 8 via the network 7.

フォーマット変換部1は、ファイル読み込み部11、フォーマット特定部12、項目抽出部13、フォーマット変換処理部14及び転送要求部15を備えており、これらを用いて可変長マルチフォーマット変換を実行する。   The format conversion unit 1 includes a file reading unit 11, a format identification unit 12, an item extraction unit 13, a format conversion processing unit 14, and a transfer request unit 15, and executes variable length multi-format conversion using these.

ファイル読み込み部11は、送信ファイル格納部3に格納されているレコードを読み出して、フォーマット変換部1内に読み込む。フォーマット特定部12は、ファイル読み込み部11が送信ファイル格納部3から読み込んだレコードのフォーマット形式を、フォーマット変換定義ファイル格納部2から読み出したフォーマット抽出定義21に従って特定する。項目抽出部13は、フォーマット特定部12が特定したフォーマット形式に基づいて、フォーマット変換部1内に読み込まれているレコードの項目を抽出する。フォーマット変換処理部14は、フォーマット特定部12が特定したフォーマット形式に応じた入力フォーマット定義22と変換後のフォーマット形式に応じた出力フォーマット定義23とをフォーマット変換定義ファイル格納部2から読み出し、これらに応じてレコードのフォーマット形式を変換する。転送要求部15は、フォーマット変換処理部14によってフォーマット形式が変換されたレコードの転送(換言すると、リモートホスト8への送信)を転送制御部5に要求する。   The file reading unit 11 reads the record stored in the transmission file storage unit 3 and reads it into the format conversion unit 1. The format specifying unit 12 specifies the format format of the record read by the file reading unit 11 from the transmission file storage unit 3 according to the format extraction definition 21 read from the format conversion definition file storage unit 2. The item extraction unit 13 extracts items of records read in the format conversion unit 1 based on the format format specified by the format specification unit 12. The format conversion processing unit 14 reads the input format definition 22 corresponding to the format format specified by the format specifying unit 12 and the output format definition 23 corresponding to the format format after conversion from the format conversion definition file storage unit 2, and Convert the record format accordingly. The transfer request unit 15 requests the transfer control unit 5 to transfer the record whose format has been converted by the format conversion processing unit 14 (in other words, transmission to the remote host 8).

次に、可変長マルチフォーマット変換方法を行う際に用いるフォーマット変換定義ファイルについて説明する。
図2に示すように、フォーマット変換定義ファイルは、フォーマット抽出定義21、入力フォーマット定義22、出力フォーマット定義23、入力項目定義24及び出力項目定義25をで構成される。フォーマット抽出定義21は、フォーマットを特定するための抽出条件や変換規則を定義する情報である。入力フォーマット定義22は、変換前のフォーマット形式を定義する情報である。出力フォーマット定義23は、変換後のフォーマット形式を定義する情報である。入力項目定義24は、入力レコードの要素である各項目を定義する情報である。出力項目定義25は、出力レコードの要素である各項目を定義する情報である。
Next, a format conversion definition file used when performing the variable length multi-format conversion method will be described.
As shown in FIG. 2, the format conversion definition file includes a format extraction definition 21, an input format definition 22, an output format definition 23, an input item definition 24, and an output item definition 25. The format extraction definition 21 is information that defines extraction conditions and conversion rules for specifying a format. The input format definition 22 is information that defines a format before conversion. The output format definition 23 is information that defines the format format after conversion. The input item definition 24 is information that defines each item that is an element of the input record. The output item definition 25 is information that defines each item that is an element of the output record.

フォーマット抽出定義21は、識別コードオフセット211、識別コードサイズ212、抽出条件213、入力フォーマット識別名214及び出力フォーマット識別名215で構成され、入力ファイルにおけるレコードの種類分複数個定義される。   The format extraction definition 21 includes an identification code offset 211, an identification code size 212, an extraction condition 213, an input format identification name 214, and an output format identification name 215, and a plurality of formats are defined for each type of record in the input file.

識別コードオフセット211は、レコードのフォーマット形式を特定するためのコード(識別コード)が格納されているレコード先頭からのオフセット値である。識別コードサイズ212は、識別コードのサイズ(データ量)を示す。抽出条件213は、識別コードに対するレコード抽出条件である。入力フォーマット識別名214は、抽出条件213を満たした場合のレコードのフォーマット定義を示す。出力フォーマット識別名215は、フォーマット変換後のレコードのフォーマット定義を示す。   The identification code offset 211 is an offset value from the beginning of the record in which a code (identification code) for specifying the format format of the record is stored. The identification code size 212 indicates the size (data amount) of the identification code. The extraction condition 213 is a record extraction condition for the identification code. The input format identification name 214 indicates the format definition of the record when the extraction condition 213 is satisfied. The output format identification name 215 indicates the format definition of the record after format conversion.

入力フォーマット定義22は、フォーマット識別名221、文字コード識別名222及び項目識別名223で構成される。フォーマット識別名221は、入力レコードのフォーマットの種類を示す情報である。文字コード識別名222は、入力レコードのフォーマットの文字列項目の文字コードを示す情報である。項目識別名223は、入力レコードの要素である項目の名称を示す情報である。項目識別名223は、入力レコードの中での出現順に並べて定義される。   The input format definition 22 includes a format identification name 221, a character code identification name 222, and an item identification name 223. The format identification name 221 is information indicating the format type of the input record. The character code identification name 222 is information indicating the character code of the character string item in the format of the input record. The item identification name 223 is information indicating the name of an item that is an element of the input record. The item identification names 223 are defined in the order of appearance in the input record.

出力フォーマット定義23は、入力フォーマット定義22と同様の構成であり、出力レコードのフォーマットに関して、入力フォーマット定義22と同様の情報を定義する。   The output format definition 23 has the same configuration as the input format definition 22, and defines the same information as the input format definition 22 regarding the format of the output record.

入力項目定義24及び出力項目定義25は、フォーマットの要素である項目についての情報を定義するものである。   The input item definition 24 and the output item definition 25 define information about items that are format elements.

入力項目定義24は、項目識別名241、項目データ型242、項目サイズ243及び項目区切りコード244で構成される。項目識別名241は、フォーマットの要素である項目に関する情報を定義する。項目識別名242は、項目の種類を示す名称を定義する。項目サイズ243は、固定長項目の場合の項目のサイズを示す。項目区切りコード244は、項目の区切りコードを示す。   The input item definition 24 includes an item identification name 241, an item data type 242, an item size 243, and an item delimiter code 244. The item identification name 241 defines information about an item that is an element of the format. The item identification name 242 defines a name indicating the type of item. The item size 243 indicates the size of an item in the case of a fixed length item. The item delimiter code 244 indicates an item delimiter code.

出力項目定義25は、入力項目定義24と同様の構成であり、出力レコードに関して入力項目定義24と同様の情報を定義する。   The output item definition 25 has the same configuration as the input item definition 24 and defines the same information as the input item definition 24 regarding the output record.

本実施形態にかかるファイル転送システムの動作について説明する。
ファイル送信側であるローカルホスト6は、送信元のファイルを送信ファイル格納部3からフォーマット変換部1に読み出し、可変長マルチフォーマット変換を行って出力レコードを生成する。この動作について、詳細に説明する。
The operation of the file transfer system according to this embodiment will be described.
The local host 6 on the file transmission side reads the transmission source file from the transmission file storage unit 3 to the format conversion unit 1 and performs variable length multi-format conversion to generate an output record. This operation will be described in detail.

ファイル読み込み部11は、送信ファイル格納部3に格納されている転送対象のファイルのデータをレコード単位又はブロック単位でフォーマット変換部1内に読み込む。以下、ファイル読み込み部11がフォーマット変換部1内に読み込んだデータを読み込みレコードという。   The file reading unit 11 reads the data of the transfer target file stored in the transmission file storage unit 3 into the format conversion unit 1 in record units or block units. Hereinafter, data read into the format conversion unit 1 by the file reading unit 11 is referred to as a read record.

次に、フォーマット特定部12は、読み込みレコードのフォーマットを特定する。図3に、フォーマット特定部12が読み込みレコードのフォーマットを特定する処理の流れを示す。まず、変数iを0にリセットし(ステップS101)、この値を1インクリメントする(ステップS102)。そして、フォーマット特定部12は、フォーマット変換定義ファイル格納部2からi番目(ここでは1番目)に格納されているフォーマット抽出定義21読み出して取得する(ステップS103)。   Next, the format specifying unit 12 specifies the format of the read record. FIG. 3 shows a flow of processing in which the format specifying unit 12 specifies the format of the read record. First, the variable i is reset to 0 (step S101), and this value is incremented by 1 (step S102). Then, the format specifying unit 12 reads and acquires the format extraction definition 21 stored in the i-th (here, the first) from the format conversion definition file storage unit 2 (step S103).

フォーマット変換定義ファイル格納部2からフォーマット抽出定義21を取得することができなかった場合には(ステップS104/No)、フォーマット特定部12はフォーマットを特定できないと判断して(ステップS108)、処理を終了する。   If the format extraction definition 21 cannot be obtained from the format conversion definition file storage unit 2 (No at Step S104), the format specifying unit 12 determines that the format cannot be specified (Step S108), and performs processing. finish.

フォーマット変換定義ファイル格納部2からフォーマット抽出定義21を取得できた場合には(ステップS104/Yes)、フォーマット特定部12は、取得したフォーマット抽出定義21に含まれる識別コードオフセット211と識別コードサイズ212とに従って、読み込みレコードから識別コードを抽出する(ステップS105)。   When the format extraction definition 21 can be acquired from the format conversion definition file storage unit 2 (Yes in step S104), the format specifying unit 12 determines the identification code offset 211 and the identification code size 212 included in the acquired format extraction definition 21. Then, an identification code is extracted from the read record (step S105).

図6に示す例においては、フォーマット変換定義ファイルのフォーマット抽出定義の識別コードオフセットが“1”で、識別コードサイズが“3”であるため、入力レコードの先頭から3バイトのデータが識別コードとなり、フォーマット変換部12が抽出する識別コードは“001”となる。   In the example shown in FIG. 6, since the identification code offset of the format extraction definition in the format conversion definition file is “1” and the identification code size is “3”, the data of 3 bytes from the beginning of the input record becomes the identification code. The identification code extracted by the format conversion unit 12 is “001”.

フォーマット変換部12は、フォーマット抽出定義21に含まれる抽出条件213を参照し、読み込みレコードから抽出した識別コードが抽出条件213を満たすか否かを判断する(ステップS106)。読み込みレコードから抽出した識別コードが抽出条件を満たす場合には(ステップS106/Yes)、フォーマット特定部12は、読み込みレコードのフォーマットは、フォーマット抽出定義21に含まれる入力フォーマット識別名214によって示される入力フォーマット定義22であると判断する。   The format conversion unit 12 refers to the extraction condition 213 included in the format extraction definition 21 and determines whether or not the identification code extracted from the read record satisfies the extraction condition 213 (step S106). If the identification code extracted from the read record satisfies the extraction condition (step S106 / Yes), the format specifying unit 12 determines that the format of the read record is the input indicated by the input format identification name 214 included in the format extraction definition 21. The format definition 22 is determined.

図6の例においては、フォーマット抽出定義21の抽出条件213が“001”であり、読み込みレコードから取得済みの識別コードが“001”であるため、フォーマット特定部12は、識別コードが抽出条件213を満たすと判断し、フォーマット抽出定義21の入力フォーマット識別名“INFORM01”が入力レコードのフォーマット形式であると判断する。   In the example of FIG. 6, since the extraction condition 213 of the format extraction definition 21 is “001” and the identification code acquired from the read record is “001”, the format specifying unit 12 determines that the identification code is the extraction condition 213. The input format identification name “INFO01” of the format extraction definition 21 is determined to be the format format of the input record.

一方、読み込みレコードから抽出した識別コードが、フォーマット抽出定義21に含まれる抽出条件213を満たさない場合には(ステップS106/No)、フォーマット特定部12は、変数iを1インクリメントしてステップS103以降の処理を繰り返す。
フォーマット抽出定義21は、フォーマット変換定義ファイル内に複数存在するため、フォーマット特定部12は、抽出条件を満たすまで変数1を順次変化させながら上記の処理を実行する。
On the other hand, when the identification code extracted from the read record does not satisfy the extraction condition 213 included in the format extraction definition 21 (No in step S106), the format specifying unit 12 increments the variable i by 1 and starts from step S103. Repeat the process.
Since a plurality of format extraction definitions 21 exist in the format conversion definition file, the format specifying unit 12 executes the above processing while sequentially changing the variable 1 until the extraction condition is satisfied.

フォーマット抽出定義21の全ての抽出条件213を参照しても、条件を満たすものが無かった場合(換言すると、変数iに対応するフォーマット抽出定義がフォーマット変換定義ファイル格納部2に存在しない場合)には(ステップS104/No、S108)、フォーマット形式を特定できないと判断して処理を終了する。   Even when all the extraction conditions 213 of the format extraction definition 21 are referred to, if none of the conditions is satisfied (in other words, the format extraction definition corresponding to the variable i does not exist in the format conversion definition file storage unit 2). (Steps S104 / No, S108), it is determined that the format format cannot be specified, and the process ends.

次に、項目抽出部13は、読み込みレコードから項目を抽出する。図4に、項目抽出部13の動作の流れを示す。
まず、項目抽出部13は、変数jを0にリセットし(ステップS201)、その値を1インクリメントする(ステップS202)。そして、項目抽出部13は、フォーマット特定部12によって決定された入力フォーマット定義22内に定義されているj番目(ここでは、1番目)の項目識別名223に対応する入力項目定義24を取得する(ステップS203)。
Next, the item extraction unit 13 extracts items from the read record. FIG. 4 shows an operation flow of the item extraction unit 13.
First, the item extraction unit 13 resets the variable j to 0 (step S201) and increments the value by 1 (step S202). Then, the item extraction unit 13 acquires the input item definition 24 corresponding to the j-th (here, the first) item identification name 223 defined in the input format definition 22 determined by the format specifying unit 12. (Step S203).

図6の例においては、フォーマット識別名“INFORM01”の先頭の項目識別名である“ITEM01”を取得する。   In the example of FIG. 6, “ITEM01”, which is the first item identification name of the format identification name “INFO01”, is acquired.

項目抽出部13は、入力フォーマット定義22から入力項目定義24を取得すると(ステップS204/Yes)、取得した入力項目定義24に項目サイズ243が設定されているか否かを確認する(ステップS205)。   When the item extraction unit 13 acquires the input item definition 24 from the input format definition 22 (step S204 / Yes), the item extraction unit 13 checks whether or not the item size 243 is set in the acquired input item definition 24 (step S205).

取得した入力項目定義24に項目サイズ243が設定されていない場合(ステップS205/No)、項目抽出部13は、入力項目定義24内の項目区切りコード244によって定義されたコードを読み込みレコードから検索する。
この検索に成功した場合(ステップS207/Yes)、項目抽出部13は、項目区切りコード244の直前までを一つの項目として抽出する(ステップS208)。
一方、検索に失敗した場合(ステップS207/No)、項目抽出部13は、読み込みレコードから項目を抽出できないと判断し(ステップS209)、処理を終了する。
If the item size 243 is not set in the acquired input item definition 24 (No in step S205), the item extraction unit 13 reads the code defined by the item delimiter code 244 in the input item definition 24 from the read record. .
When this search is successful (step S207 / Yes), the item extraction unit 13 extracts up to just before the item delimiter code 244 as one item (step S208).
On the other hand, if the search has failed (No at Step S207), the item extraction unit 13 determines that an item cannot be extracted from the read record (Step S209), and ends the process.

図6の例においては、入力項目定義“ITEM02”の項目区切りコードが0xFFと定義されているため、0xFFまでのデータを項目として抽出し、“AAAA・・・(可変長データ)”が項目として抽出される。   In the example of FIG. 6, since the item delimiter code of the input item definition “ITEM02” is defined as 0xFF, data up to 0xFF is extracted as an item, and “AAAAA (variable length data)” is an item. Extracted.

また、取得した入力項目定義24に項目サイズ243が設定されている場合(ステップS205/Yes)、読み込みレコードの先頭の項目を固定長の項目として項目サイズ243によって指定されたサイズまでを一つの項目として抽出する(ステップS206)。   If the item size 243 is set in the acquired input item definition 24 (step S205 / Yes), the first item of the read record is set as a fixed-length item up to the size specified by the item size 243. (Step S206).

図6の例においては、入力項目定義“ITEM01”の項目サイズが“3”と定義されているため、“001”が固定長の項目として抽出される。   In the example of FIG. 6, since the item size of the input item definition “ITEM01” is defined as “3”, “001” is extracted as a fixed-length item.

その後、上記同様にして入力フォーマット22内に定義されている全ての項目識別名223について項目の抽出を繰り返し実施する。全ての項目識別名223について処理を終えると(換言すると、j番目の入力項目定義24のを取得できなかった場合)(ステップS204/No)、処理を終了する。   Thereafter, extraction of items is repeatedly performed for all item identification names 223 defined in the input format 22 in the same manner as described above. When the processing is completed for all the item identification names 223 (in other words, when the j-th input item definition 24 cannot be acquired) (step S204 / No), the processing ends.

項目抽出部13が上記の処理を行うことにより、読み込みレコードからフォーマット形式に従って全ての項目を抽出できる。   When the item extraction unit 13 performs the above processing, all items can be extracted from the read record according to the format.

次に、フォーマット変換処理部14が読み込みレコードのフォーマット変換を実施する。図5に、フォーマット変換処理部14の動作の流れを示す。   Next, the format conversion processing unit 14 performs format conversion of the read record. FIG. 5 shows an operation flow of the format conversion processing unit 14.

まず、フォーマット変換処理部14は、変数kを0にリセットし(ステップS301)、その値を1インクリメントする(ステップS302)。そして、フォーマット変換処理部14は、フォーマット特定部12が特定したフォーマット抽出定義21に含まれる出力フォーマット識別名215が示す出力フォーマット定義23内に定義されているk番目(ここでは1番目)項目識別名234に対応する出力項目定義25を取得する(ステップS303)。   First, the format conversion processing unit 14 resets the variable k to 0 (step S301) and increments the value by 1 (step S302). Then, the format conversion processing unit 14 identifies the kth item (here, the first) defined in the output format definition 23 indicated by the output format identification name 215 included in the format extraction definition 21 specified by the format specifying unit 12. The output item definition 25 corresponding to the name 234 is acquired (step S303).

出力項目定義25の取得に成功すると(ステップS304/Yes)、フォーマット変換処理部14は、取得した出力項目定義25の項目識別名で、入力フォーマット定義21内の項目識別名を検索する(ステップS305)。   If the acquisition of the output item definition 25 is successful (step S304 / Yes), the format conversion processing unit 14 searches for the item identification name in the input format definition 21 with the item identification name of the acquired output item definition 25 (step S305). ).

検索に成功した場合(ステップS306/Yes)、フォーマット変換処理部14は、検索によって得た項目識別名が示す入力項目定義を入力レコードの入力項目定義とし、入力レコードから入力項目を抽出する(ステップS307)。
一方、検索に失敗した場合(ステップS306/No)、フォーマット変換処理部14は、変換定義不正(変換定義に誤りがある)とする(ステップS309)。
When the search is successful (step S306 / Yes), the format conversion processing unit 14 uses the input item definition indicated by the item identification name obtained by the search as the input item definition of the input record, and extracts the input item from the input record (step) S307).
On the other hand, if the search has failed (No in step S306), the format conversion processing unit 14 determines that the conversion definition is invalid (the conversion definition has an error) (step S309).

フォーマット変換処理部14は、抽出した入力項目について、ステップS303において取得済みの出力項目定義に定義されている項目データ型に変換し、出力項目を生成する(ステップS308)。   The format conversion processing unit 14 converts the extracted input item into the item data type defined in the output item definition acquired in step S303, and generates an output item (step S308).

図6の例では、出力フォーマット定義“OUTFORM01”の先頭の項目が“ITEM01”なので、対応する入力レコードの項目データは“001”となる。そして、入力項目定義“ITEM01”の項目データ型が“CHAR型”で出力項目定義“ITEM01”の項目データ型“INT型”であるので、入力データ“001”をCHAR型からINT型に型変換し、出力項目は0x00000001となる。
また、出力フォーマット定義“OUTFORM01”の2番目の項目識別名は“ITEM03”であるから、対応する入力レコードの項目データは“BBBB・・・・(可変長データ)”となる。
さらに、入力フォーマット定義、出力フォーマット定義の項目“ITEM03”はともに項目データ型がCHAR型であり、入力フォーマット定義“INFOROM01”の文字コード種別は“SJIS”、出力フォーマット定義“OUTFORM01”の文字コード種別は“JIPSE”であるから、項目“ITEM03”については、文字コードをSJISからJIPSEに変換して出力項目とする。
In the example of FIG. 6, since the first item of the output format definition “OUTFORM01” is “ITEM01”, the item data of the corresponding input record is “001”. Since the item data type of the input item definition “ITEM01” is “CHAR type” and the item data type “INT type” of the output item definition “ITEM01”, the input data “001” is converted from the CHAR type to the INT type. The output item is 0x00000001.
Also, since the second item identification name of the output format definition “OUTFORM01” is “ITEM03”, the item data of the corresponding input record is “BBBB... (Variable length data)”.
Furthermore, both the input format definition and output format definition items “ITEM03” have the item data type CHAR, the input format definition “INFOROM01” has the character code type “SJIS”, and the output format definition “OUTFORM01” has the character code type. Is “JIPSE”, so the item “ITEM03” is converted from SJIS to JIPSE as an output item.

その後、上記同様に、出力フォーマット定義23内に定義されている全ての項目識別名について出力項目の生成を繰り返し実行する。これにより、入力データの1レコード分のデータをフォーマット変換して出力レコードを生成できる。   Thereafter, as described above, output item generation is repeatedly executed for all item identification names defined in the output format definition 23. As a result, the output record can be generated by converting the format of the data of one record of the input data.

フォーマット変換処理部14によって出力レコードが生成されると、転送要求部15は、生成された出力レコードのレコード単位での転送を転送制御部5に対して要求する。   When the output record is generated by the format conversion processing unit 14, the transfer request unit 15 requests the transfer control unit 5 to transfer the generated output record in record units.

転送要求部15からの要求を受けた転送制御部5は、通信回線7を介して出力レコードをリモートホスト8へ送信する。リモートホスト8の転送制御部9は、通信回線7を介して受信した出力レコードを受信ファイル格納部4に書き込んで保存する。   Upon receiving the request from the transfer request unit 15, the transfer control unit 5 transmits an output record to the remote host 8 via the communication line 7. The transfer control unit 9 of the remote host 8 writes and saves the output record received via the communication line 7 in the received file storage unit 4.

転送要求部15は、フォーマット変換処理部14が生成する出力レコードの転送を順次転送制御部5に要求する。   The transfer request unit 15 sequentially requests the transfer control unit 5 to transfer the output records generated by the format conversion processing unit 14.

ファイル読み出し部11、フォーマット特定部12、項目抽出部13、フォーマット変換部14及び転送要求部15が、上記の動作を繰り返し行うことにより、図7に示すように可変長マルチフォーマットファイルのフォーマット形式を変換し、フォーマット形式を変換したファイルをリモートホスト8へ転送する。   The file reading unit 11, the format specifying unit 12, the item extracting unit 13, the format converting unit 14 and the transfer requesting unit 15 repeat the above operations, thereby changing the format format of the variable length multi-format file as shown in FIG. The converted file and the converted format are transferred to the remote host 8.

このように、本実施形態にかかるファイル転送システムは、可変長マルチフォーマットファイルのフォーマット形式を変換し、フォーマット形式を変換したファイルを転送できる。   As described above, the file transfer system according to the present embodiment can convert the format of the variable-length multi-format file and transfer the converted file.

〔第2の実施形態〕
本発明を好適に実施した第2の実施形態について説明する。図8に、本実施形態にかかるファイル転送システムの構成を示す。このファイル転送システムは、第1の実施形態と同様にローカルホスト6とリモートホスト8とがネットワーク7を介して接続された構成である。
[Second Embodiment]
A second embodiment in which the present invention is suitably implemented will be described. FIG. 8 shows a configuration of the file transfer system according to the present embodiment. This file transfer system has a configuration in which a local host 6 and a remote host 8 are connected via a network 7 as in the first embodiment.

本実施形態において、ローカルホスト6は、送信ファイル格納部3、ファイル読み込み部31、転送要求部32及び転送制御部5を有する。
送信ファイル格納部3及び転送制御部5は、第1の実施形態のものと同様である。ファイル読み出し部31は、送信ファイル格納部3に格納されているレコードを読み出す。転送要求部22は、ファイル読み出し部31によって送信ファイル格納部3から読み出されたファイルの転送(換言すると、リモートホスト8への送信)を転送制御部5に要求する。
In the present embodiment, the local host 6 includes a transmission file storage unit 3, a file reading unit 31, a transfer request unit 32, and a transfer control unit 5.
The transmission file storage unit 3 and the transfer control unit 5 are the same as those in the first embodiment. The file reading unit 31 reads a record stored in the transmission file storage unit 3. The transfer request unit 22 requests the transfer control unit 5 to transfer the file read from the transmission file storage unit 3 by the file reading unit 31 (in other words, transmission to the remote host 8).

また、本実施形態において、リモートホスト8は、フォーマット変換部1、フォーマット変換定義ファイル格納部2、受信ファイル格納部4及び転送制御部9をさらに有する。   In this embodiment, the remote host 8 further includes a format conversion unit 1, a format conversion definition file storage unit 2, a received file storage unit 4, and a transfer control unit 9.

フォーマット変換部1は、フォーマット特定部12、項目抽出部13及びフォーマット変換処理部14を備えており、これらを用いて可変長マルチフォーマット変換を実行する。   The format conversion unit 1 includes a format specifying unit 12, an item extraction unit 13, and a format conversion processing unit 14, and executes variable length multi-format conversion using these.

フォーマット特定部12は、転送制御部9から入力されたレコードのフォーマット形式を、フォーマット変換定義ファイル格納部2から読み出したフォーマット抽出定義21に従って特定する。項目抽出部13は、フォーマット特定部12が特定したフォーマット形式に基づいて、フォーマット変換部1内に読み込まれているレコードの項目を抽出する。フォーマット変換処理部14は、フォーマット特定部12が特定したフォーマット形式に応じた入力フォーマット定義22と変換後のフォーマット形式に応じた出力フォーマット定義23とをフォーマット変換定義ファイル格納部2から読み出し、これらに応じてレコードのフォーマット形式を変換する。   The format specifying unit 12 specifies the format format of the record input from the transfer control unit 9 according to the format extraction definition 21 read from the format conversion definition file storage unit 2. The item extraction unit 13 extracts items of records read in the format conversion unit 1 based on the format format specified by the format specification unit 12. The format conversion processing unit 14 reads the input format definition 22 corresponding to the format format specified by the format specifying unit 12 and the output format definition 23 corresponding to the format format after conversion from the format conversion definition file storage unit 2, and Convert the record format accordingly.

フォーマット変換定義ファイル格納部2、受信ファイル格納部4及び転送制御部9は、第1の実施形態と同様である。また、可変長マルチフォーマット変換方法を行う際に用いるフォーマット変換定義ファイルについても第1の実施形態と同様である。   The format conversion definition file storage unit 2, the received file storage unit 4, and the transfer control unit 9 are the same as those in the first embodiment. The format conversion definition file used when the variable length multi-format conversion method is performed is the same as that in the first embodiment.

本実施形態にかかるファイル転送システムの動作について説明する。
ファイル送信側であるローカルホスト6では、送信元のファイルをファイル読み出し部31がレコード単位で順次送信ファイル格納部3から読み出し、これを転送要求部22に受け渡す。転送制御部5は、転送要求部22からの要求に応じてネットワーク7を介してリモートホスト8へと送信する。
The operation of the file transfer system according to this embodiment will be described.
In the local host 6 on the file transmission side, the file reading unit 31 sequentially reads out the transmission source file from the transmission file storage unit 3 in units of records and transfers it to the transfer request unit 22. The transfer control unit 5 transmits to the remote host 8 via the network 7 in response to a request from the transfer request unit 22.

リモートホスト8の転送制御部9は、ローカルホスト6から送信されて来たレコードをフォーマット変換部1へと受け渡す。   The transfer control unit 9 of the remote host 8 passes the record transmitted from the local host 6 to the format conversion unit 1.

次に、フォーマット特定部12は、読み込みレコードのフォーマットを特定する。この動作は第1の実施形態にかかるファイル転送システムがローカルホスト側で行う処理と同様であるため、説明は省略する。   Next, the format specifying unit 12 specifies the format of the read record. Since this operation is the same as the processing performed on the local host side by the file transfer system according to the first embodiment, description thereof is omitted.

次に、項目抽出部13は、読み込みレコードから項目を抽出する。この動作についても、上記第1の実施形態にかかるファイル転送システムがローカルホスト側で行う処理と同様であるため、説明は省略する。   Next, the item extraction unit 13 extracts items from the read record. This operation is also the same as the processing performed on the local host side by the file transfer system according to the first embodiment, and a description thereof will be omitted.

次に、フォーマット変換処理部14が読み込みレコードのフォーマット変換を実施する。この動作についても、上記第1の実施形態にかかるファイル転送システムがローカルホスト側で行う処理と同様であるため、説明は省略する。
フォーマット変換処理部14は、フォーマット変化を終えたレコードを順次受信ファイル格納部4へと格納する。
このようにすることでも、可変長マルチフォーマットファイルのフォーマット形式を変換し、フォーマット形式を変換したファイルをリモートホスト8へ転送することが可能である。
Next, the format conversion processing unit 14 performs format conversion of the read record. This operation is also the same as the processing performed on the local host side by the file transfer system according to the first embodiment, and a description thereof will be omitted.
The format conversion processing unit 14 sequentially stores the records whose format has been changed in the received file storage unit 4.
In this way, it is possible to convert the format of the variable-length multi-format file and transfer the converted file to the remote host 8.

なお、上記各実施形態は、本発明の好適な実施の一例であって、本発明はこれらに限定されることはない。
例えば、図示したフォーマット変換定義ファイルはあくまでも一例であり、本発明をこれに限定するものではない。
このように、本発明は様々な変形が可能である。
Each of the above embodiments is an example of a preferred embodiment of the present invention, and the present invention is not limited to these.
For example, the format conversion definition file shown is merely an example, and the present invention is not limited to this.
As described above, the present invention can be variously modified.

本発明を好適に実施した第1の実施形態にかかるファイル転送システムの構成を示す図である。It is a figure which shows the structure of the file transfer system concerning 1st Embodiment which implemented this invention suitably. フォーマット変換定義ファイルの構成を示す図である。It is a figure which shows the structure of a format conversion definition file. 変換対象のファイルのフォーマットを特定する処理の流れを示す図である。It is a figure which shows the flow of the process which specifies the format of the file of conversion object. 変換対象ファイルの項目を抽出する処理の流れを示す図である。It is a figure which shows the flow of the process which extracts the item of a conversion object file. 変換対象ファイルのフォーマットを変換する処理の流れを示す図である。It is a figure which shows the flow of the process which converts the format of the conversion object file. フォーマット変換定義ファイルの構成例を示す図である。It is a figure which shows the structural example of a format conversion definition file. フォーマット変換の一例を示す図である。It is a figure which shows an example of format conversion. 本発明を好適に実施した第2の実施形態にかかるファイル転送システムの構成を示す図である。It is a figure which shows the structure of the file transfer system concerning 2nd Embodiment which implemented this invention suitably.

符号の説明Explanation of symbols

1 フォーマット変換部
2 フォーマット変換定義ファイル格納部
3 送信ファイル格納部
4 受信ファイル格納部
5、9 転送制御部
6 ローカルホスト
7 ネットワーク
8 リモートホスト
11 ファイル読み込み部
12 フォーマット特定部
13 項目抽出部
14 フォーマット変換処理部
15、32 転送要求部
31 ファイル読み出し部
21 フォーマット抽出定義
22 入力フォーマット定義
23 出力フォーマット定義
24 入力項目定義
25 出力項目定義
211 識別コードオフセット
212 識別コードサイズ
213 抽出条件
214 入力フォーマット識別名
215 出力フォーマット識別名
221、231 フォーマット識別名
222、232 文字コード種別
223、233、241、251 項目識別名
242、252 項目データ型
243、253 項目サイズ
244、254 項目区切りコード
DESCRIPTION OF SYMBOLS 1 Format conversion part 2 Format conversion definition file storage part 3 Transmission file storage part 4 Reception file storage part 5, 9 Transfer control part 6 Local host 7 Network 8 Remote host 11 File reading part 12 Format specification part 13 Item extraction part 14 Format conversion Processing unit 15, 32 Transfer request unit 31 File reading unit 21 Format extraction definition 22 Input format definition 23 Output format definition 24 Input item definition 25 Output item definition 211 Identification code offset 212 Identification code size 213 Extraction condition 214 Input format identification name 215 Output Format identification name 221 231 Format identification name 222 232 Character code type 223 233 241 251 Item identification name 242 252 Item data Type 243, 253 Item size 244, 254 Item separator code

Claims (11)

フォーマット変換の法則を示すフォーマット変換定義情報を記憶する手段と、
変換対象ファイルのデータをレコード単位で読み込む手段と、
読み込んだ前記各レコードのフォーマット形式を、前記フォーマット変換定義情報に基づいて特定する手段と、
フォーマット形式を特定した前記各レコードに含まれる各項目の内容を、前記フォーマット変換定義情報に基づいて抽出する手段と、
前記フォーマット変換定義情報に基づいて、前記変換対象ファイルのフォーマット形式を前記各項目ごとに変換する手段とを有する可変長マルチフォーマット変換装置。
Means for storing format conversion definition information indicating a law of format conversion;
Means for reading the data of the file to be converted in record units,
Means for specifying the format format of each read record based on the format conversion definition information;
Means for extracting the contents of each item included in each record specifying a format based on the format conversion definition information;
A variable-length multi-format conversion device comprising means for converting the format format of the conversion target file for each item based on the format conversion definition information.
フォーマット形式を変換した前記変換対象ファイルを、外部装置へ送信する手段をさらに有することを特徴とする請求項1記載の可変長マルチフォーマット変換装置。   2. The variable length multi-format conversion device according to claim 1, further comprising means for transmitting the file to be converted whose format has been converted to an external device. 前記変換対象ファイルは、外部装置から受信したデータであることを特徴とする請求項1記載の可変長マルチフォーマット変換装置。   2. The variable length multi-format conversion device according to claim 1, wherein the conversion target file is data received from an external device. 前記フォーマット変換定義情報は、前記項目の区切りを表すコードと前記各項目のデータ型と前記各項目のサイズとをそれぞれ示す情報を変換前後のフォーマット形式について組にした情報であることを特徴とする請求項1から3のいずれか1項記載の可変長マルチフォーマット変換装置。   The format conversion definition information is information in which a code indicating a delimiter of the item, information indicating the data type of each item, and information indicating the size of each item are grouped for the format format before and after the conversion. The variable length multi-format conversion device according to any one of claims 1 to 3. フォーマット変換の法則を示すフォーマット変換定義情報を記憶装置に登録するステップと、
変換対象ファイルのデータをレコード単位で読み込むステップと、
読み込んだ前記各レコードのフォーマット形式を、前記フォーマット変換定義情報に基づいて特定するステップと、
フォーマット形式を特定した前記各レコードに含まれる各項目の内容を、前記フォーマット変換定義情報に基づいて抽出するステップと、
前記フォーマット変換定義情報に基づいて、前記各項目ごとに前記変換対象ファイルのフォーマット形式を変換するステップとを有する可変長マルチフォーマット変換方法。
Registering format conversion definition information indicating a format conversion law in a storage device;
A step of reading the data of the file to be converted in record units,
Identifying the format format of each read record based on the format conversion definition information;
Extracting the contents of each item included in each record specifying the format format based on the format conversion definition information;
A variable length multi-format conversion method comprising: converting a format format of the conversion target file for each item based on the format conversion definition information.
フォーマット形式を変換した前記変換対象ファイルを外部装置へ送信するステップを最後段にさらに有することを特徴とする請求項5記載の可変長マルチフォーマット変換方法。   6. The variable length multi-format conversion method according to claim 5, further comprising a step of transmitting the file to be converted whose format has been converted to an external device at the last stage. 外部装置から前記変換対象ファイルを受信するステップを、前記変換対象ファイルのデータをレコード単位で読み込むステップよりも前段に有することを特徴とする請求項5記載の可変長マルチフォーマット変換方法。   6. The variable length multi-format conversion method according to claim 5, further comprising the step of receiving the conversion target file from an external device before the step of reading the data of the conversion target file in record units. 前記フォーマット変換定義情報は、前記項目の区切りを表すコードと前記各項目のデータ型と前記各項目のサイズとをそれぞれ示す情報を変換前後のフォーマット形式について組にした情報であることを特徴とする請求項5から7のいずれか1項記載の可変長マルチフォーマット変換方法。   The format conversion definition information is information in which a code indicating a delimiter of the item, information indicating the data type of each item, and information indicating the size of each item are grouped for the format format before and after the conversion. The variable length multi-format conversion method according to any one of claims 5 to 7. 転送元の情報処理装置と転送先の情報処理装置とがネットワークを介して接続されたファイル転送システムであって、
前記転送元の情報処理装置は、
フォーマット変換の法則を示すフォーマット変換定義情報を記憶する手段と、
転送対象ファイルのデータをレコード単位で読み込む手段と、
読み込んだ前記各レコードのフォーマットを前記フォーマット変換定義情報に基づいて特定する手段と、
フォーマット形式を特定した前記各レコードに含まれる各項目の内容を、前記フォーマット変換定義情報に基づいて抽出する手段と、
前記フォーマット変換定義情報に基づいて前記各項目ごとに前記転送対象ファイルのフォーマット形式を変換する手段と、
各レコードのフォーマット形式を変換した前記転送対象ファイルを、前記転送先の情報処理装置へ送信する手段とを有することを特徴とするファイル転送システム。
A file transfer system in which a transfer source information processing apparatus and a transfer destination information processing apparatus are connected via a network,
The transfer source information processing apparatus includes:
Means for storing format conversion definition information indicating a law of format conversion;
Means for reading the data of the transfer target file in record units,
Means for specifying the format of each read record based on the format conversion definition information;
Means for extracting the contents of each item included in each record specifying a format based on the format conversion definition information;
Means for converting the format format of the transfer target file for each item based on the format conversion definition information;
A file transfer system comprising: means for transmitting the transfer target file in which the format format of each record is converted to the information processing apparatus of the transfer destination.
転送元の情報処理装置と転送先の情報処理装置とがネットワークを介して接続されたファイル転送システムであって、
前記転送先の情報処理装置は、
フォーマット変換の法則を示すフォーマット変換定義情報を記憶する手段と、
前記転送元の情報処理装置から受信した転送対象ファイルのデータをレコード単位で読み込む手段と、
読み込んだ前記各レコードのフォーマットを前記フォーマット変換定義情報に基づいて特定する手段と、
フォーマット形式を特定した前記各レコードに含まれる各項目の内容を、前記フォーマット変換定義情報に基づいて抽出する手段と、
前記フォーマット変換定義情報に基づいて前記各項目ごとに前記転送対象ファイルのフォーマット形式を変換する手段とを有することを特徴とするファイル転送システム。
A file transfer system in which a transfer source information processing apparatus and a transfer destination information processing apparatus are connected via a network,
The information processing apparatus of the transfer destination is
Means for storing format conversion definition information indicating a law of format conversion;
Means for reading data of a transfer target file received from the transfer source information processing apparatus in units of records;
Means for specifying the format of each read record based on the format conversion definition information;
Means for extracting the contents of each item included in each record specifying a format based on the format conversion definition information;
A file transfer system comprising: means for converting the format format of the transfer target file for each item based on the format conversion definition information.
前記フォーマット変換定義情報は、前記項目の区切りを表すコードと前記各項目のデータ型と前記各項目のサイズとをそれぞれ示す情報を変換前後のフォーマット形式について組にした情報であることを特徴とする請求項9又は10記載のファイル転送システム。   The format conversion definition information is information in which a code indicating a delimiter of the item, information indicating the data type of each item, and information indicating the size of each item are grouped for the format format before and after the conversion. The file transfer system according to claim 9 or 10.
JP2004025853A 2004-02-02 2004-02-02 Variable length multi-format conversion apparatus and method, and file transfer system using the same Expired - Fee Related JP4205603B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004025853A JP4205603B2 (en) 2004-02-02 2004-02-02 Variable length multi-format conversion apparatus and method, and file transfer system using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004025853A JP4205603B2 (en) 2004-02-02 2004-02-02 Variable length multi-format conversion apparatus and method, and file transfer system using the same

Publications (2)

Publication Number Publication Date
JP2005216251A true JP2005216251A (en) 2005-08-11
JP4205603B2 JP4205603B2 (en) 2009-01-07

Family

ID=34908106

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004025853A Expired - Fee Related JP4205603B2 (en) 2004-02-02 2004-02-02 Variable length multi-format conversion apparatus and method, and file transfer system using the same

Country Status (1)

Country Link
JP (1) JP4205603B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010522915A (en) * 2007-03-26 2010-07-08 インターナショナル・ビジネス・マシーンズ・コーポレーション Data filtering method and computer program in storage manager for managing client data on data storage resource
JP2011013797A (en) * 2009-06-30 2011-01-20 Fujitsu Ltd Program and device for determining record length
JP2015035207A (en) * 2013-07-08 2015-02-19 株式会社エクサ Compression data processing program and compression data editing program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010522915A (en) * 2007-03-26 2010-07-08 インターナショナル・ビジネス・マシーンズ・コーポレーション Data filtering method and computer program in storage manager for managing client data on data storage resource
JP2011013797A (en) * 2009-06-30 2011-01-20 Fujitsu Ltd Program and device for determining record length
JP2015035207A (en) * 2013-07-08 2015-02-19 株式会社エクサ Compression data processing program and compression data editing program

Also Published As

Publication number Publication date
JP4205603B2 (en) 2009-01-07

Similar Documents

Publication Publication Date Title
US20030084405A1 (en) Contents conversion system, automatic style sheet selection method and program thereof
CN1526104B (en) Parsing structured data
KR20040014999A (en) Method and system for transforming an xml document to at least one xml document structured according to a subset of a set of xml grammar rules
EP1519279B1 (en) Document transformation system
CN103294652A (en) Data conversion method and system
US20070094278A1 (en) Data transfer services
CN101216828B (en) Image file conversion method and apparatus
EP1162820A2 (en) System and method of managing image data in network
JP4205603B2 (en) Variable length multi-format conversion apparatus and method, and file transfer system using the same
WO2000045274A1 (en) Data transmission method, computer-readable medium, and data transmission apparatus
JP4756003B2 (en) Data compression / transfer apparatus, data compression / transfer system, data compression / transfer method, and data compression / transfer program
JP2005301996A (en) Document integration apparatus, and method, program, and recording medium of same apparatus
US20010051899A1 (en) Document managing apparatus for managing transaction slip data in electronic commerce
WO2009139245A1 (en) Xml processing device, xml processing method, and xml processing program
JP2002149676A (en) Device and method for mark-up language document conversion
JP4316422B2 (en) Measurement data communication device, health information communication device, information acquisition device, measurement data communication system, measurement data communication device control method, information acquisition device control method, measurement data communication device control program, and computer-readable recording medium
JP5206675B2 (en) Structured document converter
JP4872285B2 (en) Document management apparatus, document management system, and document management method
JP7032716B2 (en) Registration information acquisition system, registration information acquisition method and program
JP2005333269A5 (en)
JP5534885B2 (en) Distributed data processing optimization device and distributed data processing optimization method
CN101930451A (en) Be used to store the method and apparatus of at least one inquiry data element of efficiently searching
SE518643C2 (en) Handling of meta information
KR100586595B1 (en) Method for receiving mapping using rule information in electronic data
JP2020042345A (en) Data processing apparatus, data processing method, and data processing program

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080408

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080609

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080715

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080911

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20081007

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20081016

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111024

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121024

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees