Patent ID: 6260083
Filing Date: 2001-07-10
Classification: G06F

Abstract:
A method for performing I/O (Input/Output) operations in an information processing unit comprising:defining an I/O class for passing data into the program and for passing data out of the program;creating an object with a first class method based on the I/O class for the interpretative based program for execution on an Interpretative Machine (IM) not coupled to a Web browser and a second class method based on the I/O class for execution on an IM coupled to a Web browser; wherein the object is an instance of the I/O class with the I/O class having its own procedures and data variables for performing I/O operations;receiving a request to pass data of unknown length out of the program:allocating a local buffer in the information processing unit to write the data of unknown length thereto;writing the data of unknown length to the local buffer;determining the length of the data of unknown length in the local buffer;passing the length of the data combined with the data in the buffer out of the program; andchecking to determine whether the 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 the interpretative based program is executing on an IM not coupled to a Web browser, executing the first class method; wherein the first class method perform I/O operations during execution of the interpretative based program; andif the interpretative based program is executing on an IM coupled to a Web browser, executing the second class method; wherein either the second class method perform I/O operations during execution of the interpretative based program.