API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.nio.channels. Channels View Source
Author(s)
Mark Reinhold
Mike McCloskey
JSR-51 Expert Group
Since
1.4
Version
1.25, 05/11/17
Serial
Hierarchy
 Object
      Channels
Implements
Subclasses
Description
publicfinal class Channels
  Utility methods for channels and streams.
See also:   
Constructors
private Channels ()
Methods
Hide/Show inherited methods
publicstatic ReadableByteChannel newChannel (InputStream in)
  Constructs a channel that reads bytes from the given stream.
publicstatic WritableByteChannel newChannel (OutputStream out)
  Constructs a channel that writes bytes to the given stream.
publicstatic InputStream newInputStream (ReadableByteChannel ch)
  Constructs a stream that reads bytes from the given channel.
publicstatic OutputStream newOutputStream (WritableByteChannel ch)
  Constructs a stream that writes bytes to the given channel.
publicstatic Reader newReader (ReadableByteChannel ch, CharsetDecoder dec, int minBufferCap)
  Constructs a reader that decodes bytes from the given channel using the given decoder.
publicstatic Reader newReader (ReadableByteChannel ch, String csName)
  Constructs a reader that decodes bytes from the given channel according to the named charset.
publicstatic Writer 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.
publicstatic Writer 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.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar