Transfers bytes into the given channel target. On entry, throughBuffer will be cleared. On exit, the buffer will be
flipped for emptying, and may possibly be empty or may contain data. If this method returns a value less than
count, then the remaining data in throughBuffer may contain data read from this channel which must
be written to target to complete the operation.
Parameters:
count - the number of bytes to be transferred
throughBuffer - the buffer to copy through.
target - the destination to write to
Returns:
the number of bytes (possibly 0) that were actually transferred, or -1 if the end of input was reached
Read a sequence of bytes from this conduit to the given buffer.
Parameters:
src - the buffer to fill with data from the conduit
Returns:
the number of bytes (possibly 0) that were actually transferred, or -1 if the end of input was reached or
this conduit's SourceConduit.terminateReads() method was previously called
Read a sequence of bytes from this conduit to the given buffers.
Parameters:
srcs - the buffers to fill with data from the conduit
offs - the offset into the buffer array
len - the number of buffers to fill
Returns:
the number of bytes (possibly 0) that were actually transferred, or -1 if the end of input was reached or
this conduit's SourceConduit.terminateReads() method was previously called