Examples of Writer

Examples of ch.pollet.jzic.writer.Writer


        Database database = new Database();
        Parser parser     = new Parser(database);
        Compiler compiler = new Compiler(database);
        Writer writer = new Writer(database);


        //todo: implement
//        compiler.setMinYear(config.getInt("minYear"));
//        compiler.setMaxYear(config.getInt("maxYear"));

//        database.dump();

View Full Code Here

Examples of com.asakusafw.bulkloader.transfer.FileList.Writer

            final PipedInputStream downstream = new PipedInputStream(remoteStdout);

            final Future<Void> future = Executors.newFixedThreadPool(1).submit(new Callable<Void>() {
                public Void call() throws Exception {
                    Writer writer = FileList.createWriter(remoteStdout, false);
                    Reader reader = FileList.createReader(remoteStdin);
                    try {
                        remote.execute(reader, writer);
                    } finally {
                        // closes quitetly for piped streams
View Full Code Here

Examples of com.envoisolutions.sxc.Writer

                    throws Exception {
                    return gr.read(xsr, ctx, type);
            this.writer = new Writer(this) {
                public void write(XoXMLStreamWriter xw, Object o, Map<String, Object> properties) throws Exception {
                    gw.write(xw, ctx, o);
View Full Code Here

Examples of com.google.devtools.moe.client.writer.Writer

    Ui.Task t = AppContext.RUN.ui.pushTask(
        String.format("Creating Writer \"%s\"", term));
    try {
      Writer writer = wc.create(term.options);
      AppContext.RUN.ui.popTaskAndPersist(t, writer.getRoot());
      return writer;
    } catch (WritingError e) {
      AppContext.RUN.ui.error(e, "Error creating writer");
      throw e;
View Full Code Here

Examples of com.google.gwt.i18n.server.MessageCatalogFactory.Writer

      ResourceList resourceList, MessageCatalogFactory msgCatFactory,
      String genPath) {
    // TODO(jat): maintain MessageCatalogWriter instances across
    // generator runs so they can save state.  One problem is knowing
    // when the last generator has been run.
    Writer catWriter = null;
    try {
      String catalogName = genPath + msgCatFactory.getExtension();
      Context ctx = new MessageCatalogContextImpl(
          context, logger);
      MessageInterface msgIntf = new TypeOracleMessageInterface(
          LocaleUtils.getLocaleFactory(), targetClass, resourceList);
      catWriter = msgCatFactory.getWriter(ctx, catalogName);
      if (catWriter == null) {
        if (logger.isLoggable(TreeLogger.TRACE)) {
          logger.log(TreeLogger.TRACE, "Already generated " + catalogName);
        return false;
    } catch (MessageProcessingException e) {
      logger.log(TreeLogger.ERROR, e.getMessage(), e);
      seenError = true;
    } finally {
      if (catWriter != null) {
        try {
        } catch (IOException e) {
              "IO error closing catalog writer", e);
          seenError = true;
View Full Code Here

Examples of com.google.javascript.jscomp.jsonml.Writer

       + "\n" + explanation, explanation);

  private void testAstToJsonMLConverstion(Node astRoot, JsonML jsonmlRoot,
      String js) {
    JsonML resultJsonMLRoot = (new Writer()).processAst(astRoot);
    String explanation = JsonMLUtil.compare(resultJsonMLRoot, jsonmlRoot);
    assertNull("AST -> JsonML converter returned incorrect result for " + js +
        "\n" + explanation, explanation);
View Full Code Here

Examples of com.google.zxing.Writer

        BitMatrix matrix = null;
        int h = size;
        int w = size;
        int barsize = -1;
        Writer writer = new MultiFormatWriter();
        try {
            Map<EncodeHintType, Object> hints = new EnumMap<EncodeHintType, Object>(EncodeHintType.class);
            hints.put(EncodeHintType.CHARACTER_SET, "ISO-8859-1");
            QRCode code = Encoder.encode(paymentString, ErrorCorrectionLevel.M, hints);
            hints.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.M);
            barsize = size / (code.getMatrix().getWidth() + 8);
            matrix = writer.encode(paymentString, com.google.zxing.BarcodeFormat.QR_CODE, w, h, hints);
        } catch (com.google.zxing.WriterException e) {

        if (matrix == null || barsize < 0) {
View Full Code Here

Examples of com.packtpub.java7.concurrency.chapter2.recipe4.task.Writer

      readers[i]=new Reader(pricesInfo);
      threadsReader[i]=new Thread(readers[i]);
    // Creates a writer and a thread to run it
    Writer writer=new Writer(pricesInfo);
    Thread threadWriter=new Thread(writer);
    // Starts the threads
    for (int i=0; i<5; i++){
View Full Code Here

Examples of com.toc.logging.writer.Writer

      //If the logging function is disable, do nothing.
      if(enabled) {
        if(writers.size() > 0) {
          //Fetch each writer in the configuration object and notify the writer to output the message
          for(Iterator<Writer> it = writers.iterator();it.hasNext();) {
            Writer writer = it.next();
            try {
              writer.write(message, type, depth+1);
            } catch(Exception e) {
              //If the the writer raise an error when process the message, remove the writer from the configuration object to avoid the error happen again.
View Full Code Here

Examples of darkyenus.utils.files.Writer

                newFile = new File(reference.getWorkingDirectory(), arguments[0]);

            String toWrite = StringUtil.join(arguments,"\n",hasMuteFlag?2:1);
            Writer writer = new Writer(newFile);
            return "null";
        } catch (Exception ex) {
            if (!hasMuteFlag) {
                System.out.println("Could not read file: "+ex);
View Full Code Here
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.