Java I/O toolkit for applications and applets
First Claim
1. A method to perform I/O (Input/Output) operations in a data processing unit comprising the steps of:
- executing an interpretative based program on an Interpretative Machine (IM);
defining an I/O class for passing data into said program and for passing data out of said program;
creating an object with a first class method based on said I/O class for said interpretative based program for execution on an IM not coupled to a Web browser and a second class method based on said I/O class for execution on an IM coupled to a Web browser;
wherein said object is an instance of said I/O class with said I/O class having its own procedures and data variables for performing I/O operations;
checking to determine whether said interpretative based program is being executed on an IM not coupled to a Web browser or on an IM coupled to a Web browser;
if said interpretative based program is executing on an IM not coupled to a Web browser executing said first class method;
wherein said first class method perform I/O operations during execution of said interpretative based program; and
if said interpretative based program is executing on an IM coupled to a Web browser executing said second class method;
wherein either said second class method perform I/O operations during execution of said interpretative based program.
1 Assignment
0 Petitions
Accused Products
Abstract
A method to perform I/O (Input/Output) operations in a data processing unit running an interpretative based program in an Interpretive Machine (IM). One example on an interpretative based program running in an IM is a Java based program. An I/O class for passing data into the interpretative based program and out of a the interpretative based program is defined. An object representing an instance of this I/O class is created. The I/O class includes a first member function called an Applet function for handling I/O operations when the IM is running as an Applet coupled to a Web browser. The Applet function has its own procedures and data variables for performing I/O operations. The I/O class includes a second member function called and Application function for handling I/O operations when the IM is running as an Application not coupled to a Web browser. The Application function has its own procedures and variables for performing I/O operations. A check is made to determine whether the interpretative based program is being executed with or without a browser. When the interpretative based program is being executed with a browser, the Applet function performs I/O operations and when the interpretive based program is being executed without a browser, the Application function performs the I/O operations. In accordance with another embodiment of the present invention, a computer readable medium is disclosed corresponding to the above method.
135 Citations
17 Claims
-
1. A method to perform I/O (Input/Output) operations in a data processing unit comprising the steps of:
-
executing an interpretative based program on an Interpretative Machine (IM); defining an I/O class for passing data into said program and for passing data out of said program; creating an object with a first class method based on said I/O class for said interpretative based program for execution on an IM not coupled to a Web browser and a second class method based on said I/O class for execution on an IM coupled to a Web browser;
wherein said object is an instance of said I/O class with said I/O class having its own procedures and data variables for performing I/O operations;checking to determine whether said interpretative based program is being executed on an IM not coupled to a Web browser or on an IM coupled to a Web browser; if said interpretative based program is executing on an IM not coupled to a Web browser executing said first class method;
wherein said first class method perform I/O operations during execution of said interpretative based program; andif said interpretative based program is executing on an IM coupled to a Web browser executing said second class method;
wherein either said second class method perform I/O operations during execution of said interpretative based program. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computer readable storage medium containing program instructions for performing I/O (Input/Output) operations in a data processing unit, said program instructions comprising instructions for:
-
executing an interpretative based program on an Interpretative Machine (IM); defining an I/O class for passing data into said program and for passing data out of said program; creating an object with a first class method based on said I/O class for said interpretative based program for execution on an IM not coupled to a Web browser and a second class method based on said I/O class for execution on an IM coupled to a Web browser;
wherein said object is an instance of said I/O class with said I/O class having its own procedures and data variables for performing I/O operations;checking to determine whether said interpretative based program is being executed on an IM not coupled to a Web browser or on an IM coupled to a Web browser; and if said interpretative based program is executing on an IM not coupled to a Web browser executing said first class method;
wherein said first class method perform I/O operations during execution of said interpretative based program; andif said interpretative based program is executing on an IM coupled to a Web browser executing said second class method;
wherein either said second class method perform I/O operations during execution of said interpretative based program. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17)
-
Specification