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.
-
CrLfOutputStream(OutputStream)
- Constructor.
-
write(byte[], int, int)
- Writes a subarray of bytes.
-
write(int)
- Writes a byte.
CrLfOutputStream
public CrLfOutputStream(OutputStream out)
- Constructor.
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
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