Examples of format()


Examples of com.browseengine.bobo.facets.data.TermValueList.format()

    {
      int i = 1;
      Integer docId;
      for (Map.Entry<Object, LinkedList<Integer>> entry : dataMap.entrySet())
      {
        list.add(list.format(entry.getKey()));
        docList = entry.getValue();
        freqs[i] = docList.size();
        minIDs[i] = docList.get(0);
        while((docId = docList.poll()) != null)
        {
View Full Code Here

Examples of com.brsanthu.dataexporter.model.Column.format()

           
            if (callback != null) {
                callback.beforeCell(cellDetails);
            }

            List<String> cells = column.align(cellDetails, column.format(cellDetails));
            for (int j = 0; j < maxRowHeight; j++) {
                rowLines.get(j).add(cells.get(j));
            }

            if (callback != null) {
View Full Code Here

Examples of com.caucho.util.QDate.format()

    else {
      QDate date = env.getGmtDate();
     
      date.setGMTTime(now + 1000L * (long) maxAge);
      cookieHeader.append("; expires=");
      cookieHeader.append(date.format("%a, %d-%b-%Y %H:%M:%S GMT"));
    }

    if (path != null && ! path.equals("")) {
      cookieHeader.append("; path=");
      cookieHeader.append(path);
View Full Code Here

Examples of com.cedarsoft.Version.format()

  }

  private static void writeContent( @NotNull List<? extends Version> keyVersions, @NotNull Iterable<? extends Column> columns, @NotNull Writer out ) throws IOException {
    for ( int i = 0, keyVersionsSize = keyVersions.size(); i < keyVersionsSize; i++ ) {
      Version keyVersion = keyVersions.get( i );
      out.write( extend( keyVersion.format() ) );
      out.write( FIRST_COLUMN_SEPARATOR );


      //Now write the columns
      for ( Column column : columns ) {
View Full Code Here

Examples of com.cedarsoft.version.Version.format()

  }

  private static void writeContent( @Nonnull List<? extends Version> keyVersions, @Nonnull Iterable<? extends Column> columns, @Nonnull Writer out ) throws IOException {
    for ( int i = 0, keyVersionsSize = keyVersions.size(); i < keyVersionsSize; i++ ) {
      Version keyVersion = keyVersions.get( i );
      out.write( extend( keyVersion.format() ) );
      out.write( FIRST_COLUMN_SEPARATOR );


      //Now write the columns
      for ( Column column : columns ) {
View Full Code Here

Examples of com.cedarsoftware.ncube.formatters.HtmlFormatter.format()

     * @return String containing an HTML view of this NCube.
     */
    public String toHtml(String ... headers)
    {
        HtmlFormatter formatter = new HtmlFormatter(this);
        return formatter.format(headers);
    }

    public String toString()
    {
        StringBuilder s = new StringBuilder();
View Full Code Here

Examples of com.cedarsoftware.ncube.formatters.JsonFormatter.format()

    }

    public String toFormattedJson()
    {
        JsonFormatter formatter = new JsonFormatter(this);
        return formatter.format();
    }

    public String toString()
    {
        return toFormattedJson();
View Full Code Here

Examples of com.cedarsolutions.util.JavaLoggingFormatter.LogInfo.format()

        assertEquals(org.apache.log4j.Level.INFO, info.getLevel());
        assertEquals("test.class.Name", info.getClassName());
        assertEquals("message", info.getMessage());

        String zone = DateUtils.formatDate(now, "Z"); // like "-0500"
        assertEquals("2011-10-07 13:01:42,663 " + zone + " [INFO ] --> [test.class.Name] message" + StringUtils.LINE_ENDING, info.format());
    }

    /** Test LogInfo.deriveLevel(). */
    @Test public void testDeriveLevel() {
        java.util.logging.Level[] input = new java.util.logging.Level[] { java.util.logging.Level.OFF,
View Full Code Here

Examples of com.clarkparsia.pellint.format.LintFormat.format()

        .append(pattern.getDescription())
        .append("]\n");
     
      LintFormat lintFormat = pattern.getDefaultLintFormat();
      for (Lint lint : m_Lints.get(pattern)) {
        strBuilder.append(lintFormat.format(lint));
      }
     
      strBuilder.append('\n');
    }
   
View Full Code Here

Examples of com.cloudera.flume.handlers.avro.AvroJsonOutputFormat.format()

    snk.append(e);
    snk.close();

    ByteArrayOutputStream exWriter = new ByteArrayOutputStream();
    AvroJsonOutputFormat ajof = new AvroJsonOutputFormat();
    ajof.format(exWriter, e);
    exWriter.close();
    String expected = new String(exWriter.toByteArray());

    // check the output to make sure it is what we expected.
    File fo = new File(f.getPath() + "/sub-foo");
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.