public class

UUEncoderStream

extends FilterOutputStream
java.lang.Object
   ↳ java.io.OutputStream
     ↳ java.io.FilterOutputStream
       ↳ com.google.code.com.sun.mail.util.UUEncoderStream

Class Overview

This class implements a UUEncoder. It is implemented as a FilterOutputStream, so one can just wrap this class around any output stream and write bytes into this filter. The Encoding is done as the bytes are written out.

Summary

Fields
private byte[] buffer
private int bufsize
protected int mode
protected String name
private boolean wrotePrefix
[Expand]
Inherited Fields
From class java.io.FilterOutputStream
Public Constructors
UUEncoderStream(OutputStream out)
Create a UUencoder that encodes the specified input stream
UUEncoderStream(OutputStream out, String name)
Create a UUencoder that encodes the specified input stream
UUEncoderStream(OutputStream out, String name, int mode)
Create a UUencoder that encodes the specified input stream
Public Methods
void close()
void flush()
void setNameMode(String name, int mode)
Set up the buffer name and permission mode.
void write(byte[] b, int off, int len)
void write(byte[] data)
void write(int c)
[Expand]
Inherited Methods
From class java.io.FilterOutputStream
From class java.io.OutputStream
From class java.lang.Object
From interface java.io.Closeable
From interface java.io.Flushable

Fields

private byte[] buffer

private int bufsize

protected int mode

protected String name

private boolean wrotePrefix

Public Constructors

public UUEncoderStream (OutputStream out)

Create a UUencoder that encodes the specified input stream

Parameters
out The output stream

public UUEncoderStream (OutputStream out, String name)

Create a UUencoder that encodes the specified input stream

Parameters
out The output stream
name Specifies a name for the encoded buffer

public UUEncoderStream (OutputStream out, String name, int mode)

Create a UUencoder that encodes the specified input stream

Parameters
out The output stream
name Specifies a name for the encoded buffer
mode Specifies permission mode for the encoded buffer

Public Methods

public void close ()

Throws
IOException

public void flush ()

Throws
IOException

public void setNameMode (String name, int mode)

Set up the buffer name and permission mode. This method has any effect only if it is invoked before you start writing into the output stream

Parameters
name
mode

public void write (byte[] b, int off, int len)

Parameters
b
off
len
Throws
IOException

public void write (byte[] data)

Parameters
data
Throws
IOException

public void write (int c)

Parameters
c
Throws
IOException