Examples of format()


Examples of org.openstreetmap.osmosis.core.time.DateFormatter.format()

    if (dateFormatter == null) {
      dateFormatter = new DateFormatter();
      dateFormatterStore.set(dateFormatter);
    }
   
    return dateFormatter.format(timestamp);
  }
 
 
  /**
   * {@inheritDoc}
 
View Full Code Here

Examples of org.osgeo.proj4j.units.AngleFormat.format()

                  " +a="+a
                  );
        if ( es != 0 )
            sb.append( " +es="+es );
        sb.append( " +lon_0=" );
        format.format( projectionLongitude, sb, null );
        sb.append( " +lat_0=" );
        format.format( projectionLatitude, sb, null );
        if ( falseEasting != 1 )
            sb.append( " +x_0="+falseEasting );
        if ( falseNorthing != 1 )
View Full Code Here

Examples of org.outerj.i18n.DateFormat.format()

        }
    }

    public String convertToString(Object value, Locale locale, Convertor.FormatCache formatCache) {
        DateFormat dateFormat = getDateFormat(locale, formatCache);
        return dateFormat.format((Date)value);
    }

    private final DateFormat getDateFormat(Locale locale, Convertor.FormatCache formatCache) {
        DateFormat dateFormat = null;
        if (formatCache != null)
View Full Code Here

Examples of org.outerj.i18n.DecimalFormat.format()

    }

    public String convertToStringLocalized(Object value, Locale locale) {
        DecimalFormat numberFormat = I18nSupport.getInstance().getIntegerFormat(locale);
        // TODO numberFormat.applyPattern(...)
        return numberFormat.format(value);
    }

    public Class getTypeClass() {
        return Long.class;
    }
View Full Code Here

Examples of org.pdf4j.saxon.number.NumberFormatter.format()

            nf.prepare(format.evaluateAsString(context).toString());
        } else {
            nf = formatter;
        }

        CharSequence s = nf.format(vec, gpsize, gpseparator, letterVal, ordinalVal, numb);
        return new StringValue(s);
    }

    /**
     * Load a Numberer class for a given language and check it is OK.
View Full Code Here

Examples of org.pentaho.reporting.libraries.formatting.FastDecimalFormat.format()

    }

    final FastDecimalFormat decimalFormat =
        new FastDecimalFormat("######################0.0########", Locale.US);
    final StringBuffer b = new StringBuffer(coordinates.length * 10);
    b.append(decimalFormat.format(coordinates[0] * scale));
    for (int i = 1; i < coordinates.length; i++)
    {
      final float coordinate = coordinates[i];
      b.append(',');
      b.append(decimalFormat.format(coordinate * scale));
 
View Full Code Here

Examples of org.pentaho.reporting.libraries.formatting.FastMessageFormat.format()

      this.lastRowCount = rowCount;
      if (logger.isDebugEnabled())
      {
        final FastMessageFormat messageFormat =
            new FastMessageFormat("{0} Rows: {1} ({2,number,0.000} rows/sec) ");
        logger.debug(new MemoryUsageMessage(messageFormat.format(
            new Object[]{message, rowCount, rowsPerSec})));
      }
    }
  }
View Full Code Here

Examples of org.photovault.imginfo.FuzzyDate.format()

  log.debug( "Checking that all are found" );
  for ( int n = 0; n < expected.length; n++ ) {
      if ( expected[n] ) {
                PhotoInfo photo = (PhotoInfo)photos.elementAt( n );
                FuzzyDate d = new FuzzyDate( photo.getShootTime(), photo.getTimeAccuracy() );
    fail( "Photo "+ n + " (id" + photo.getUid() + ", dated " + d.format() + ") not included in result set" );
      }
  }
    }

    class TestListener implements PhotoCollectionChangeListener {
View Full Code Here

Examples of org.restlet.routing.Template.format()

     * @return The URI of the mail.
     * @throws ResourceException
     */
    protected Reference getMailRef(String identifier) throws ResourceException {
        final Template mailTemplate = new Template(getMailUriTemplate());
        Reference result = new Reference(mailTemplate.format(new MailResolver(
                identifier)));

        if (result.isRelative()) {
            result.setBaseRef(getMailboxUri());
            result = result.getTargetRef();
View Full Code Here

Examples of org.restlet.util.Template.format()

                // Template URI detected, create the template
                Template template = new Template(getContext().getLogger(),
                        targetUri);

                // Set the formatted target URI
                request.setResourceRef(template.format(request, response));
            }

            // Actually dispatch the formatted URI
            this.helper.handle(request, response);
        }
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.