Examples of AlFormatter


Examples of net.sourceforge.align.formatter.AlFormatter

    }

    filter = FilterDecorators.decorate(filter);

    Parser parser = new AlParser(getIn());
    Formatter formatter = new AlFormatter(getOut());
    List<Alignment> alignmentList = parser.parse();
    alignmentList = filter.apply(alignmentList);
    formatter.format(alignmentList);
  }
View Full Code Here

Examples of net.sourceforge.align.formatter.AlFormatter

        }
       
      } else {
        throw new UnknownParameterException("class");
      }
      Formatter formatter = new AlFormatter(getOut());
      formatter.format(alignmentList);
    } catch (IOException e) {
      throw new IORuntimeException(e);
    }
  }
View Full Code Here

Examples of net.sourceforge.align.formatter.AlFormatter

      throw new MissingParameterException("class");
    }
    Formatter formatter;
    if (cls.equals("al")) {
      Writer writer = getSingleWriter(commandLine);
      formatter = new AlFormatter(writer);
    } else if (cls.equals("txt")) {
      if (commandLine.getArgs().length != 2) {
        throw new WrongArgumentCountException("2", commandLine.getArgs().length);
      }
      String sourceFileName = commandLine.getArgs()[0];
View Full Code Here

Examples of net.sourceforge.align.formatter.AlFormatter

      sourceAlgorithm = new NullModifyAlgorithm();
    } else {
      throw new UnknownParameterException("part");
    }
   
    Formatter formatter = new AlFormatter(getOut());
   
    Filter filter = new Modifier(sourceAlgorithm, targetAlgorithm);
    filter = FilterDecorators.decorate(filter);

    if (alignmentList == null) {
      alignmentList = parser.parse();
    }
   
    alignmentList = filter.apply(alignmentList);
    formatter.format(alignmentList);
  }
View Full Code Here

Examples of net.sourceforge.align.formatter.AlFormatter

    }
   
    filter = FilterDecorators.decorate(filter);
   
    Parser parser = new AlParser(getIn());
    Formatter formatter = new AlFormatter(getOut());
    List<Alignment> alignmentList = parser.parse();
    alignmentList = filter.apply(alignmentList);
    formatter.format(alignmentList);
  }
View Full Code Here

Examples of net.sourceforge.align.formatter.AlFormatter

      alignmentList = parser.parse();
      AlignAlgorithm algorithm = createAlgorithm(commandLine, alignmentList);
      filter = new Aligner(algorithm);
    }
    filter = FilterDecorators.decorate(filter);
    Formatter formatter = new AlFormatter(getOut());
    if (alignmentList == null) {
      alignmentList = parser.parse();
    }
    alignmentList = filter.apply(alignmentList);
    formatter.format(alignmentList);
  }
View Full Code Here
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.