@@ -1419,77 +1419,12 @@ class MyWritable extends Writable { |
1419 | 1419 | The new stream class must then implement one or more specific methods, depending |
1420 | 1420 | on the type of stream being created, as detailed in the chart below: |
1421 | 1421 |
|
1422 | | -<table> |
1423 | | - <thead> |
1424 | | - <tr> |
1425 | | - <th> |
1426 | | - <p>Use-case</p> |
1427 | | - </th> |
1428 | | - <th> |
1429 | | - <p>Class</p> |
1430 | | - </th> |
1431 | | - <th> |
1432 | | - <p>Method(s) to implement</p> |
1433 | | - </th> |
1434 | | - </tr> |
1435 | | - </thead> |
1436 | | - <tr> |
1437 | | - <td> |
1438 | | - <p>Reading only</p> |
1439 | | - </td> |
1440 | | - <td> |
1441 | | - <p>[`Readable`](#stream_class_stream_readable)</p> |
1442 | | - </td> |
1443 | | - <td> |
1444 | | - <p><code>[_read][stream-_read]</code></p> |
1445 | | - </td> |
1446 | | - </tr> |
1447 | | - <tr> |
1448 | | - <td> |
1449 | | - <p>Writing only</p> |
1450 | | - </td> |
1451 | | - <td> |
1452 | | - <p>[`Writable`](#stream_class_stream_writable)</p> |
1453 | | - </td> |
1454 | | - <td> |
1455 | | - <p> |
1456 | | - <code>[_write][stream-_write]</code>, |
1457 | | - <code>[_writev][stream-_writev]</code>, |
1458 | | - <code>[_final][stream-_final]</code> |
1459 | | - </p> |
1460 | | - </td> |
1461 | | - </tr> |
1462 | | - <tr> |
1463 | | - <td> |
1464 | | - <p>Reading and writing</p> |
1465 | | - </td> |
1466 | | - <td> |
1467 | | - <p>[`Duplex`](#stream_class_stream_duplex)</p> |
1468 | | - </td> |
1469 | | - <td> |
1470 | | - <p> |
1471 | | - <code>[_read][stream-_read]</code>, |
1472 | | - <code>[_write][stream-_write]</code>, |
1473 | | - <code>[_writev][stream-_writev]</code>, |
1474 | | - <code>[_final][stream-_final]</code></p> |
1475 | | - </td> |
1476 | | - </tr> |
1477 | | - <tr> |
1478 | | - <td> |
1479 | | - <p>Operate on written data, then read the result</p> |
1480 | | - </td> |
1481 | | - <td> |
1482 | | - <p>[`Transform`](#stream_class_stream_transform)</p> |
1483 | | - </td> |
1484 | | - <td> |
1485 | | - <p> |
1486 | | - <code>[_transform][stream-_transform]</code>, |
1487 | | - <code>[_flush][stream-_flush]</code>, |
1488 | | - <code>[_final][stream-_final]</code> |
1489 | | - </p> |
1490 | | - </td> |
1491 | | - </tr> |
1492 | | -</table> |
| 1422 | +| Use-case | Class | Method(s) to implement | |
| 1423 | +| -------- | ----- | ---------------------- | |
| 1424 | +| Reading only | [`Readable`] | <code>[_read][stream-_read]</code> | |
| 1425 | +| Writing only | [`Writable`] | <code>[_write][stream-_write]</code>, <code>[_writev][stream-_writev]</code>, <code>[_final][stream-_final]</code> | |
| 1426 | +| Reading and writing | [`Duplex`] | <code>[_read][stream-_read]</code>, <code>[_write][stream-_write]</code>, <code>[_writev][stream-_writev]</code>, <code>[_final][stream-_final]</code> | |
| 1427 | +| Operate on written data, then read the result | [`Transform`] | <code>[_transform][stream-_transform]</code>, <code>[_flush][stream-_flush]</code>, <code>[_final][stream-_final]</code> | |
1493 | 1428 |
|
1494 | 1429 | The implementation code for a stream should *never* call the "public" methods |
1495 | 1430 | of a stream that are intended for use by consumers (as described in the |
|