src/pmc/handle.pmc - IO Handle PMC
This is the base-class for all IO-related PMCs.
Handle shouldn't be directly instantiated, init and init_pmc throws EXCEPTION_INVALID_OPERATION.
Returns a boolean value indicating whether
SELF is a console/tty.
This default implementation always return false.
Override it in subtypes that are or can be tty.
Retrieve the integer file descriptor for the Handle (only available on platforms that use integer file descriptors).
METHOD read(INTVAL bytes)
Read the given number of bytes from the handle and return them in a string.
Read a line from the handle and return it in a string.
METHOD read_bytes(INTVAL bytes)
Read the given number of bytes from the handle and return them in a ByteBuffer.
Set the record separator for readline.
Close the handle.