JP2008181234A - Information processor and method for retrieving comprehensive file in same device - Google Patents
Information processor and method for retrieving comprehensive file in same device Download PDFInfo
- Publication number
- JP2008181234A JP2008181234A JP2007012936A JP2007012936A JP2008181234A JP 2008181234 A JP2008181234 A JP 2008181234A JP 2007012936 A JP2007012936 A JP 2007012936A JP 2007012936 A JP2007012936 A JP 2007012936A JP 2008181234 A JP2008181234 A JP 2008181234A
- Authority
- JP
- Japan
- Prior art keywords
- file
- comprehensive
- internal
- system management
- name
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本発明は、例えば、通信ネットワークを介してサーバからファイルをダウロードすることにより取得されるコンテンツ(包括ファイル)の検索処理に用いて好適な、情報処理装置および同装置における包括ファイルの検索方法に関する。 The present invention relates to an information processing apparatus suitable for use in, for example, a search process for content (a comprehensive file) acquired by downloading a file from a server via a communication network, and a comprehensive file search method in the apparatus.
複数画像が纏めて格納されるファイルにおいて、画像アドレスを示すヘッダ情報から所望の画像を高速に探し出すことのできる画像再生装置が知られている(例えば、特許文献1参照)。 2. Description of the Related Art An image reproducing apparatus that can quickly find a desired image from header information indicating an image address in a file in which a plurality of images are stored collectively is known (see, for example, Patent Document 1).
一方、携帯端末の分野では、通信ネットワークを介してサーバから音楽ファイル等を取得することができるようになり、この場合、1個の音楽ファイルにもかかわらず、演奏しているミュージシャンの動画や静止画、さらには歌詞などといった多数のメディアファイルが関連ファイルとして提供され、したがって、この音楽ファイルを再生する場合には、これらの関連ファイルを共に処理することが望まれている。 On the other hand, in the field of portable terminals, music files can be obtained from a server via a communication network. In this case, a video or still image of a musician who is playing, despite a single music file, can be obtained. Many media files such as pictures and lyrics are provided as related files. Therefore, when playing back this music file, it is desired to process these related files together.
しかしながら、携帯端末においては、通信ネットワークからこのような音楽ファイル等が提供されることが想定されており、したがって、ユーザ側では課金の対象になるため、関連ファイルを含めた全てのファイルを確実に入手したいとの要望がある。また、提供側としても、関連ファイルを纏めて携帯端末に送信した方が、途中でファイルの一部が欠落して不完全なファイルを作ってしまわないようにしたいという要望がある。 However, it is assumed that such music files are provided from the communication network in the mobile terminal, and therefore, the user side is charged, so that all the files including the related files are surely included. There is a request to obtain. In addition, there is a demand from the provider side that a group of related files that are transmitted to a mobile terminal does not want to create an incomplete file due to missing part of the file.
このような要望を満たすため、通信ネットワークを用いて複数のファイルを伝送しやすいように包括ファイルとして一個のファイルに纏めたアーカイブ形式であるTAR(Tape Archival and Retrieval format)ファイルがある(例えば、特許文献2参照)。
携帯情報端末装置が通信ネットワークからTARファイルを取得して以降、再生処理を行う場合に限らず、内部に格納しているデータの一覧表示をしたい等、格納したデータを参照する機会も多い。そこで、検索処理を高速化する方法が求められるが、その方法については特許文献1、2のいずれにも開示されていない。 Since the portable information terminal device acquires the TAR file from the communication network, there are many opportunities to refer to the stored data, for example, in order to display a list of data stored inside the portable information terminal device. Therefore, a method for speeding up the search process is required, but this method is not disclosed in any of Patent Documents 1 and 2.
特許文献1に開示された技術は、TARファイルの解析によるものではなく、動画データ内のMPEG4(Moving Picture Experts Group level 4.)のヘッダ解析による検索方法が開示されたものであり、圧縮された数種類のデータの中から必要なMPEGファイルを探す必要があるため、目的のファイルを探すのに非常に大きな負荷を要することが予想される。特に、TARファイルのように複数のファイルが一個のファイル形式(包括ファイル)に纏められている場合、纏められている複数のファイル中のごく一部のデータだけを取得したいにもかかわらず、内部の纏められたデータをファイルとして扱えなかったため、包括ファイルの先頭から必要なデータについてサーチしなければならなかった。この場合、携帯情報端末装置は、広大なRAM領域を必要とし、展開のために多くの手間と時間を要し、使い勝手が悪いものであった。 The technique disclosed in Patent Document 1 is not based on the analysis of the TAR file, but a search method based on the header analysis of MPEG4 (Moving Picture Experts Group level 4.) in the video data is disclosed and compressed. Since it is necessary to search for a necessary MPEG file from several types of data, it is expected that a very large load is required to search for a target file. In particular, when multiple files are grouped into a single file format (inclusive file) like a TAR file, it is possible to obtain only a small portion of the data in the grouped files. Since the collected data could not be handled as a file, the necessary data had to be searched from the top of the comprehensive file. In this case, the portable information terminal device requires a vast RAM area, requires a lot of labor and time for deployment, and is unusable.
本発明は上記した課題を解決するためになされたものであり、包括ファイルに含まれる内部ファイルをファイルとして扱う仕組みを構築することにより、内部ファイルの検索処理の高速化、ならびにそのための負荷軽減はかった、情報処理装置および同装置における包括ファイルの検索方法を提供することを目的とする。 The present invention has been made to solve the above-described problems. By constructing a mechanism for handling internal files included in a comprehensive file as a file, the internal file search process can be accelerated and the load can be reduced. It is another object of the present invention to provide an information processing apparatus and a comprehensive file search method in the apparatus.
本発明の第1の観点の情報処理装置は、複数のファイルを格納する記憶部と、前記記憶部に格納されるファイルが指定されると、指定されたファイルを前記記憶部から検索し、当該ファイルの前記記憶部におけるアドレス情報を特定するファイルシステム管理部と、所定のイベントが生じると、当該イベントに応じたファイルを前記ファイルシステム管理部に対して検索指示を発行し、前記ファイルシステム管理部から該当するファイルのアドレス情報が抽出されると当該ファイルを読み出すプログラム実行制御部と、を備え、前記プログラム実行制御部は、複数のファイルを一つに纏めた包括ファイルに含まれる内部ファイルの一つを必要とする場合に、当該必要とする内部ファイルを、前記包括ファイルのファイル名を名称として有する仮想ディレクトリから検索指示する仮想パスを生成し、前記ファイルシステム管理部から前記仮想パスに応答して前記必要とする内部ファイルのアドレス情報が指定されると、当該指定されたアドレス情報にて特定される内部ファイルを前記記憶部から読み出し、前記ファイルシステム管理部は、前記仮想パスを受け取り、前記仮想ディレクトリの名称から包括ファイルのファイル名を特定して当該包括ファイルを検索し、検索された包括ファイルのヘッダ情報に基づいて前記必要とする内部ファイルを検索し、当該検索された内部ファイルの前記記憶部におけるアドレス情報を前記プログラム実行制御部に前記仮想パスの応答として引き渡す。 An information processing apparatus according to a first aspect of the present invention, when a storage unit that stores a plurality of files and a file stored in the storage unit are specified, searches for the specified file from the storage unit, and A file system management unit that identifies address information of the file in the storage unit, and when a predetermined event occurs, issues a search instruction to the file system management unit for a file corresponding to the event, and the file system management unit A program execution control unit that reads out the address information of the corresponding file from the file, and the program execution control unit is an internal file included in the comprehensive file in which a plurality of files are combined into one. The required internal file has the file name of the comprehensive file as a name. When a virtual path for instructing a search from the virtual directory is generated and the address information of the required internal file is specified in response to the virtual path from the file system management unit, it is specified by the specified address information. The internal file is read from the storage unit, the file system management unit receives the virtual path, specifies the file name of the comprehensive file from the name of the virtual directory, searches the comprehensive file, and searches the included file The required internal file is searched based on the header information, and address information in the storage unit of the searched internal file is delivered to the program execution control unit as a response to the virtual path.
また、本発明の情報処理装置において、前記仮想パスは、前記仮想ディレクトリ名の後に識別子を有するとともに、当該識別子に続いて前記必要なファイルのファイル名を有する文字列からなり、前記ファイルシステム管理部は、前記仮想パスを受け取ると、当該仮想パスにおける識別子以前のディレクトリ名を抽出し、当該ディレクトリ名に包括ファイルを示す拡張子を付して該当するファイルを検索するように構成してもよい。 In the information processing apparatus according to the present invention, the virtual path includes an identifier after the virtual directory name and a character string having a file name of the necessary file following the identifier, and the file system management unit When the virtual path is received, a directory name before the identifier in the virtual path may be extracted, and an extension indicating a comprehensive file may be attached to the directory name to search for the corresponding file.
また、本発明の情報処理装置において、前記包括ファイルは、当該包括ファイルに含まれる内部ファイルのファイル名とアドレス情報とが記述されるインデックスファイルを更に有し、前記ファイルシステム管理部は、前記必要とする内部ファイルを検索する際、特定された包括ファイルに含まれる前記インデックスファイルから、前記必要とするファイルのファイル名を検索し、当該ファイルのアドレス情報を抽出するように構成してもよい。 In the information processing apparatus of the present invention, the comprehensive file further includes an index file in which a file name and address information of an internal file included in the comprehensive file is described, and the file system management unit includes the necessary file When searching for an internal file, the file name of the required file may be searched from the index file included in the specified comprehensive file, and the address information of the file may be extracted.
また、本発明の情報処理装置において、前記包括ファイルは、当該包括ファイルに含まれる内部ファイルのファイル名と前記記憶部におけるアドレス情報とが少なくとも記述されたヘッダ情報を含み、前記ファイルシステム管理部は、前記必要とする内部ファイルを検索する際、特定された包括ファイルから前記必要とする内部ファイルのファイル名が記述されたヘッダ情報を検索し、当該検索されたヘッダ情報に記述されたアドレス情報に基づいて前記必要とされる内部ファイルのアドレス情報を抽出するように構成してもよい。 In the information processing apparatus of the present invention, the comprehensive file includes header information in which at least a file name of an internal file included in the comprehensive file and address information in the storage unit are described, and the file system management unit includes: When searching for the required internal file, header information in which the file name of the required internal file is described is searched from the specified comprehensive file, and the address information described in the searched header information is searched. Based on the above, the address information of the required internal file may be extracted.
また、本発明の情報処理装置において、前記ファイルシステム管理部は、前記包括ファイルを閉じる際、前記包括ファイルに含まれる内部ファイルの全てを閉じた後に包括ファイルを閉じるように構成してもよい。 In the information processing apparatus of the present invention, the file system management unit may be configured to close the comprehensive file after closing all internal files included in the comprehensive file when the comprehensive file is closed.
本発明の第2の観点の情報処理装置における包括ファイルの検索方法は、複数のファイルを格納する記憶部と、前記記憶部に格納されるファイルが指定されると、指定されたファイルを前記記憶部から検索し、当該ファイルの前記記憶部におけるアドレス情報を特定するファイルシステム管理部と、所定のイベントが生じると、当該イベントに応じたファイルを前記ファイルシステム管理部に対して検索指示を発行し、前記ファイルシステム管理部から該当するファイルのアドレス情報が抽出されると当該ファイルを読み出すプログラム実行制御部と、を備えた情報処理装置における包括ファイルの検索方法であって、前記プログラム実行制御部が、複数のファイルを一つに纏めた包括ファイルに含まれる内部ファイルの一つを必要とする場合に、当該必要とする内部ファイルを、前記包括ファイルのファイル名を名称として有する仮想ディレクトリから検索指示する仮想パスを生成する仮想パス生成ステップと、前記ファイルシステム管理部が、前記仮想パスを受け取り、前記仮想ディレクトリの名称から包括ファイルのファイル名を特定して当該包括ファイルを検索し、検索された包括ファイルのヘッダ情報に基づいて前記必要とする内部ファイルを検索し、当該検索された内部ファイルの前記記憶部におけるアドレス情報を前記プログラム実行制御部に前記仮想パスの応答として引き渡すアドレス情報返却ステップと、前記プログラム実行制御部が、前記ファイルシステム管理部から前記仮想パスに応答して前記必要とする内部ファイルのアドレス情報が指定されると、当該指定されたアドレス情報にて特定される内部ファイルを前記記憶部から読み出す内部ファイル取得ステップと、を備えている。 A comprehensive file search method in an information processing apparatus according to a second aspect of the present invention includes: a storage unit that stores a plurality of files; and a file that is stored in the storage unit is specified. A file system management unit that searches for the address information in the storage unit of the file, and issues a search instruction to the file system management unit for a file corresponding to the event when a predetermined event occurs A program execution control unit that reads out the file when address information of the corresponding file is extracted from the file system management unit, and a search method for a comprehensive file in an information processing apparatus, wherein the program execution control unit If you need one of the internal files included in a comprehensive file that combines multiple files A virtual path generating step for generating a virtual path for instructing search of the required internal file from a virtual directory having the file name of the comprehensive file as a name, and the file system management unit receives the virtual path, The file name of the comprehensive file is identified from the name of the virtual directory and the comprehensive file is searched, the required internal file is searched based on the header information of the searched comprehensive file, and the searched internal file An address information return step of passing address information in the storage unit to the program execution control unit as a response to the virtual path, and the program execution control unit responding to the virtual path from the file system management unit When the address information of the internal file is specified, It includes an internal file acquisition step of reading the internal file identified at a constant address information from the storage unit.
本発明によれば、包括ファイルに含まれる内部ファイルをファイルとして扱う仕組みを構築することにより、内部ファイルの検索処理の高速化、ならびにそのための負荷軽減はかった、情報処理装置および同装置における包括ファイルの検索方法を提供することができる。 According to the present invention, by constructing a mechanism for handling an internal file included in a comprehensive file as a file, the search processing of the internal file is speeded up, and the load for the information processing apparatus and the comprehensive file in the same device are reduced. A search method can be provided.
図1は、本発明の実施の形態に係る情報処理装置の内部構成を示すブロック図である。ここでは、情報処理装置として、携帯電話機等の携帯情報端末装置が例示されている。
図1に示されるように、携帯情報端末装置は、通信部11と、制御部12と、記憶部13と、音声処理部14と、表示部15と、操作部16とにより構成される。
FIG. 1 is a block diagram showing an internal configuration of the information processing apparatus according to the embodiment of the present invention. Here, a portable information terminal device such as a mobile phone is exemplified as the information processing device.
As shown in FIG. 1, the portable information terminal device includes a
通信部11は、不図示の基地局のいずれかによって割り当てられるチャネルを介し、当該基地局との間で無線信号の送受信を行う。ここでは、不図示のサーバから通信により包括ファイル(TARファイル)構造を持つ音楽や画像ファイルをダウンロードすることで取得し、後述する制御部12経由で記憶部13に暗号化されたまま蓄積するものとする。
The
制御部12は、記憶部13に格納された複数のアプリケーションプログラムを切替え実行するとともに、通信部11、音声処理部14、表示部15、操作部16を制御するものであって、携帯情報端末装置としての制御中枢となる。制御部12は、図2にその内部構成が機能展開して示されるように、ファイルシステム管理部121と、プログラム実行制御部122とを少なくとも含み、構成される。
The
ファイルシステム管理部121は、使用されるOS(Operating System)に依存して記憶部13に格納されるデータを管理する機能ブロックであり、ここでは、記憶部13に格納されるファイルが指定されると、指定されたファイルを記憶部13から検索し、当該ファイルの記憶部13におけるアドレス情報を特定する機能を持ち、例えば、Windows2000/XP(登録商標)等で標準的に使用されるNTFS(NT File System)や、NTFSが備えるファイル暗号化機能であるEFS(Encrypting File System)を実行制御する。
The file
また、プログラム実行制御部122は、ファイル取得のための所定のイベントが生じると、当該イベントに応じたファイルをファイルシステム管理部121に対して検索指示を発行し、ファイルシステム管理部121から該当するファイルのアドレス情報が抽出されると当該ファイルを読み出す機能を持つ。
In addition, when a predetermined event for file acquisition occurs, the program
図5に、上記した包括ファイルとしてのTARファイルのデータ構造の一例が示されている。TARファイルは、上記したように複数のファイルを一個のファイルに纏めたアーカイブ形式の一つであり、音楽ファイルや画像ファイル等、そのインデックスを含む複数のファイル構成から成り、例えば、音楽情報のダウンロード等、ソフトウェアの配布に利用されている。
図5に示されるように、TARファイルは、上記したメディアファイルの他に、ヘッダとして、メディアファイルのインデックスが記述された「index.txt」、メディアファイルを再生する方法が記述された「index.smi」ファイル等を含む。なお、TARファイルは、最大255個のファイルを内包することができる。例えば、GIF(Graphic Interchange Format)、JPEG(Joint Photographic Experts Group)、PNG(Potable Network Graphics)、C−MIDI(Compact Mudical Instrument Digital Interface)、SMAF(Synthetic music Mobile Application Format)である。なお、MIDI、SMAFは登録商標である。また、config.txtには、アプリケーションの設定情報等が含まれている。
FIG. 5 shows an example of the data structure of the TAR file as the comprehensive file. A TAR file is one of archive formats in which a plurality of files are combined into a single file as described above, and is composed of a plurality of file configurations including indexes of music files, image files, etc., for example, downloading of music information It is used for software distribution.
As shown in FIG. 5, in addition to the above-mentioned media file, the TAR file includes, as a header, “index.txt” in which the index of the media file is described, and “index.txt” in which the method of reproducing the media file is described. including "smi" files. A TAR file can contain a maximum of 255 files. For example, GIF (Graphic Interchange Format), JPEG (Joint Photographic Experts Group), PNG (Potable Network Graphics), C-MIDI (Compact Mudical Instrument Digital Interface), SMAF (Synthetic music Mobile Application Format). MIDI and SMAF are registered trademarks. Also, config.txt includes application setting information and the like.
プログラム実行制御部122は、上記したTARファイルに含まれる内部ファイルの一つを必要とする場合に、当該必要とする内部ファイルを、TARファイルのファイル名を名称として有する仮想ディレクトリから検索指示する仮想パスを生成し、ファイルシステム管理部121から仮想パスに応答して必要とする内部ファイルのアドレス情報が指定されると、当該指定されたアドレス情報にて特定される内部ファイルを記憶部13から読み出す機能を実行する。
When the program
一方、ファイルシステム管理部121は、プログラム実行制御部122から仮想パスを受け取り、当該仮想ディレクトリの名称からTARファイルのファイル名を特定して当該TARファイルを検索し、検索されたTARファイルのヘッダ情報に基づいて必要とする内部ファイルを検索し、当該検索された内部ファイルの記憶部13におけるアドレス情報をプログラム実行制御部122に仮想パスの応答として引き渡す機能を実行する。いずれも詳細は後述する。
On the other hand, the file
記憶部13は、制御部12において処理に利用される各種のデータを記憶する。例えば、通信部11を介して不図示のサーバから取得した包括ファイル(音楽ファイル等のコンテンツ)を保持することとする。
このため、記憶部13には、図2に一例が示されるように、包括ファイル(TARフィル)が格納されるファイル領域132の他に、エクスプローラのホルダに相当するディレクトリが格納されるディレクトリ領域131が割り付けられそれぞれ保持される。
なお、記憶部13には、制御部12(ファイルシステム管理部121、プログラム実行制御部132)が実行するコンピュータプログラム、また、携帯情報端末装置として機能するために、通信相手の電話番号や電子メールアドレス等の個人情報を管理するアドレス帳、着信音やアラーム音を再生するための音声ファイル、待ち受け画面用の画像ファイル、各種の設定データ、プログラムの処理過程で利用される一時的なデータなどを保持するものとする。
上記した記憶部13は、例えば、不揮発性の記憶デバイス(不揮発性半導体メモリ、ハードディスク装置、光ディスク装置など)やランダムアクセス可能な記憶デバイス(例えばSRAM、DRAM)などによって構成される。
The
Therefore, as shown in FIG. 2, in the
The
The
音声処理部14は、通信部11によってダウンロード取得され、記憶部13に格納された音楽ファイル等を復号して再生制御を行う。
また、音声処理部14は、スピーカから出力される音声信号やマイクロフォン(以下、マイクという)において入力される音声信号の処理も行う。
すなわち、音声処理部は、マイクから入力される音声を増幅し、アナログ/デジタル変換を行い、更に符号化等の信号処理を施し、デジタルの音声データに変換して制御部12に出力する。また、制御部12から供給される音声データに復号化、デジタル/アナログ変換、増幅等の信号処理を施し、アナログの音声信号に変換してスピーカに出力する。
The
The
That is, the sound processing unit amplifies the sound input from the microphone, performs analog / digital conversion, performs signal processing such as encoding, converts the sound into digital sound data, and outputs the digital sound data to the
表示部15は、例えば、液晶表示パネルや有機EL(Electro-Luminescence)パネルなどの表示デバイスを用いて構成されており、制御部12によって生成される映像信号に応じた画像を表示する。例えば、携帯情報端末装置の場合、発信時における発信先の電話番号、着信時における着信相手の電話番号、受信メールや送信メールの内容、日付、時刻、バッテリ残量、発信成否、待ち受け画面などの各種の情報や画像を表示する。
The
また、操作部16は、例えば、電源キー、通話キー、数字キー、文字キー、方向キー、決定キー、発信キーなど、各種の機能が割り当てられたキーを有しており、これらのキーがユーザによって操作された場合に、その操作内容に対応する信号を発生し、これをユーザの指示として制御部12に入力する。
The
図3は、本発明の実施の形態に係る情報処理装置の動作シーケンスを示す図であり、ここでは、図2に示すファイルシステム管理部121と、プログラム実行制御部122とのやりとりが示されている。
以下、図3に示す動作シーケンス図を参照しながら、図1、図2に示す携帯情報端末装置(制御部12)の概略処理について説明する。
FIG. 3 is a diagram showing an operation sequence of the information processing apparatus according to the embodiment of the present invention. Here, the exchange between the file
Hereinafter, an outline process of the portable information terminal device (control unit 12) shown in FIGS. 1 and 2 will be described with reference to an operation sequence diagram shown in FIG.
まず、プログラム実行制御部122は、包括ファイルxxx.tarの、内部ファイルであるaaa.txtの情報を必要な内部ファイルとして取得するものする。このため、プログラム実行制御部122は、xxx/aaa.txtの仮想パス名を生成し(S301)、ファイルシステム管理部121にファイルオープン処理を依頼する(S302)。
ファイルオープン処理の依頼を受けたファイルシステム管理部121は、仮想ディレクトリの名称から、xxx.tarのファイル名を特定して当該xxx.tarを検索し(S303)、当該検索されたxxx.tarのヘッダ情報に基づいて必要とするaaa.txtを記憶部13から検索し(S304)、当該検索されたaaa,txtの記憶部13におけるアドレス情報を、プログラム実行制御部122に対して上記した仮想パスの応答として引き渡す(S305)。
なお、検索されたxxx.tarにインデックスファイルを有する場合は、当該インデックスファイルから、aaa.txtのファイル名を検索し、当該ファイルのアドレス情報を抽出してプログラム実行制御部122へ引き渡すことができる。
First, the program
The file
The searched xxx. If the tar has an index file, the aaa. The file name of txt can be searched, the address information of the file can be extracted and delivered to the program
具体的に、ファイルシステム管理部121は、ステップS303にて、包括ファイルxxx.tarの存在確認を行い、存在する場合にTARファイルのヘッダ情報のみを取得し、S304にて記憶部13を参照し、aaa.txtのエントリ情報の有無を判定する。この処理は、内部ファイルの個数分繰り返し実行される。
そして、エントリ情報があった場合、当該エントリの位置、ファイル名、属性、および情報をファイルシステム管理部121が内蔵する不図示のバッファにコピーし、そのインデックスをファイルの操作ハンドルとして記憶するとともに、ステップS305にて当該ファイルハンドル情報をプログラム実行制御部122に引き渡す。
Specifically, in step S303, the file
When there is entry information, the position, file name, attribute, and information of the entry are copied to a buffer (not shown) built in the file
プログラム実行制御部122は、上記によりファイルハンドル情報を取得したため、当該ファイルハンドル情報を指定し、必要とするaaa.txtのデータを取得(リード)するためにファイルシステム管理部121へ処理を依頼する(S306)。ここでは、添付パラメータとして、ファイルハンドル情報、読み出すファイルの格納バッファ、および読み出すサイズが指定される。
ファイルシステム管理部121は、受け取ったハンドル情報から、xxx.tarファイルの先頭からのオフセット(アドレス)がわかるため、先頭からのオフセット分だけ不図示のファイルポインタを移動し、サイズ分のデータを取得し、当該データをプログラム実行制御部122へ転送する(S307)。以降、必要とする内部ファイルを取得したプログラム実行制御部122は、取得したデータの復号処理等を実行して不図示の再生系へ出力する(S308)。
Since the program
The file
なお、プログラム実行制御部122は、aaa.txtの取得完了を待って当該aaa.txtをクローズし(S309)、ファイルシステム管理部121はこれを受けてxxx.tarをクローズする(S310、S311)。すなわち、ファイルシステム管理部121は、xxx.tarをクローズして解放する際、xxx.tarに含まれる内部ファイルの全てをクローズ(S309)した後にxxx.tarを解放する(S311)。
Note that the program
図4は、本発明の実施の形態に係る情報処理装置の動作を示すフローチャートであり、詳しくは、ファイルシステム管理部121による処理の流れを示す。
以下、図4に示すフローチャートを参照しながらファイルシステム管理部121の動作について詳細に説明する。
FIG. 4 is a flowchart showing the operation of the information processing apparatus according to the embodiment of the present invention. Specifically, the processing flow by the file
Hereinafter, the operation of the file
ファイルシステム管理部121は、プログラム実行制御部122から仮想パスを受け取ると、仮想パスの終端からディレクトリの区切り(識別子/)を探し、当該識別子/以降のパスを削除し、拡張子tarを付加して記述を変更する(S401)。ファイルシステム管理部121は、続いて記憶部13を参照して作成したxxx.tarファイルの存在確認を行う(S402)
ここで、xxx.tarの存在が確認された場合(S402“YES”)、xxx.tarのヘッダをオープンし(S403)、当該tarファイルのヘッダからファイル名を取得する(S404)。ここで、xxx.tarファイルの先頭512バイトがヘッダ情報であり、その中に、次のファイルのヘッダ情報へのオフセットが設定されている。ステップS404、S405では、必要とする内部ファイルaaa.txtと、取得したファイル名とが一致するまで、ヘッダ情報をファイル数分繰り返し読んで比較する(xxx.tarファイルには内部ファイル数分ある)。
Upon receiving the virtual path from the program
Here, xxx. tar is present (S402 “YES”), xxx. The header of tar is opened (S403), and the file name is acquired from the header of the tar file (S404). Here, xxx. The first 512 bytes of the tar file is header information, in which an offset to the header information of the next file is set. In steps S404 and S405, the required internal file aaa. The header information is repeatedly read and compared for the number of files until txt matches the acquired file name (the xxx.tar file has the number of internal files).
上記によりヒットした場合(S406“YES”)、該当ファイルのヘッダ情報の位置を先頭位置からのオフセット情報として、EFSのファイルハンドル情報記憶領域に保存しておく。またその際、ヘッダ情報にファイルサイズが格納されているため、ファイルサイズ、属性情報、該当ファイル内の操作ポインタ(0からサイズ分移動できる)をファイルハンドル記憶領域のバッファに格納しておく(S407)。なお、内部ファイル数分、上記の処理を繰り返しても必要ファイルが存在しない場合は処理を終了する。
続いて、ファイルシステム管理部121は、EFSのファイルハンドル情報記憶領域にアクセスできる識別子をファイルハンドル情報としてプログラム実行制御部122へ引き渡す(S408)。
When a hit is made as described above (S406 “YES”), the position of the header information of the corresponding file is stored in the file handle information storage area of the EFS as offset information from the head position. At that time, since the file size is stored in the header information, the file size, the attribute information, and the operation pointer in the corresponding file (movable by 0 from the size) are stored in the buffer of the file handle storage area (S407). ). If the necessary file does not exist even if the above process is repeated for the number of internal files, the process ends.
Subsequently, the file
なお、xxx.tarが、当該包括ファイルに含まれる内部ファイルのファイル名とアドレス情報とが記述されるインデックスファイルを有する場合、必要とする内部ファイルを検索するときに、ファイルシステム管理部121は、特定されたxxx.tarに含まれるインデックスファイルから、必要とするファイルのファイル名を検索し、当該ファイルのアドレス情報を抽出し、上記同様、プログラム実行制御部122へ引き渡す(S408)。
Xxx. When tar has an index file in which the file name and address information of the internal file included in the comprehensive file are described, when searching for the required internal file, the file
一方、上記によりアドレスが特定され、通知されたプログラム実行制御部122からファイルハンドル識別子に基づくリード要求があった場合(S409“YES”)、ファイルシステム管理部121は、当該ファイルハンドル識別子から、オフセット情報、操作ポインタを元に該当のデータを記憶部13から取得し、要求のあったプログラム実行制御部122に転送する(S410)。
上記した一連の操作終了後、ファイルシステム管理部121は、ファイルハンドル識別子をクローズする(S411)。なお、xxx.tarのファイルハンドルのクローズは、xxx.tarの全ての内部ファイルの操作が終了した後、ハンドルをクローズし、xxx.tarのリソースを開放するものとする(S412)。
On the other hand, when the address is specified as described above and there is a read request based on the file handle identifier from the notified program execution control unit 122 (S409 “YES”), the file
After the above series of operations is completed, the file
以上説明のように本発明の実施の形態に係る情報処理装置によれば、制御部12を構成するプログラム実行制御部122が、複数のファイルを一つに纏めた包括ファイルに含まれる内部ファイルの一つを必要とする場合、当該必要とする内部ファイルを、包括ファイルのファイル名を名称として有する仮想ディレクトリから検索指示する仮想パスを生成し、ファイルシステム管理部121にオープン要求を発行し、これを受けたファイルシステム管理部121が、仮想ディレクトリの名称から包括ファイルのファイル名を特定して当該包括ファイルを検索し、検索された包括ファイルのヘッダ情報に基づいて必要とする内部ファイルを検索し、当該検索された内部ファイルの記憶部13におけるアドレス情報を要求のあったプログラム実行制御部122に仮想パスの応答として引き渡すことにより、包括ファイルに含まれる内部ファイルをファイルとして扱う仕組みを構築することができ、このことにより、内部ファイルの検索処理の高速化、ならびにそのための負荷軽減がはかれる。特に、TARファイルのように、複数のファイルを纏めて一個のファイルとして取り扱うようなアーカイブ形式のファイルであっても、所望のファイルを高速に探し出して処理することが可能になる。
As described above, according to the information processing apparatus according to the embodiment of the present invention, the program
なお、本発明の実施の形態に係る情報処理装置における包括ファイルの検索方法は、例えば、図2に示されるように、複数のファイルを格納する記憶部13と、前記記憶部13に格納されるファイルが指定されると、指定されたファイルを前記記憶部13から検索し、当該ファイルの前記記憶部13におけるアドレス情報を特定するファイルシステム管理部121と、所定のイベントが生じると、当該イベントに応じたファイルを前記ファイルシステム管理部121に対して検索指示を発行し、前記ファイルシステム管理部121から該当するファイルのアドレス情報が抽出されると当該ファイルを読み出すプログラム実行制御部122と、を備えた情報処理装置における包括ファイルの検索方法であって、例えば、図3に示す動作シーケンス図において、前記プログラム実行制御部122が、複数のファイルを一つに纏めた包括ファイルに含まれる内部ファイルの一つを必要とする場合に、当該必要とする内部ファイルを、前記包括ファイルのファイル名を名称として有する仮想ディレクトリから検索指示する仮想パスを生成する仮想パス生成ステップ(S301、S302)と、前記ファイルシステム管理部121が、前記仮想パスを受け取り、前記仮想ディレクトリの名称から包括ファイルのファイル名を特定して当該包括ファイルを検索し、検索された包括ファイルのヘッダ情報に基づいて前記必要とする内部ファイルを検索し、当該検索された内部ファイルの前記記憶部におけるアドレス情報を前記プログラム実行制御部に前記仮想パスの応答として引き渡すアドレス情報返却ステップ(S303〜S305)と、前記プログラム実行制御部122が、前記ファイルシステム管理部121から前記仮想パスに応答して前記必要とする内部ファイルのアドレス情報が指定されると、当該指定されたアドレス情報にて特定される内部ファイルを前記記憶部13から読み出す内部ファイル取得ステップ(S306〜S308)と、を備えたものである。
The comprehensive file search method in the information processing apparatus according to the embodiment of the present invention is stored in the
上記した本発明の実施の形態に係る情報処理装置における包括ファイルの検索方法によれば、包括ファイルに含まれる内部ファイルをファイルとして扱う仕組みを構築することにより、内部ファイルの検索処理の高速化、ならびにそのための負荷軽減がはかれる。特に、TARファイルのように、複数のファイルを纏めて一個のファイルとして取り扱うようなアーカイブ形式のファイルであっても、所望のファイルを高速に探し出して処理することが可能になる。
本発明は、例えば、ネットワークを介してダウンロードにより取得したTARファイル構造を持つ音楽ファイルや画像ファイル等を展開するためのRAM領域(記憶容量)が制限され、かつ、比較的処理能力の低いCPUしか実装できない携帯電話機等の携帯情報端末装置に用いて特に顕著な効果が得られる。
According to the comprehensive file search method in the information processing apparatus according to the above-described embodiment of the present invention, by constructing a mechanism for handling the internal file included in the comprehensive file as a file, the internal file search process can be accelerated. In addition, the load for that purpose can be reduced. In particular, even in an archive format file such as a TAR file in which a plurality of files are handled as a single file, a desired file can be found and processed at high speed.
In the present invention, for example, a RAM area (storage capacity) for developing music files and image files having a TAR file structure obtained by downloading via a network is limited, and only a CPU having a relatively low processing capability is used. A particularly remarkable effect can be obtained when used for a portable information terminal device such as a mobile phone that cannot be mounted.
なお、上記した本発明の実施の形態によれば、情報処理装置として、携帯情報端末装置を例示したが、携帯電話機、PDA(Personal Digital Assistants)、ゲーム機等の携帯情報端末装置に限らず、PC等の情報処理装置に同様に適用が可能である。また、包括ファイルとして、TARファイルのみ例示したが、他のアーカイブ形式のファイルであっても複数のファイルが一個のファイルに纏められているものであれば同様に適用可能である。
なお、本発明の情報処理装置が持つ各構成ブロックの機能は、全てをソフトウェアによって実現しても、あるいはその少なくとも一部をハードウエアで実現してもよい。例えば、ファイルシステム管理部121、プログラム実行制御部122におけるデータ処理は、1または複数のプログラムによりコンピュータ上で実現してもよく、また、その少なくとも一部をハードウエアで実現してもよい。
According to the embodiment of the present invention described above, the portable information terminal device is exemplified as the information processing device. However, the information processing device is not limited to the portable information terminal device such as a mobile phone, a PDA (Personal Digital Assistants), a game machine, The present invention can be similarly applied to an information processing apparatus such as a PC. Further, only the TAR file is illustrated as the comprehensive file, but even if it is a file in another archive format, it can be similarly applied as long as a plurality of files are collected into one file.
It should be noted that the functions of the constituent blocks of the information processing apparatus of the present invention may be realized entirely by software, or at least a part thereof may be realized by hardware. For example, the data processing in the file
11…通信部、12…制御部、13…記憶部、14…音声処理部、15…表示部、16…操作部、121…ファイルシステム管理部、122…プログラム実行制御部。
DESCRIPTION OF
Claims (6)
前記記憶部に格納されるファイルが指定されると、指定されたファイルを前記記憶部から検索し、当該ファイルの前記記憶部におけるアドレス情報を特定するファイルシステム管理部と、
所定のイベントが生じると、当該イベントに応じたファイルを前記ファイルシステム管理部に対して検索指示を発行し、前記ファイルシステム管理部から該当するファイルのアドレス情報が抽出されると当該ファイルを読み出すプログラム実行制御部と、を備え、
前記プログラム実行制御部は、
複数のファイルを一つに纏めた包括ファイルに含まれる内部ファイルの一つを必要とする場合に、当該必要とする内部ファイルを、前記包括ファイルのファイル名を名称として有する仮想ディレクトリから検索指示する仮想パスを生成し、前記ファイルシステム管理部から前記仮想パスに応答して前記必要とする内部ファイルのアドレス情報が指定されると、当該指定されたアドレス情報にて特定される内部ファイルを前記記憶部から読み出し、
前記ファイルシステム管理部は、
前記仮想パスを受け取り、前記仮想ディレクトリの名称から包括ファイルのファイル名を特定して当該包括ファイルを検索し、検索された包括ファイルのヘッダ情報に基づいて前記必要とする内部ファイルを検索し、当該検索された内部ファイルの前記記憶部におけるアドレス情報を前記プログラム実行制御部に前記仮想パスの応答として引き渡す
ことを特徴とする情報処理装置。 A storage unit for storing a plurality of files;
When a file stored in the storage unit is specified, a file system management unit that searches the storage unit for the specified file and identifies address information in the storage unit of the file;
A program that issues a search instruction to the file system management unit for a file corresponding to the event when a predetermined event occurs, and reads the file when the address information of the corresponding file is extracted from the file system management unit An execution control unit,
The program execution control unit
When one of the internal files included in a comprehensive file in which a plurality of files are combined into one is required, search for the required internal file from a virtual directory having the file name of the comprehensive file as a name. When a virtual path is generated and address information of the required internal file is specified in response to the virtual path from the file system management unit, the internal file specified by the specified address information is stored in the memory Read from the
The file system management unit
The virtual path is received, the file name of the comprehensive file is identified from the name of the virtual directory, the comprehensive file is searched, the required internal file is searched based on the header information of the searched comprehensive file, An information processing apparatus that delivers address information of the searched internal file in the storage unit to the program execution control unit as a response to the virtual path.
前記ファイルシステム管理部は、
前記仮想パスを受け取ると、当該仮想パスにおける識別子以前のディレクトリ名を抽出し、当該ディレクトリ名に包括ファイルを示す拡張子を付して該当するファイルを検索する
ことを特徴とする請求項1に記載の情報処理装置。 The virtual path has an identifier after the virtual directory name, and includes a character string having a file name of the necessary file following the identifier,
The file system management unit
When the virtual path is received, a directory name before the identifier in the virtual path is extracted, and an extension indicating a comprehensive file is added to the directory name to search for the corresponding file. Information processing device.
前記ファイルシステム管理部は、
前記必要とする内部ファイルを検索する際、特定された包括ファイルに含まれる前記インデックスファイルから、前記必要とするファイルのファイル名を検索し、当該ファイルのアドレス情報を抽出する
ことを特徴とする請求項1または2に記載の情報処理装置。 The comprehensive file further includes an index file in which the file name and address information of the internal file included in the comprehensive file are described.
The file system management unit
When searching for the required internal file, a file name of the required file is searched from the index file included in the specified comprehensive file, and address information of the file is extracted. Item 3. The information processing device according to item 1 or 2.
前記ファイルシステム管理部は、
前記必要とする内部ファイルを検索する際、特定された包括ファイルから前記必要とする内部ファイルのファイル名が記述されたヘッダ情報を検索し、当該検索されたヘッダ情報に記述されたアドレス情報に基づいて前記必要とされる内部ファイルのアドレス情報を抽出する
ことを特徴とする請求項1または2に記載の情報処理装置。 The comprehensive file includes header information in which at least a file name of an internal file included in the comprehensive file and address information in the storage unit are described,
The file system management unit
When searching for the required internal file, header information in which the file name of the required internal file is described is searched from the specified comprehensive file, and based on the address information described in the searched header information The information processing apparatus according to claim 1, wherein address information of the required internal file is extracted.
前記包括ファイルを閉じる際、前記包括ファイルに含まれる内部ファイルの全てを閉じた後に包括ファイルを閉じる
ことを特徴とする請求項1から4のいずれか1項に記載の情報処理装置。 The file system management unit
5. The information processing apparatus according to claim 1, wherein when closing the comprehensive file, the comprehensive file is closed after all of the internal files included in the comprehensive file are closed. 6.
前記プログラム実行制御部が、複数のファイルを一つに纏めた包括ファイルに含まれる内部ファイルの一つを必要とする場合に、当該必要とする内部ファイルを、前記包括ファイルのファイル名を名称として有する仮想ディレクトリから検索指示する仮想パスを生成する仮想パス生成ステップと、
前記ファイルシステム管理部が、前記仮想パスを受け取り、前記仮想ディレクトリの名称から包括ファイルのファイル名を特定して当該包括ファイルを検索し、検索された包括ファイルのヘッダ情報に基づいて前記必要とする内部ファイルを検索し、当該検索された内部ファイルの前記記憶部におけるアドレス情報を前記プログラム実行制御部に前記仮想パスの応答として引き渡すアドレス情報返却ステップと、
前記プログラム実行制御部が、前記ファイルシステム管理部から前記仮想パスに応答して前記必要とする内部ファイルのアドレス情報が指定されると、当該指定されたアドレス情報にて特定される内部ファイルを前記記憶部から読み出す内部ファイル取得ステップと、
を備えたことを特徴とする情報処理装置における包括ファイルの検索方法。 When a storage unit for storing a plurality of files and a file stored in the storage unit are specified, a file system that searches the storage unit for the specified file and identifies address information of the file in the storage unit When a predetermined event occurs with the management unit, a search instruction is issued to the file system management unit for a file corresponding to the event, and the address information of the corresponding file is extracted from the file system management unit A method for searching for a comprehensive file in an information processing apparatus comprising a program execution control unit for reading a file,
When the program execution control unit needs one of the internal files included in the comprehensive file in which a plurality of files are combined into one, the required internal file is named with the file name of the comprehensive file. A virtual path generation step of generating a virtual path for instructing search from a virtual directory having
The file system management unit receives the virtual path, specifies the file name of the comprehensive file from the name of the virtual directory, searches the comprehensive file, and makes the necessity based on the header information of the searched comprehensive file An address information return step of searching for an internal file and handing over address information in the storage unit of the searched internal file to the program execution control unit as a response to the virtual path;
When the address information of the required internal file is designated in response to the virtual path from the file system management unit, the program execution control unit designates the internal file specified by the designated address information. An internal file acquisition step to read from the storage unit;
A method for searching for a comprehensive file in an information processing apparatus comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007012936A JP2008181234A (en) | 2007-01-23 | 2007-01-23 | Information processor and method for retrieving comprehensive file in same device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007012936A JP2008181234A (en) | 2007-01-23 | 2007-01-23 | Information processor and method for retrieving comprehensive file in same device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008181234A true JP2008181234A (en) | 2008-08-07 |
Family
ID=39725108
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007012936A Pending JP2008181234A (en) | 2007-01-23 | 2007-01-23 | Information processor and method for retrieving comprehensive file in same device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008181234A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20220018186A (en) * | 2020-08-06 | 2022-02-15 | 주식회사 파수 | Method for managing virtual file, apparatus for the same, computer program for the same, and recording medium storing computer program thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001159991A (en) * | 1999-12-01 | 2001-06-12 | Nec Corp | Device and method for managing file and recording medium for recording file managing program |
JP2003241990A (en) * | 2002-02-19 | 2003-08-29 | Seiko Epson Corp | Information processor, printing device, and correction method of stored information |
JP2004005321A (en) * | 2002-03-26 | 2004-01-08 | Sony Corp | Program, recording medium, information processing device and method, and information processing system |
JP2006085569A (en) * | 2004-09-17 | 2006-03-30 | Ricoh Co Ltd | Image processing apparatus, file handling method, program and recording medium |
-
2007
- 2007-01-23 JP JP2007012936A patent/JP2008181234A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001159991A (en) * | 1999-12-01 | 2001-06-12 | Nec Corp | Device and method for managing file and recording medium for recording file managing program |
JP2003241990A (en) * | 2002-02-19 | 2003-08-29 | Seiko Epson Corp | Information processor, printing device, and correction method of stored information |
JP2004005321A (en) * | 2002-03-26 | 2004-01-08 | Sony Corp | Program, recording medium, information processing device and method, and information processing system |
JP2006085569A (en) * | 2004-09-17 | 2006-03-30 | Ricoh Co Ltd | Image processing apparatus, file handling method, program and recording medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20220018186A (en) * | 2020-08-06 | 2022-02-15 | 주식회사 파수 | Method for managing virtual file, apparatus for the same, computer program for the same, and recording medium storing computer program thereof |
KR102438329B1 (en) * | 2020-08-06 | 2022-08-31 | 주식회사 파수 | Method for managing virtual file, apparatus for the same, computer program for the same, and recording medium storing computer program thereof |
US11625365B2 (en) | 2020-08-06 | 2023-04-11 | Fasoo Co., Ltd | Method for managing virtual file, apparatus for the same, computer program for the same, and recording medium storing computer program thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11616820B2 (en) | Processing files from a mobile device | |
CN101779439B (en) | Notifying remote devices of available content | |
JP5688061B2 (en) | Apparatus and method for managing messages in a portable terminal, and electronic apparatus | |
JP2003319365A (en) | Image server and image display system | |
JP2003076647A (en) | Mail transmitting/receiving method, and device using it | |
JP2004117618A (en) | Information processor, content transfer method, and music reproduction apparatus | |
JP2010250023A (en) | Information processing apparatus with text display function, and data acquisition method and data acquisition program | |
JP2005531866A (en) | Removable memory information management | |
JP2007527575A (en) | Method and apparatus for synchronizing and identifying content | |
KR20110000679A (en) | Method, apparatus and computer program product for providing an information model-based user interface | |
JPWO2010113670A1 (en) | Communication system, communication terminal, server, data storage method, and recording medium | |
WO2012055334A1 (en) | Method and device for associating media files | |
JP2008181234A (en) | Information processor and method for retrieving comprehensive file in same device | |
JP2002278901A (en) | Portable telephone system and reception file managing method in the same | |
CN101094366A (en) | Method and apparatus for setting playlist for content files in mobile terminal | |
JP5449655B2 (en) | Content data communication system and content data recording / reproducing apparatus | |
JP2005228242A (en) | Mobile communication system and mobile terminal apparatus | |
JP2010219969A (en) | Call recording device with retrieving function, and telephone set | |
JP2006279430A (en) | Method for cooperation between mobile terminal and fixed terminal | |
JP2004229165A (en) | Data processing system | |
JP5009650B2 (en) | Synthesizer, synthesis system, synthesis method and program | |
JP2002055865A (en) | Apparatus and method for multimedia data editing/ managing device | |
KR20020070555A (en) | Mass storage data file management method of mobile communication terminal | |
JP2004185337A (en) | Information retrieval device, method, and storage medium | |
JP4302136B2 (en) | Mobile terminal device and playlist link method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20091015 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120130 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120214 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120416 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20120814 |