All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Nnrpd.CrLfOutputStream

java.lang.Object
   |
   +----java.io.OutputStream
           |
           +----java.io.FilterOutputStream
                   |
                   +----Acme.Nnrpd.CrLfOutputStream

public class CrLfOutputStream
extends FilterOutputStream
RFC977-style output stream.

NNTP requires that all lines be terminated by CR LF. This stream takes standard Java LF-terminated lines and inserts the CRs.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o CrLfOutputStream(OutputStream)
Constructor.

Method Index

 o write(byte[], int, int)
Writes a subarray of bytes.
 o write(int)
Writes a byte.

Constructors

 o CrLfOutputStream
 public CrLfOutputStream(OutputStream out)
Constructor.

Methods

 o write
 public void write(int b) throws IOException
Writes a byte. This method will block until the byte is actually written.

Parameters:
b - the byte to be written
Throws: IOException
if an I/O error has occurred
Overrides:
write in class FilterOutputStream
 o write
 public void write(byte b[],
                   int off,
                   int len) throws IOException
Writes a subarray of bytes.

Parameters:
b - the data to be written
off - the start offset in the data
len - the number of bytes that are written
Throws: IOException
if an I/O error has occurred
Overrides:
write in class FilterOutputStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs