Top Description Constructors Methods
org.newsclub.net.unix

public abstract Class AFOutputStream

extends OutputStream
implements FileDescriptorAccess
Class Inheritance
All Implemented Interfaces
org.newsclub.net.unix.FileDescriptorAccess
Known Direct Subclasses
org.newsclub.net.unix.AFSocketImpl.AFOutputStreamImpl
Annotations
@IgnoreJRERequirement
Imports
java.io.IOException, .InputStream, .OutputStream, org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

An OutputStream for AFSocket, etc.
Author
Christian Kohlschütter

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

The number of bytes transferred.
transferFrom
(InputStream
The InputStream to transfer from.
in
)

Reads all bytes from the given input stream and writes the bytes to this output stream in the order that they are read.

Inherited from java.io.OutputStream:
closeflushnullOutputStreamwritewritewrite

Constructor Detail

AFOutputStreamback to summary
pack-priv AFOutputStream()

Method Detail

transferFromback to summary
public long transferFrom(InputStream in) throws IOException

Reads all bytes from the given input stream and writes the bytes to this output stream in the order that they are read. On return, this input stream will be at end of stream. This method does not close either stream. This method effectively is the reverse notation of InputStream#transferTo(OutputStream), which may or may not be optimized for AFSockets.

Parameters
in:InputStream

The InputStream to transfer from.

Returns:long

The number of bytes transferred.

Exceptions
IOException:
on error.