2000-03-05 17:39:33 +00:00
|
|
|
<html><head>
|
|
|
|
<title>NSFileHandle</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<a href="NSException.html">[Previous]</a>
|
2000-04-10 05:32:04 +00:00
|
|
|
<a href="Base.html">[Up]</a>
|
2000-03-05 17:39:33 +00:00
|
|
|
<a href="NSFileManager.html">[Next]</a>
|
|
|
|
<h1>NSFileHandle</h1>
|
|
|
|
<h3>Authors</h3>
|
|
|
|
<dl>
|
|
|
|
<dt><a href="http://www.gnustep.org/developers/whoiswho.html">Richard Frith-Macdonald</a>
|
|
|
|
<dd>
|
|
|
|
</dl>
|
|
|
|
<p>Version: 0.1</p>
|
|
|
|
<p>Date: 28 February, 2000</p>
|
|
|
|
<h2><a name="cont-0">NSFileHandle</a></h2>
|
|
|
|
<h2><a name="NSFileHandle">NSFileHandle</a></h2>
|
|
|
|
<p><b>Declared in:</b> Foundation/NSFileHandle.h</p>
|
|
|
|
<p><b>Inherits from:</b> NSObject</p>
|
|
|
|
<p><b>Conforms to:</b> NSObject
|
|
|
|
</p>
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li><a href="NSFileHandle.html#method-0">-acceptConnectionInBackgroundAndNotify</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-1">-acceptConnectionInBackgroundAndNotifyForModes:</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-2">-availableData</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-3">-closeFile</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-4">-fileDescriptor</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-6">-initWithFileDescriptor:</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-5">-initWithFileDescriptor:</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-7">-offsetInFile</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-8">-readDataOfLength:</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-9">-readDataToEndFile</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-10">-readInBackgroundAndNotify</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-11">-readInBackgroundAndNotifyForModes:</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-12">-readToEndOfFileInBackgroundAndNotify</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-13">-readToEndOfFileInBackgroundAndNotifyForModes:</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-14">-seekToEndOfFile</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-15">-seekToFileOffset:</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-16">-synchronizeFile</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-17">-truncateFileAtOffset:</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-18">-waitForDataInBackgroundAndNotify</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-19">-waitForDataInBackgroundAndNotifyForModes:</a>
|
|
|
|
<li><a href="NSFileHandle.html#method-20">-writeData:</a>
|
|
|
|
</ul>
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-0">acceptConnectionInBackgroundAndNotify</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>acceptConnectionInBackgroundAndNotify</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-1">acceptConnectionInBackgroundAndNotifyForModes:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>acceptConnectionInBackgroundAndNotifyForModes:</b> (NSArray*)modes;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-2">availableData</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (NSData*) <b>availableData</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-3">closeFile</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>closeFile</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-4">fileDescriptor</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (int) <b>fileDescriptor</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-5">initWithFileDescriptor:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (id) <b>initWithFileDescriptor:</b> (int)fileDescriptor;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-6">initWithFileDescriptor:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (id) <b>initWithFileDescriptor:</b> (int)fileDescriptor;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-7">offsetInFile</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (unsigned long long) <b>offsetInFile</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-8">readDataOfLength:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (NSData*) <b>readDataOfLength:</b> (unsigned int)length;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-9">readDataToEndFile</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (NSData*) <b>readDataToEndFile</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-10">readInBackgroundAndNotify</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>readInBackgroundAndNotify</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-11">readInBackgroundAndNotifyForModes:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>readInBackgroundAndNotifyForModes:</b> (NSArray*)modes;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-12">readToEndOfFileInBackgroundAndNotify</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>readToEndOfFileInBackgroundAndNotify</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-13">readToEndOfFileInBackgroundAndNotifyForModes:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>readToEndOfFileInBackgroundAndNotifyForModes:</b> (NSArray*)modes;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-14">seekToEndOfFile</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (unsigned long long) <b>seekToEndOfFile</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-15">seekToFileOffset:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>seekToFileOffset:</b> (unsigned long long)offset;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-16">synchronizeFile</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>synchronizeFile</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-17">truncateFileAtOffset:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>truncateFileAtOffset:</b> (unsigned long long)offset;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-18">waitForDataInBackgroundAndNotify</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>waitForDataInBackgroundAndNotify</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-19">waitForDataInBackgroundAndNotifyForModes:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>waitForDataInBackgroundAndNotifyForModes:</b> (NSArray*)modes;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-20">writeData:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>writeData:</b> (NSData*)data;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|