org.metasyntactic.codec.uu
Class UUDecoder

java.lang.Object
  |
  +--org.metasyntactic.codec.uu.UUDecoder
All Implemented Interfaces:
Decoder, java.lang.Runnable

public class UUDecoder
extends java.lang.Object
implements Decoder


Constructor Summary
UUDecoder(java.io.BufferedReader in, java.io.OutputStream out)
          Reads UU encoded data from 'in', and writes it to 'out'.
UUDecoder(java.io.InputStream in, java.io.OutputStream out)
           
UUDecoder(java.io.Reader in, java.io.OutputStream out)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UUDecoder

public UUDecoder(java.io.InputStream in,
                 java.io.OutputStream out)
          throws java.io.IOException

UUDecoder

public UUDecoder(java.io.Reader in,
                 java.io.OutputStream out)
          throws java.io.IOException

UUDecoder

public UUDecoder(java.io.BufferedReader in,
                 java.io.OutputStream out)
          throws java.io.IOException
Reads UU encoded data from 'in', and writes it to 'out'. Note! The calling method must trim the first line of the uu-encoded file (the line looking like "begin ### file-name"). This class assumes it will merely be decoding uu-encoded data.

Parameters:
in - The source of the uu-encoded data
out - The sink for the decoded data
Throws:
java.io.IOException - If an IOException occurs with the underlying io streams
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable