Package decodepcode

Source Code of decodepcode.FileProcessorFactory

package decodepcode;

import java.io.File;
import java.util.Properties;

import decodepcode.Controller.WriteDecodedPPCtoDirectoryTree;

public class FileProcessorFactory implements ContainerProcessorFactory
{
  File outDir;
  public ContainerProcessor getContainerProcessor()
  {
    return new WriteDecodedPPCtoDirectoryTree(getMapper(), "pcode")
  }

  public void setParameters(Properties properties, String suffix)
  {
    String outDirStr = properties.getProperty("outdir" + suffix);
    if (outDirStr != null)
      outDir = new File(outDirStr);
    else
      outDir = new File(".", "output");
  }

  public PToolsObjectToFileMapper getMapper()
  {
    return new DirTreePTmapper( outDir );
  }
}
TOP

Related Classes of decodepcode.FileProcessorFactory

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.