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 UUDecoderStream

com.sun.mail.util.UUDecoderStream

public class UUDecoderStream
extends FilterInputStream

This class implements a UUDecoder. It is implemented as a FilterInputStream, so one can just wrap this class around any input stream and read bytes from this filter. The decoding is done as the bytes are read out.


Constructor Summary

          Create a UUdecoder that decodes the specified input stream
 
Method Summary
 int

          
 int

          Get the "mode" field from the prefix.
 String

          Get the "name" field from the prefix.
 boolean

          
 int

          Read the next decoded byte from this input stream.
 int
read(byte[] buf, int off, int len)

          
 

Constructor Detail

UUDecoderStream

public UUDecoderStream(InputStream in)
Create a UUdecoder that decodes the specified input stream

Parameters:
in - the input stream
Method Detail

available

public int available()
              throws IOException
Overrides:
available in class FilterInputStream
Throws:
IOException

getMode

public int getMode()
            throws IOException
Get the "mode" field from the prefix. This is the permission mode of the source file.

Returns:
permission mode of source file
Throws:
IOException - if an I/O error occurs.

getName

public String getName()
               throws IOException
Get the "name" field from the prefix. This is meant to be the pathname of the decoded file

Returns:
name of decoded file
Throws:
IOException - if an I/O error occurs.

markSupported

public boolean markSupported()
Overrides:
markSupported in class FilterInputStream

read

public int read()
         throws IOException
Read the next decoded byte from this input stream. The byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned. This method blocks until input data is available, the end of the stream is detected, or an exception is thrown.

Overrides:
read in class FilterInputStream
Returns:
next byte of data, or -1 if the end of stream is reached.
Throws:
IOException - if an I/O error occurs.

read

public int read(byte[] buf,
                int off,
                int len)
         throws IOException
Overrides:
read in class FilterInputStream
Parameters:
buf
off
len
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.