197 <p> |
197 <p> |
198 Private method to check the mode. |
198 Private method to check the mode. |
199 </p> |
199 </p> |
200 <p> |
200 <p> |
201 This method checks, if an operation is permitted according to |
201 This method checks, if an operation is permitted according to |
202 the mode of the file. If it is not, an IOError is raised. |
202 the mode of the file. If it is not, an OSError is raised. |
203 </p> |
203 </p> |
204 <dl> |
204 <dl> |
205 |
205 |
206 <dt><i>mode</i> (string)</dt> |
206 <dt><i>mode</i> (string)</dt> |
207 <dd> |
207 <dd> |
208 the mode to be checked |
208 the mode to be checked |
209 </dd> |
209 </dd> |
210 </dl> |
210 </dl> |
211 <dl> |
211 <dl> |
212 |
212 |
213 <dt>Raises <b>IOError</b>:</dt> |
213 <dt>Raises <b>OSError</b>:</dt> |
214 <dd> |
214 <dd> |
215 raised to indicate a bad file descriptor |
215 raised to indicate a bad file descriptor |
216 </dd> |
216 </dd> |
217 </dl> |
217 </dl> |
218 <a NAME="AsyncFile.close" ID="AsyncFile.close"></a> |
218 <a NAME="AsyncFile.close" ID="AsyncFile.close"></a> |
483 position the offset relates to |
483 position the offset relates to |
484 </dd> |
484 </dd> |
485 </dl> |
485 </dl> |
486 <dl> |
486 <dl> |
487 |
487 |
488 <dt>Raises <b>IOError</b>:</dt> |
488 <dt>Raises <b>OSError</b>:</dt> |
489 <dd> |
489 <dd> |
490 This method is not supported and always raises an |
490 This method is not supported and always raises an |
491 IOError. |
491 OSError. |
492 </dd> |
492 </dd> |
493 </dl> |
493 </dl> |
494 <a NAME="AsyncFile.seekable" ID="AsyncFile.seekable"></a> |
494 <a NAME="AsyncFile.seekable" ID="AsyncFile.seekable"></a> |
495 <h4>AsyncFile.seekable</h4> |
495 <h4>AsyncFile.seekable</h4> |
496 <b>seekable</b>(<i></i>) |
496 <b>seekable</b>(<i></i>) |
517 <p> |
517 <p> |
518 Public method to get the filepointer position. |
518 Public method to get the filepointer position. |
519 </p> |
519 </p> |
520 <dl> |
520 <dl> |
521 |
521 |
522 <dt>Raises <b>IOError</b>:</dt> |
522 <dt>Raises <b>OSError</b>:</dt> |
523 <dd> |
523 <dd> |
524 This method is not supported and always raises an |
524 This method is not supported and always raises an |
525 IOError. |
525 OSError. |
526 </dd> |
526 </dd> |
527 </dl> |
527 </dl> |
528 <a NAME="AsyncFile.truncate" ID="AsyncFile.truncate"></a> |
528 <a NAME="AsyncFile.truncate" ID="AsyncFile.truncate"></a> |
529 <h4>AsyncFile.truncate</h4> |
529 <h4>AsyncFile.truncate</h4> |
530 <b>truncate</b>(<i>size=-1</i>) |
530 <b>truncate</b>(<i>size=-1</i>) |
539 size to truncate to |
539 size to truncate to |
540 </dd> |
540 </dd> |
541 </dl> |
541 </dl> |
542 <dl> |
542 <dl> |
543 |
543 |
544 <dt>Raises <b>IOError</b>:</dt> |
544 <dt>Raises <b>OSError</b>:</dt> |
545 <dd> |
545 <dd> |
546 This method is not supported and always raises an |
546 This method is not supported and always raises an |
547 IOError. |
547 OSError. |
548 </dd> |
548 </dd> |
549 </dl> |
549 </dl> |
550 <a NAME="AsyncFile.writable" ID="AsyncFile.writable"></a> |
550 <a NAME="AsyncFile.writable" ID="AsyncFile.writable"></a> |
551 <h4>AsyncFile.writable</h4> |
551 <h4>AsyncFile.writable</h4> |
552 <b>writable</b>(<i></i>) |
552 <b>writable</b>(<i></i>) |