mondrian.util
Class Format.JavaFormat

java.lang.Object
  extended by mondrian.util.Format.BasicFormat
      extended by mondrian.util.Format.JavaFormat
Enclosing class:
Format

static class Format.JavaFormat
extends Format.BasicFormat

JavaFormat is an implementation of Format.BasicFormat which prints values using Java's default formatting for their type. null values appear as an empty string.

 

Field Summary
 
Fields inherited from class mondrian.util.Format.BasicFormat
code
 
Constructor Summary
Format.JavaFormat(Locale locale)
           
 
Method Summary
(package private)  void format(Calendar calendar, StringBuilder buf)
           
(package private)  void format(double d, StringBuilder buf)
           
(package private)  void format(long n, StringBuilder buf)
           
(package private)  void format(String s, StringBuilder buf)
           
 
Methods inherited from class mondrian.util.Format.BasicFormat
format, formatNull, isApplicableTo, isApplicableTo, isDate, isNumeric, isString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Format.JavaFormat

Format.JavaFormat(Locale locale)
Method Detail

format

void format(double d,
            StringBuilder buf)
Overrides:
format in class Format.BasicFormat

format

void format(long n,
            StringBuilder buf)
Overrides:
format in class Format.BasicFormat

format

void format(String s,
            StringBuilder buf)
Overrides:
format in class Format.BasicFormat

format

void format(Calendar calendar,
            StringBuilder buf)
Overrides:
format in class Format.BasicFormat

SourceForge.net_Logo