Package pt.opensoft.io

Examples of pt.opensoft.io.FileResourceFactory


  }

  private static void init() {
//    ResourceLoader.setDebug(true);
    ResourceLoader.addResourceFactory(new ClasspathResourceFactory());
    ResourceLoader.addResourceFactory(new FileResourceFactory("."));
  }
View Full Code Here


      System.out.println("             -m: mensagem formatada");
      System.exit(-1);
    }
    HostProxyImpl proxy = new HostProxyImpl(args[0], Integer.parseInt(args[1]), Integer.parseInt(args[2]));
    if ("-f".equals(args[3])) {
      ResourceLoader.addResourceFactory(new FileResourceFactory());
      proxy.send(FileUtil.readFile(args[4]));
    } else if ("-m".equals(args[3])) {
      proxy.send(args[4]);
    } else {
      throw new HostException("Opcao invalida: '" + args[3] + "'. Devera ser '-f' ou '-m'");
View Full Code Here

TOP

Related Classes of pt.opensoft.io.FileResourceFactory

Copyright © 2018 www.massapicom. 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.