This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


com.sun.mail.util
class UUEncoderStream

com.sun.mail.util.UUEncoderStream

public class UUEncoderStream
extends FilterOutputStream

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.


Field Summary
protected int mode
          
protected String name
          
 
Constructor Summary

          Create a UUencoder that encodes the specified input stream

          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
 
Method Summary
 void

          
 void

          
 void
setNameMode(String name, int mode)

          Set up the buffer name and permission mode.
 void
write(byte[] data)

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

          
 void
write(int c)

          
 

Field Detail

mode

protected int mode

name

protected String name
Constructor Detail

UUEncoderStream

public UUEncoderStream(OutputStream out)
Create a UUencoder that encodes the specified input stream

Parameters:
out - the output stream

UUEncoderStream

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

UUEncoderStream

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
Method Detail

close

public void close()
           throws IOException
Overrides:
close in class FilterOutputStream
Throws:
IOException

flush

public void flush()
           throws IOException
Overrides:
flush in class FilterOutputStream
Throws:
IOException

setNameMode

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

write

public void write(byte[] data)
           throws IOException
Overrides:
write in class FilterOutputStream
Parameters:
data
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class FilterOutputStream
Parameters:
b
off
len
Throws:
IOException

write

public void write(int c)
           throws IOException
Overrides:
write in class FilterOutputStream
Parameters:
c
Throws:
IOException


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention. The official Sun™ documentation can be found here at http://java.sun.com/products/javamail/javadocs/index.html.