Product SiteDocumentation Site

5.2. The Stream Classes

This section describes the Rexx classes which implement Rexx data streams.

5.2.1. The InputStream Class

This class is defined as an abstract mixin class. It must be implemented by subclassing it or inheriting from it as a mixin. Many of the methods in this class are abstract and must be overridden or they will throw a syntax error when invoked.

Table 5.8. ooRexx InputStream Class

Object
InputStream
 
arrayIn
charIn
charOut
chars
close
lineIn
lineOut
lines
open
position

Note

The InputStream class also has available class methods that its metaclass, the Class class (Section 5.1.2, “The Class Class”), defines.

5.2.1.2. arrayIn

This is a default implementation of the arrayIn method using linein() method calls to fill the array.

5.2.1.3. charIn

This method is defined as an abstract method. Invoking it will cause syntax error 93.965 to be raised.

5.2.1.4. charOut

This is an unsupported operation for InputStreams. Invoking it will cause syntax error 93.963 to be raised.

5.2.1.5. chars

This method is defined as an abstract method. Invoking it will cause syntax error 93.965 to be raised.

5.2.1.6. close

This method is a NOP by default.

5.2.1.7. lineIn

This method is defined as an abstract method. Invoking it will cause syntax error 93.965 to be raised.

5.2.1.8. lineOut

This is an unsupported operation for InputStreams. Invoking it will cause syntax error 93.963 to be raised.

5.2.1.9. lines

This method is defined as an abstract method. Invoking it will cause syntax error 93.965 to be raised.

5.2.1.10. open

This method is a NOP method.

5.2.1.11. position

This method is an optionally supported operation. By default, it will cause syntax error 93.963 to be raised.