Sophie

Sophie

distrib > Fedora > 15 > x86_64 > by-pkgid > 1e007a96761035f261351a68e7601417 > files > 284

parrot-docs-3.6.0-2.fc15.noarch.rpm

<!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> &raquo; <a href="../../../html/pmc.html">PMCs</a> &raquo; IO Handle PMC
                </div>

<h1><a name="NAME"
>NAME</a></h1>

<p>src/pmc/handle.pmc &#45; IO Handle PMC</p>

<h1><a name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p>This is the base&#45;class for all IO&#45;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&#39;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 &copy; 2002-2011, Parrot Foundation.
            </div>
        </div> <!-- "wrapper" -->
    </body>
</html>