<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Parrot - IO Handle PMC</title> <link rel="stylesheet" type="text/css" href="../../../resources/parrot.css" media="all"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <div id="wrapper"> <div id="header"> <a href="http://www.parrot.org"> <img border=0 src="../../../resources/parrot_logo.png" id="logo" alt="parrot"> </a> </div> <!-- "header" --> <div id="divider"></div> <div id="mainbody"> <div id="breadcrumb"> <a href="../../../html/index.html">Home</a> » <a href="../../../html/pmc.html">PMCs</a> » IO Handle PMC </div> <h1><a name="NAME" >NAME</a></h1> <p>src/pmc/handle.pmc - IO Handle PMC</p> <h1><a name="DESCRIPTION" >DESCRIPTION</a></h1> <p>This is the base-class for all IO-related PMCs.</p> <h2><a name="Vtable_Functions" >Vtable Functions</a></h2> <dl> <dt><a name="init" ><b><code>init</b></code></a></dt> <dt><a name="init_pmc" ><b><code>init_pmc</b></code></a></dt> Handle shouldn't be directly instantiated, init and init_pmc throws EXCEPTION_INVALID_OPERATION.</dl> <h2><a name="Methods" >Methods</a></h2> <dl> <dt><a name="METHOD_isatty()" ><b><code>METHOD isatty()</b></code></a></dt> Returns a boolean value indicating whether <code>SELF</code> is a console/tty. This default implementation always return false. Override it in subtypes that are or can be tty. <dt><a name="METHOD_get_fd()" ><b><code>METHOD get_fd()</b></code></a></dt> Retrieve the integer file descriptor for the Handle (only available on platforms that use integer file descriptors). <dt><a name="METHOD_read(INTVAL_bytes)" ><b><code>METHOD read(INTVAL bytes)</b></code></a></dt> Read the given number of bytes from the handle and return them in a string. <dt><a name="METHOD_readline()" ><b><code>METHOD readline()</b></code></a></dt> Read a line from the handle and return it in a string. <dt><a name="METHOD_record_separator()" ><b><code>METHOD record_separator()</b></code></a></dt> Set the record separator for readline. <dt><a name="METHOD_close()" ><b><code>METHOD close()</b></code></a></dt> Close the handle.</dl> </div> <!-- "mainbody" --> <div id="divider"></div> <div id="footer"> Copyright © 2002-2011, Parrot Foundation. </div> </div> <!-- "wrapper" --> </body> </html>