Package winterwell.utils

Examples of winterwell.utils.TodoException


   *           succeeds.
   */
  public static String dig(String site, boolean returnIP) {
    assert site != null;
    if (!Utils.OSisUnix())
      throw new TodoException();
    // Are you after a reverse lookup for a name?
    String x = "";
    if (!returnIP && IP4_ADDRESS.matcher(site).matches()) {
      x = "-x ";
    }
View Full Code Here


        // ifconfig failed?!
        Log.report(e + " " + p.getError(), Level.SEVERE);
        return new ArrayList();
      }
    }
    throw new TodoException();
  }
View Full Code Here

    delete(file);
  }

  private static void deleteNative(File out) {
    if (!Utils.OSisUnix())
      throw new TodoException("" + out);
    Process p = new winterwell.utils.Process("rm -f "
        + out.getAbsolutePath());
    p.run();
    int ok = p.waitFor();
    if (ok != 0)
View Full Code Here

   * @testedby {@link FileUtilsTest#testMakeSymLink()}
   */
  // TODO? Java 7 has sym-link support via Path
  public static void makeSymLink(File original, File out, boolean overwrite) {
    if (!Utils.getOperatingSystem().contains("linux"))
      throw new TodoException();
    // no links to self
    if (original.getAbsolutePath().equals(out.getAbsolutePath()))
      throw new IllegalArgumentException("Cannot sym-link to self: "
          + original + " = " + out);
    // the source must exist
View Full Code Here

  }

  @Override
  public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks)
      throws InterruptedException {
    throw new TodoException();
  }
View Full Code Here

  @Override
  public <T> List<Future<T>> invokeAll(
      Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
      throws InterruptedException {
    throw new TodoException();
  }
View Full Code Here

  }

  @Override
  public <T> T invokeAny(Collection<? extends Callable<T>> tasks)
      throws InterruptedException, ExecutionException {
    throw new TodoException();
  }
View Full Code Here

  @Override
  public <T> T invokeAny(Collection<? extends Callable<T>> tasks,
      long timeout, TimeUnit unit) throws InterruptedException,
      ExecutionException, TimeoutException {
    throw new TodoException();
  }
View Full Code Here

   *
   * @param normal
   * @return
   */
  public static File getVersion(File normal) {
    throw new TodoException();
  }
View Full Code Here

  public X next() {
    if (!rootSent) {
      rootSent = true;
      return tree.getValue();
    }
    throw new TodoException();
  }
View Full Code Here

TOP

Related Classes of winterwell.utils.TodoException

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.