1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module gdata.tlslite.FileObject</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="gdata.html"><font color="#ffffff">gdata</font></a>.<a href="gdata.tlslite.html"><font color="#ffffff">tlslite</font></a>.FileObject</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/afshar/wrk/gdata-python-client/src/gdata/tlslite/FileObject.py">/home/afshar/wrk/gdata-python-client/src/gdata/tlslite/FileObject.py</a></font></td></tr></table>
<p><tt>Class returned by TLSConnection.makefile().</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="gdata.tlslite.FileObject.html#FileObject">FileObject</a>
</font></dt></dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="FileObject">class <strong>FileObject</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>This class provides a file object interface to a<br>
L{tlslite.TLSConnection.TLSConnection}.<br>
<br>
Call makefile() on a TLSConnection to create a <a href="#FileObject">FileObject</a> instance.<br>
<br>
This class was copied, with minor modifications, from the<br>
_fileobject class in socket.py. Note that fileno() is not<br>
implemented.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="FileObject-__del__"><strong>__del__</strong></a>(self)</dt></dl>
<dl><dt><a name="FileObject-__init__"><strong>__init__</strong></a>(self, sock, mode<font color="#909090">='rb'</font>, bufsize<font color="#909090">=-1</font>)</dt></dl>
<dl><dt><a name="FileObject-__iter__"><strong>__iter__</strong></a>(self)</dt></dl>
<dl><dt><a name="FileObject-close"><strong>close</strong></a>(self)</dt></dl>
<dl><dt><a name="FileObject-flush"><strong>flush</strong></a>(self)</dt></dl>
<dl><dt><a name="FileObject-next"><strong>next</strong></a>(self)</dt></dl>
<dl><dt><a name="FileObject-read"><strong>read</strong></a>(self, size<font color="#909090">=-1</font>)</dt></dl>
<dl><dt><a name="FileObject-readline"><strong>readline</strong></a>(self, size<font color="#909090">=-1</font>)</dt></dl>
<dl><dt><a name="FileObject-readlines"><strong>readlines</strong></a>(self, sizehint<font color="#909090">=0</font>)</dt></dl>
<dl><dt><a name="FileObject-write"><strong>write</strong></a>(self, data)</dt></dl>
<dl><dt><a name="FileObject-writelines"><strong>writelines</strong></a>(self, list)</dt></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>closed</strong></dt>
<dd><tt>True if the file is closed</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>default_bufsize</strong> = 16384</dl>
</td></tr></table></td></tr></table>
</body></html>
|