net.spy.util
Class UUInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended bynet.spy.util.ByteConverionInputStream
              extended bynet.spy.util.UUInputStream

public class UUInputStream
extends ByteConverionInputStream

This class decodes uuencoded files.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
UUInputStream(InputStream is)
          Get a UUInputStream decoding the given InputStream.
 
Method Summary
 int available()
          Guess how many bytes are available.
 String getFilename()
          Get the filename the uuencoded originally wanted.
 int getMode()
          Get the mode the uuencoded stream originally wanted.
static void main(String[] args)
          Test UU decode.
 int read()
           
 
Methods inherited from class net.spy.util.ByteConverionInputStream
markSupported, read
 
Methods inherited from class java.io.FilterInputStream
close, mark, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UUInputStream

public UUInputStream(InputStream is)
              throws IOException
Get a UUInputStream decoding the given InputStream.

Method Detail

getFilename

public String getFilename()
Get the filename the uuencoded originally wanted.


getMode

public int getMode()
Get the mode the uuencoded stream originally wanted.


read

public int read()
         throws IOException
Throws:
IOException
See Also:
FilterInputStream

available

public int available()
              throws IOException
Guess how many bytes are available.

Throws:
IOException

main

public static void main(String[] args)
                 throws Exception
Test UU decode.

Throws:
Exception