org.yenc
Class YDecoder

java.lang.Object
  |
  +--org.yenc.YDecoder

public final class YDecoder
extends java.lang.Object

Implementation of the decoder for YEncoding project.

This class is to be used to decode files encoded with yenc
See www.yenc.org for details.

To run the project, use:
java org.yenc.YDecoder FileToDecode DestinationFolder

Known limitations:

If you have imporovements to this code, please send them to me or to yenc@infostar.de

Version:
2
Copywrite by Alex Rass 2002. This software is to be distributed in accordance with the GNU piblic license.
Author:
< Alex Rass > sashasemail@yahoo.com

Method Summary
static void decode(java.io.RandomAccessFile file, java.lang.String folder)
          This method does all of the decoding work.
static int getVersionNumber()
          Provides a way to find out which version this decoding engine is up to.
static void main(java.lang.String[] args)
          To Run: java org.yenc.YDecImpl FileToDecode DestinationFolder
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

public static void decode(java.io.RandomAccessFile file,
                          java.lang.String folder)
                   throws java.io.IOException
This method does all of the decoding work.
Parameters:
file - takes a file to read from
folder - destination folder. File will be created based on the name provided by the header. if there is an error in the header and the name can not be obtained, "unknown" is used.
Throws:
java.io.IOException -  

getVersionNumber

public static int getVersionNumber()
Provides a way to find out which version this decoding engine is up to.
Returns:
Version number

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
To Run: java org.yenc.YDecImpl FileToDecode DestinationFolder
Parameters:
args - Command line argument(s)
Throws:
java.io.IOException -