net.spy.util
Class UUInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by net.spy.util.ByteConverionInputStream
              extended by net.spy.util.UUInputStream
All Implemented Interfaces:
java.io.Closeable

public class UUInputStream
extends ByteConverionInputStream

This class decodes uuencoded files.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
UUInputStream(java.io.InputStream is)
          Get a UUInputStream decoding the given InputStream.
 
Method Summary
 int available()
          Guess how many bytes are available.
 java.lang.String getFilename()
          Get the filename the uuencoded originally wanted.
 int getMode()
          Get the mode the uuencoded stream originally wanted.
static void main(java.lang.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(java.io.InputStream is)
              throws java.io.IOException
Get a UUInputStream decoding the given InputStream.

Throws:
java.io.IOException
Method Detail

getFilename

public java.lang.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 java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException
See Also:
FilterInputStream

available

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

Overrides:
available in class java.io.FilterInputStream
Throws:
java.io.IOException

main

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

Throws:
java.lang.Exception


Copyright © 1995-2006 SPY Internetworking. All Rights Reserved.