Example usage for org.apache.commons.codec.binary.yenc MultiPartYEnc decode

List of usage examples for org.apache.commons.codec.binary.yenc MultiPartYEnc decode

Introduction

In this page you can find the example usage for org.apache.commons.codec.binary.yenc MultiPartYEnc decode.

Prototype

public void decode(String path) throws YEncException 

Source Link

Usage

From source file:org.ambiance.codec.YEncDecoder.java

/**
 * Decode multiparts archives//from  w  ww  .j  a  v  a2 s  . co m
 * 
 * @see org.ambiance.codec.YEncCodec#decode(java.io.File[])
 */
public void decode(File[] inputs) throws DecoderException {
    if (inputs.length <= 0)
        throw new DecoderException("inputs not be empty");
    try {
        MultiPartYEnc decoder = new MultiPartYEnc(inputs);
        decoder.decode(outputDirName);
    } catch (Exception e) {
        throw new DecoderException(e.getMessage());
    }

}