class PipeSink
source · line 33public
public class PipeSink internal constructor(internal val file: File) : ByteSink, Closeable
- Supertype
ByteSink - Supertype
Closeable - Inherited
fun dispose(): Unit· Closeable
The owned write side of a native pipe.
function close
source · line 53public
public override fun close(): Unit
- Overrides
close
Closes the owned native descriptor; subsequent I/O through this owner is invalid.
function flush
source · line 47public
public override fun flush(): Unit
- Overrides
flush· ByteSink
Checks the unbuffered pipe endpoint state; it does not wait for the reader to consume bytes.
property isClosed
source · line 37public
public val isClosed: Boolean
get: public read-only
Whether this owned resource has been closed.
getter get
source · line 37public
get(): Boolean
function writeFrom
source · line 42public
public override fun writeFrom(buffer: NativeByteBuffer, count: Long): Long
- Overrides
writeFrom· ByteSink
Consumes the selected readable region, returning the actual accepted byte count and permitting short writes.
parameter buffer
source · line 42public
buffer: NativeByteBuffer
parameter count
source · line 42public
count: Long