Examples of format()


Examples of net.sourceforge.squirrel_sql.fw.util.ExceptionFormatter.format()

      }
      catch (Exception e)
      {
         Throwable t = Utilities.getDeepestThrowable(e);
         ExceptionFormatter formatter = _sess.getExceptionFormatter();
         String message = formatter.format(t);
         _sess.showErrorMessage(message);

         if (_sess.getProperties().getWriteSQLErrorsToLog() ||
            (-1 == t.getClass().getName().toLowerCase().indexOf("hibernate") && -1 == t.getClass().getName().toLowerCase().indexOf("antlr")))
         {
View Full Code Here

Examples of net.sourceforge.squirrel_sql.plugins.db2.DB2JCCExceptionFormatter.format()

      catch (final Exception e)
      {
        if (DialectFactory.isDB2(session.getMetaData()))
        {
          final DB2JCCExceptionFormatter formatter = new DB2JCCExceptionFormatter();
          System.err.println("Formatted message: " + formatter.format(e));
        }
        if (DialectFactory.isInformix(session.getMetaData()))
        {
          final InformixExceptionFormatter formatter = new InformixExceptionFormatter(session);
          System.err.println("Formatted message: " + formatter.format(e));
View Full Code Here

Examples of net.sourceforge.squirrel_sql.plugins.informix.exception.InformixExceptionFormatter.format()

          System.err.println("Formatted message: " + formatter.format(e));
        }
        if (DialectFactory.isInformix(session.getMetaData()))
        {
          final InformixExceptionFormatter formatter = new InformixExceptionFormatter(session);
          System.err.println("Formatted message: " + formatter.format(e));
        }
        throw e;
      }
      finally
      {
View Full Code Here

Examples of net.sourceforge.stripes.format.Formatter.format()

        else {
            Formatter formatter = getFormatter(value);
            if (formatter == null)
                return value.toString();
            else
                return formatter.format(value);
        }
    }

    /**
     * Tries to get a formatter for the given value using the {@link FormatterFactory}. Returns
View Full Code Here

Examples of net.yacy.cora.date.GenericFormatter.format()

            if (targetHash != null) parts.put("youare", UTF8.StringBody(targetHash));
           
            // time information for synchronization
            // use our own formatter to prevent concurrency locks with other processes
            GenericFormatter my_SHORT_SECOND_FORMATTER  = new GenericFormatter(GenericFormatter.FORMAT_SHORT_SECOND, GenericFormatter.time_second);
            parts.put("mytime", UTF8.StringBody(my_SHORT_SECOND_FORMATTER.format()));
            parts.put("myUTC", UTF8.StringBody(Long.toString(System.currentTimeMillis())));

            // network identification
            parts.put(SwitchboardConstants.NETWORK_NAME, UTF8.StringBody(networkName));
        }
View Full Code Here

Examples of nexj.core.integration.MessageFormatter.format()

         // Commit the deletes
         uow.commit(false);

         for (Iterator itr = tobjList.iterator(); itr.hasNext();)
         {
            formatter.format((TransferObject)itr.next(), (Message)transformation.getDestination(), new ObjectOutput());
         }

         // Commit the inserts/updates
         uow.commit(false);
      }
View Full Code Here

Examples of opennlp.ccg.lexicon.Tokenizer.format()

          item.setAttribute("info", actualID);
          outRoot.addContent(item);
          signMap.put(actualID, thisParse);
          // Add parsed words as a separate LF element
          Element fullWordsElt = new Element("full-words");
          fullWordsElt.addContent(tokenizer.format(thisParse.getWords()));
          item.addContent(fullWordsElt);
          if (predInfo != null) {
        Element predInfoElt = new Element("pred-info");
        predInfoElt.setAttribute("data", predInfo);
        item.addContent(predInfoElt);
View Full Code Here

Examples of org.apache.beehive.netui.tags.html.FormatTag.Formatter.format()

                    (_formatters.get(i) != null ? _formatters.get(i).getClass().getName() : "null") + "\"";

            Formatter formatter = (Formatter)_formatters.get(i);
            assert formatter != null;
            try {
                formatted = formatter.format(formatted);
            }
            catch(JspException e) {
                /* todo: v1 -- error reporting */
                LOGGER.error(Bundle.getErrorString("CellModel_FormatterThrewException", new Object[]{formatter.getClass().getName(), e}), e);
            }
View Full Code Here

Examples of org.apache.catalina.util.Strftime.format()

  }
    }

    protected String formatDate( Date date, String configTimeFmt ) {
  Strftime strftime = new Strftime( configTimeFmt, DateTool.LOCALE_US );
  return strftime.format( date );
    }
}
View Full Code Here

Examples of org.apache.cocoon.components.language.programming.CodeFormatter.format()

        String encoding = markupLanguage.getEncoding();

        // Format source code if applicable
        CodeFormatter codeFormatter = programmingLanguage.getCodeFormatter();
        if (codeFormatter != null) {
            code = codeFormatter.format(code, encoding);
        }

        // Store generated code
        final File sourceFile = new File(this.workDir, normalizedName + "." + programmingLanguage.getSourceExtension());
        final File sourceDir = sourceFile.getParentFile();
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.