Generating a dynamic content creation program
Abstract
Provides methods and apparatus that can reduce the time required for processing, when generating a dynamic content using JSP or the like. An example device for generating a dynamic content creation program internally handles text by expressing the text in a predetermined general character encoding format. In the device, provided are: means for generating a dynamic content creation program, based on a predetermined file containing static text for constituting static part of a content; and means for preparing in advance content character encoding format-based character code information on the static text so that the program can utilize the information.
Claims
exact text as granted — not AI-modified1 . A device for generating a dynamic content creation program by expressing text in a predetermined character encoding format, comprising:
program generation means for generating a dynamic content creation program, based on one or a plurality of files containing static text for constituting static part of a content; and preliminary preparation means for preliminary preparing character code information in said predetermined character encoding format for said content, said character code information concerning said static text, so that the program can utilize said character code information.
2 . The device according to claim 1 , further comprising:
determination means for making a determination for said files as to whether said character code information can be prepared, wherein said character code information is prepared by said preparation means in response to an event that a positive determination is made by said determination means.
3 . The device according to claim 2 , wherein said determination means comprises definite determination means for making a determination for the file as to whether the character encoding format for said content is definite, and makes a positive determination in response to a definite determination by said definite determination means.
4 . The device according to claim 2 , wherein said determination means comprises classification means for classifying said plurality of files having an aggregation relationship into a first type which does not contain an instruction to change said character encoding format for said content, and a type other than said first type, and makes a positive determination for said plurality of files on conditions that all of said plurality of files having the aggregation relationship belong to said first type and that the character encoding formats for said contents are identical in all of said plurality of files.
5 . The device according to claim 4 , wherein said determination means creates a graph showing said aggregation relationship by using, as a clause, each of said plurality of files having said aggregation relationship on a condition that said positive determination of claim 4 is not made; wherein said determination means finds a connection component in said graph; and wherein said determination means makes a positive determination for each file belonging to, among said connection components, said connection component in which all of said plurality of files belong to said first type and in which said character encoding formats for said contents are identical in a case that all of said plurality of files are regarded as a single file, on a condition that the relevant file is not called by the file for which the positive determination has not been made.
6 . The device according to claim 1 , wherein said preliminary preparation means takes into account an execution context of each of the respective programs generated from said plurality of files having an aggregation relationship, and prepares said character code information concerning said static text for each character encoding format for said content, which has a possibility of being adopted at time of execution, for said program in which said character encoding format that is adopted for said content changes depending on said execution context.
7 . The device according to claim 1 , wherein said preliminary preparation means comprises:
classification means for classifying said plurality of files having an aggregation relationship into a first type, which does not contain an instruction to change said character encoding format for said content, and the other type; definite determination means for making a determination as to whether each of the plurality of files having the aggregation relationship is a definite file in which said character encoding format for said content can be uniquely decided; and plural determination means for making a determination for each of said plurality of files having the aggregation relationship as to whether said character code information for said content concerning the static text of said file is one generated by encoding an expression of said static text in said character encoding format into an expression in said character encoding format for the content at time of execution of said program generated from said file, and wherein among said plurality of files having said aggregation relationship, for said file except intersection of said definite file and said file called by said file which requires encoding at the time of the execution, an execution context tree in which the unaggregated file is a root is acquired, wherein for one of said tree in which all said files belong to said first type and said tree in which said program based on said file of said root performs buffering in relation to output for generating said content, said character encoding format for the content concerning the file of the root is adopted for all the files belonging to the relevant tree, and wherein for the file for which the foregoing adoption has been performed, said character code information concerning the static text of the relevant file, which is in the adopted character encoding format for the content, is preliminary prepared so that said program generated from the relevant file can utilize said character code information.
8 . The device according to claim 1 , wherein said preliminary preparation means comprises:
classification means for classifying the plurality of files having an aggregation relationship into a first type which does not contain an instruction to change the character encoding format for the content, a second type which contains an instruction to change said character encoding format for said content to a definite one, and a third type other than the first and second types; means for making a determination as to whether each of the plurality of files having the aggregation relationship is a definite file in which the character encoding format for the content can be uniquely decided; and means for making a determination for each of the plurality of files having the aggregation relationship as to whether it is a file in which the character code information for the content concerning the static text of the relevant file is generated by encoding an expression of the static text in the character encoding format into an expression in the character encoding format for the content at time of execution of the program generated from the relevant file, and wherein among the plurality of files having the aggregation relationship, for the file except intersection of the definite file and the file called by the file which requires encoding at the time of the execution, an execution context tree in which the unaggregated file is a root is acquired, wherein among the trees, for the tree satisfying all conditions that the tree is not a tree in which all the files belong to the first type, the tree is a tree in which the program based on the file of the root performs buffering of finite size in relation to output for generating the content and throws an exception when a buffer has been filled, and the tree is a tree in which, after the file called by the file of the third type has been removed, the latest and deepest file belongs to the second type, the character encoding format for the content of the latest and deepest file is adopted for all the files belonging to the relevant tree, and wherein for the file for which the foregoing adoption has been performed, said character code information concerning the static text of the relevant file, which is in the adopted character encoding format for the content, is preliminary prepared so that the program generated from the relevant file can utilize the information.
9 . The device according to claim 1 , further comprising: transformation means for transforming, on condition that the file contains an international code which is defined as one having a common meaning in a plurality of predetermined languages and for which respective character codes of the plurality of languages corresponding to the code are prepared as a resource, the relevant file into a format in which the international code is expressed by the static text, based on the resource and the language designated among the plurality of languages.
10 . The device according to claim 1 , wherein for the file for which the character code information cannot be prepared, the program is generated so that the character code information is created by encoding an expression of the static text in the general character encoding format into an expression in the character encoding format for the content at time of execution of the program generated from the relevant file.
11 . The device according to claim 1 , wherein the character code information concerning the static text is prepared by encoding the static text decoded into an expression in the character encoding format into an expression in the character encoding format for the content.
12 . The device according to claim 1 , wherein said character code information is prepared by directly using the static text in the file on a condition that the encoding format in the file concerning the static text is identical to that in the content.
13 . A program for generating a dynamic content creation program, wherein the program causes a computer to function as the device of claim 1 .
14 . A computer program product comprising a computer usable medium having computer readable program code means embodied therein for causing functions of a device for generating a dynamic content creation program, the computer readable program code means in said computer program product comprising computer readable program code means for causing a computer to effect the functions of claim 1 .
15 . A method for generating a dynamic content creation program by expressing text in a predetermined character encoding format, the method comprising the steps of:
generating a dynamic content creation program, based on one or a plurality of files containing static text for constituting static part of a content; and preliminary preparing character code information in a character encoding format for said content, said character code information concerning the static text, so that the program can utilize said character code information.
16 . A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for generating a dynamic content creation program by expressing text in a predetermined character encoding format, said method steps comprising the steps of claim 15 .
17 . An article of manufacture comprising a computer usable medium having computer readable program code means embodied therein for causing generation of a dynamic content creation program by expressing text in a predetermined character encoding format, the computer readable program code means in said article of manufacture comprising computer readable program code means for causing a computer to effect the steps of:
generating a dynamic content creation program, based on one or a plurality of files containing static text for constituting static part of a content; and preliminary preparing character code information in a character encoding format for said content, said character code information concerning the static text, so that the program can utilize said character code information.
18 . A computer program product comprising a computer usable medium having computer readable program code means embodied therein for causing functions of a device for generating a dynamic content creation program, the computer readable program code means in said computer program product comprising computer readable program code means for causing a computer to effect the functions of claim 2 .
19 . A computer program product comprising a computer usable medium having computer readable program code means embodied therein for causing functions of a device for generating a dynamic content creation program, the computer readable program code means in said computer program product comprising computer readable program code means for causing a computer to effect the functions of claim 3 .
20 . A computer program product comprising a computer usable medium having computer readable program code means embodied therein for causing functions of a device for generating a dynamic content creation program, the computer readable program code means in said computer program product comprising computer readable program code means for causing a computer to effect the functions of claim 5.Join the waitlist — get patent alerts
Track US2005262042A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.