org.brains2b.coffee.util
Class Yenc

java.lang.Object
  extended by org.brains2b.coffee.util.Yenc
Direct Known Subclasses:
YencDecoder

public class Yenc
extends java.lang.Object

[Short description] [Long description]

Version:
$Revision: 1.12 $ $Date: 2009/10/05 02:17:18 $
Author:
dennis@brains2b.nl

Field Summary
 java.util.ArrayList m_parts
           
 
Constructor Summary
Yenc()
           
 
Method Summary
 java.io.File decode()
           
 java.io.File decode(java.io.File f)
           
 java.io.File decode(java.lang.String path)
           
 byte[] decodeBytes()
           
 void decodePiece(java.lang.String s)
           
 java.lang.String encode(java.io.File f, int part, int size)
           
 java.lang.String getFileName()
           
 boolean isComplete()
           
 boolean isStored()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_parts

public java.util.ArrayList m_parts
Constructor Detail

Yenc

public Yenc()
Method Detail

decodePiece

public void decodePiece(java.lang.String s)
                 throws java.lang.Exception
Throws:
java.lang.Exception

encode

public java.lang.String encode(java.io.File f,
                               int part,
                               int size)

decode

public java.io.File decode()
                    throws java.lang.Exception
Throws:
java.lang.Exception

decode

public java.io.File decode(java.lang.String path)
                    throws java.lang.Exception
Throws:
java.lang.Exception

decode

public java.io.File decode(java.io.File f)
                    throws java.lang.Exception
Throws:
java.lang.Exception

decodeBytes

public byte[] decodeBytes()
                   throws java.lang.Exception
Throws:
java.lang.Exception

isComplete

public boolean isComplete()

isStored

public boolean isStored()

getFileName

public java.lang.String getFileName()