gnu.mail.util

Class UUOutputStream


public class UUOutputStream
extends FilterOutputStream

UU encoding output stream.

Constructor Summary

UUOutputStream(OutputStream out)
Default constructor.
UUOutputStream(OutputStream out, String filename)
Constructor with filename.
UUOutputStream(OutputStream out, String filename, int mode)
Constructor with filename and mode.

Method Summary

void
close()
void
write(byte[] buf)
void
write(byte[] buf, int off, int len)
void
write(int c)

Constructor Details

UUOutputStream

public UUOutputStream(OutputStream out)
Default constructor. This writes a UU encoded file with the filename "file".


UUOutputStream

public UUOutputStream(OutputStream out,
                      String filename)
Constructor with filename.

Parameters:
filename - the filename to encode into the UU file.


UUOutputStream

public UUOutputStream(OutputStream out,
                      String filename,
                      int mode)
Constructor with filename and mode.

Parameters:
filename - the filename to encode into the UU file.
mode - the file mode to encode

Method Details

close

public void close()
            throws IOException


write

public void write(byte[] buf)
            throws IOException


write

public void write(byte[] buf,
                  int off,
                  int len)
            throws IOException


write

public void write(int c)
            throws IOException