Java™ Platform
Standard Ed. 6

Uses of Interface
java.nio.channels.WritableByteChannel

Packages that use WritableByteChannel
java.nio.channels Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations. 
 

Uses of WritableByteChannel in java.nio.channels
 

Subinterfaces of WritableByteChannel in java.nio.channels
 interface ByteChannel
          A channel that can read and write bytes.
 interface GatheringByteChannel
          A channel that can write bytes from a sequence of buffers.
 

Classes in java.nio.channels that implement WritableByteChannel
 class DatagramChannel
          A selectable channel for datagram-oriented sockets.
 class FileChannel
          A channel for reading, writing, mapping, and manipulating a file.
static class Pipe.SinkChannel
          A channel representing the writable end of a Pipe.
 class SocketChannel
          A selectable channel for stream-oriented connecting sockets.
 

Methods in java.nio.channels that return WritableByteChannel
static WritableByteChannel Channels.newChannel(OutputStream out)
          Constructs a channel that writes bytes to the given stream.
 

Methods in java.nio.channels with parameters of type WritableByteChannel
static OutputStream Channels.newOutputStream(WritableByteChannel ch)
          Constructs a stream that writes bytes to the given channel.
static Writer Channels.newWriter(WritableByteChannel ch, CharsetEncoder enc, int minBufferCap)
          Constructs a writer that encodes characters using the given encoder and writes the resulting bytes to the given channel.
static Writer Channels.newWriter(WritableByteChannel ch, String csName)
          Constructs a writer that encodes characters according to the named charset and writes the resulting bytes to the given channel.
abstract  long FileChannel.transferTo(long position, long count, WritableByteChannel target)
          Transfers bytes from this channel's file to the given writable byte channel.
 


Java™ Platform
Standard Ed. 6

Submit a bug or feature
For further API reference and developer documentation, see Java SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

Scripting on this page tracks web page traffic, but does not change the content in any way.