Package org.jboss.fresh.io

Examples of org.jboss.fresh.io.BufferWriter


   */

  public void process(String exepath, String[] params) throws Exception {
    log.debug("entered");
   
    PrintWriter2 out = new PrintWriter2(new BufferWriter(getStdOut()));
    if (helpRequested() || (params.length != 2 && params.length != 0)) {
      out = new PrintWriter2(new BufferWriter(getStdOut()));
      out.println("Usage: mount [--help] [<path> <vfs>]");
      out.println("    path : mount point");
      out.println("    vfs : pointer to vfs bound in registry");
      out.println("    --help : this help");
      out.println();
View Full Code Here


    if (helpRequested()) {
      usage();
      return;
    }

    PrintWriter2 pout = new PrintWriter2(new BufferWriter(getStdOut()));

    boolean alpha = false;
    int srv = 1;
    char action = QUERY;
    boolean info = false;
View Full Code Here

    }
  }


  void usage() throws Exception {
    PrintWriter2 pout = new PrintWriter2(new BufferWriter(getStdOut()));
    pout.println("Usage:  mbquery [-a] <query pattern>");
    pout.println();
    pout.println("          -a : list results in alphabetical order.");
    pout.println("          -s : server expressed as ordinal");
    pout.println("          -l : list available servers");
View Full Code Here

  public void process(String exename, String[] params) throws Exception {
    log.debug("entered");

    if (helpRequested()) {
      PrintWriter out = new PrintWriter(new BufferWriter(getStdOut()));
      out.print("  Usage:\n");
      out.print("     mv [--help] [-ex] FILES DEST_DIR\n");
      out.print("         FILES : files to be moved.\n");
      out.print("      DEST_DIR : the directory for the specified files to be moved to.\n");
      out.print("    mv [--help] [-ex] FILE DEST_FILE\n");
      out.print("           FILE : file to be moved.\n");
      out.print("      DEST_FILE : the file path where the specified file is going to be moved to.\n");
      out.print("  -f force command, if one of the specified files does not exist then continue with the copying anyway.\n");
      out.close();
      log.debug("done");
      return;
    }

    try {
      PrintWriter out = new PrintWriter(new BufferWriter(getStdOut()));
      VFS vfs = shell.getVFS();
      FileName pwd = new FileName(shell.getEnvProperty("PWD"));

      LinkedList paths = new LinkedList();
      boolean force = false;
View Full Code Here

    public void process(String exepath, String[] params) throws Exception {
        log.debug("entered");


        PrintWriter2 out = new PrintWriter2(new BufferWriter(getStdOut()));

        boolean g = false;
        boolean l = false;
        boolean b = false;
        boolean u = false;
View Full Code Here

  }
*/


  private void usage() {
    PrintWriter2 out = new PrintWriter2(new BufferWriter(getStdOut()));
    out.println("Usage: eventnet [-h <host_label>] [-a <application>] -i <agentid>");
    out.println("    -h,  --host : host label");
    out.println("    -a,  --app  : application (this parameter is optional)");
    out.println("    -i,  --id   : agent id");
    out.println("    --help : this help");
View Full Code Here

  public void throwException(String msg) throws Exception {
    if (canThrowEx()) {
      throw new RuntimeException(msg);
    } else {
      PrintWriter out = new PrintWriter(new BufferWriter(getStdOut()));
      out.println(msg);
      out.close();
      log.error(msg, new RuntimeException());
      return;
    }
View Full Code Here

  public void process(String exename, String[] params) throws Exception {
    log.debug("entered");

    if (helpRequested()) {
      PrintWriter out = new PrintWriter(new BufferWriter(getStdOut()));
      out.print("Usage: bintobuffimg [-ex] [--help]");
      out.print("\n\n   Takes a binary image (contents of an image file) from the stream and pipes a BufferedImage object through the pipe.");
      out.print("\n\n --help : this help");
      out.close();
      log.debug("done");
View Full Code Here

  public void process(String exename, String[] params) throws Exception {
    log.debug("entered");

    if (helpRequested()) {
      PrintWriter2 out = new PrintWriter2(new BufferWriter(getStdOut()));
      out.println("Usage: RM [--help] [-ex] FILES");
      out.println("    FILES : files to be removed.");
      out.println("    --help : this help");
      out.close();
      log.debug("done");
      return;
    }

    PrintWriter2 out = new PrintWriter2(new BufferWriter(getStdOut()));
    VFS vfs = shell.getVFS();
    FileName pwd = new FileName(shell.getEnvProperty("PWD"));

    List paths = new LinkedList();
View Full Code Here

  public void process(String exename, String[] params) throws Exception {
    log.debug("entered");

    if (helpRequested()) {
      PrintWriter2 out = new PrintWriter2(new BufferWriter(getStdOut()));
      out.println("Usage: info [--help] [-ex] [-d] files");
      out.println("    -d = direct (if links are not resolved)");
      out.println("    -ex = if the executable is allowed to throw an exception or just print an error message.");
      out.println("    --help : this help");
      out.close();
      log.debug("done");
      return;
    }

    PrintWriter2 out = new PrintWriter2(new BufferWriter(getStdOut()));

    VFS vfs = shell.getVFS();
    FileName pwd = new FileName(shell.getEnvProperty("PWD"));

    boolean direct = false;
View Full Code Here

TOP

Related Classes of org.jboss.fresh.io.BufferWriter

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.