This class represents a file system descriptor.
A file descriptor represents I/O objects, such as open files and sockets.
Defined in: FileDescriptor.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
|
close()
Closes this file.
|
|
|
flush()
Flushs this file.
|
|
|
Tells if this stream supports the mark and reset methods.
|
|
|
read(buffer)
Reads this file into a buffer.
|
|
|
readByte()
Reads a byte.
|
|
|
readByteArray(barray, offset, length)
Reads bytes into the specified byte array, starting at the given offset.
|
|
|
write(buffer)
Writes a buffer into this file.
|
|
|
writeByte(b)
Writes a byte.
|
|
|
writeByteArray(barray, offset, length)
Writes bytes from the specified byte array starting at the given offset.
|