APIdia Launch Partner
Top Description Fields Constructors Methods
sun.nio.ch

public Class Streams

extends Object
Class Inheritance
Imports
java.io.InputStream, .OutputStream, java.nio.channels.ReadableByteChannel, .WritableByteChannel

Factory methods for input/output streams based on channels.

Field Summary

Modifier and TypeField and Description
pack-priv static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static InputStream
of(ReadableByteChannel ch)

Return an input stream that reads bytes from the given channel.

public static OutputStream
of(WritableByteChannel ch)

Return an output stream that writes bytes to the given channel.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MAX_BUFFER_SIZEback to summary
pack-priv static final int MAX_BUFFER_SIZE

Constructor Detail

Streamsback to summary
private Streams()

Method Detail

ofback to summary
public static InputStream of(ReadableByteChannel ch)

Return an input stream that reads bytes from the given channel.

ofback to summary
public static OutputStream of(WritableByteChannel ch)

Return an output stream that writes bytes to the given channel.