org.dicom4j.core.utils
Class DicomDateFormat

java.lang.Object
  extended by org.dicom4j.core.utils.DicomDateFormat

public class DicomDateFormat
extends Object

a DICOM DateFormat

Since:
0.0.3
Author:
Laurent Lecomte

Field Summary
static String DICOM_DATE_FORMAT
          the DICOM date format
 
Constructor Summary
DicomDateFormat()
           
 
Method Summary
static String formatDate(Date aDate)
           
static Date parseDate(String aDate)
           
static Date parseDate(String aDate, Locale aLocal)
           
static void setLocal(Locale aLocal)
          set the Locale to use (if not set local equal to Locale.getDefault() )
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DICOM_DATE_FORMAT

public static final String DICOM_DATE_FORMAT
the DICOM date format

See Also:
Constant Field Values
Constructor Detail

DicomDateFormat

public DicomDateFormat()
Method Detail

formatDate

public static String formatDate(Date aDate)

parseDate

public static Date parseDate(String aDate)
                      throws ParseException
Throws:
ParseException

parseDate

public static final Date parseDate(String aDate,
                                   Locale aLocal)
                            throws ParseException
Throws:
ParseException

setLocal

public static final void setLocal(Locale aLocal)
set the Locale to use

(if not set local equal to Locale.getDefault() )

Parameters:
aLocal - the local


Copyright © 2009 dicom4j. All Rights Reserved.