List of usage examples for org.apache.commons.codec.binary.yenc MultiPartYEnc MultiPartYEnc
public MultiPartYEnc(File[] inputs) throws YEncException
From source file:org.ambiance.codec.YEncDecoder.java
/** * Decode multiparts archives//from w w w . ja va2s. 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()); } }