consciouscode.util
Class SsnFormat

java.lang.Object
  extended by java.text.Format
      extended by consciouscode.util.SsnFormat
All Implemented Interfaces:
Serializable, Cloneable

public class SsnFormat
extends Format

A Format object that renders a Social Security Number.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.Format
Format.Field
 
Constructor Summary
SsnFormat()
           
 
Method Summary
 StringBuffer format(Object object, StringBuffer buffer, FieldPosition pos)
           
static SsnFormat getInstance()
           
 Object parseObject(String source, ParsePosition status)
          Not implemented.
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SsnFormat

public SsnFormat()
Method Detail

getInstance

public static final SsnFormat getInstance()

format

public StringBuffer format(Object object,
                           StringBuffer buffer,
                           FieldPosition pos)
Specified by:
format in class Format

parseObject

public Object parseObject(String source,
                          ParsePosition status)
Not implemented.

Specified by:
parseObject in class Format
Throws:
UnsupportedOperationException - on every call.


Copyright © 2001–2012 Todd V. Jonker. All Rights Reserved.