expose superclass definition also
Return a preferred size for buffering conduit I/O.
Release the underlying file. Note that an exception is not thrown on error, as doing so can induce some spaggetti into error handling. Instead, we need to change this to return a bool instead, so the caller can decide what to do.
Release the underlying file.
Throw an IOException noting the last error.
Read a chunk of bytes from the file into the provided array. Returns the number of bytes read, or Eof where there is no further data.
Read a chunk of bytes from the file into the provided array. Returns the number of bytes read, or Eof where there is no further data.
Allow adjustment of standard IO handles.
Allow adjustment of standard IO handles.
Return the name of this device.
Write a chunk of bytes to the file from the provided array. Returns the number of bytes written, or Eof if the output is no longer available.
Write a chunk of bytes to the file from the provided array. Returns the number of bytes written, or Eof if the output is no longer available.
Return the underlying OS handle of this Conduit.
Return the underlying OS handle of this Conduit.
Windows-specific code.
Clean up when collected. See method detach().
Return the name of this conduit.
Return a preferred size for buffering conduit I/O.
Read from conduit into a target array. The provided dst will be populated with content from the conduit.
Write to conduit from a source array. The provided src content will be written to the conduit.
Disconnect this conduit. Note that this may be invoked both explicitly by the user, and implicitly by the GC. Be sure to manage multiple detachment requests correctly: set a flag, or sentinel value as necessary.
Set the active timeout period for IO calls (in milliseconds.)
Get the active timeout period for IO calls (in milliseconds.)
Is the conduit alive? Default behaviour returns true.
Return the host. This is part of the Stream interface.
Emit buffered output or reset buffered input.
Close this conduit.
Throw an IOException, with the provided message.
Return the input stream.
Return the output stream.
Emit fixed-length content from 'src' into this conduit, throwing an IOException upon Eof.
Consume fixed-length content into 'dst' from this conduit, throwing an IOException upon Eof.
Rewind to beginning of file.
Transfer the content of another conduit to this one. Returns the dst OutputStream, or throws IOException on failure.
Seek on this stream. Source conduits that don't support seeking will throw an IOException.
Load text from a stream, and return them all in an array.
Load the bits from a stream, and return them all in an array. The dst array can be provided as an option, which will be expanded as necessary to consume the input.
Load the bits from a stream, and return them all in an array. The dst array can be provided as an option, which will be expanded as necessary to consume input.
Emit fixed-length content from 'src' into 'output', throwing an IOException upon Eof.
Consume fixed-length content into 'dst' from 'input', throwing an IOException upon Eof.
Low-level data transfer, where max represents the maximum number of bytes to transfer.
Implements a means of reading and writing a file device. Conduits are the primary means of accessing external data, and this one is used as a superclass for the console, for files, sockets etc.