|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.pdf.cos.COSBasedObject
de.intarsys.pdf.cds.CDSBase
de.intarsys.pdf.cds.CDSDate
public class CDSDate
The implementation for a date string based on a COSString
.
The string follows the format defined in [PDF], chapter 3.8.2.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.intarsys.pdf.cos.COSBasedObject |
---|
COSBasedObject.MetaClass |
Field Summary | |
---|---|
static String |
DATE_FORMAT
|
static Pattern |
DatePattern
|
Fields inherited from class de.intarsys.pdf.cos.COSBasedObject |
---|
META |
Constructor Summary | |
---|---|
CDSDate()
Create a new date object with the current system date set |
Method Summary | |
---|---|
static CDSDate |
createFromCOS(COSString string)
Create a CDSDate from a COSString |
static String |
format(CDSDate cdsDate)
Format a CDSDate using the default format. |
static String |
format(Format format,
CDSDate cdsDate)
Format a CDSDate using format . |
String |
stringValue()
The String representation of this. |
Date |
toDate()
The Date represented by this. |
static Date |
toDate(String string)
Create a Date using the default format. |
static Date |
toDateWithZone(String string)
Create a Date using the default format using the timezone. |
String |
toFormattedString()
A formatted String representation of this. |
static String |
toString(Date date)
|
static String |
toStringWithZone(Date date)
|
static String |
toStringWithZone(Date date,
TimeZone timeZone)
|
Methods inherited from class de.intarsys.pdf.cos.COSBasedObject |
---|
changed, cosGetArray, cosGetDict, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, invalidateCaches, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DATE_FORMAT
public static final Pattern DatePattern
Constructor Detail |
---|
public CDSDate()
Method Detail |
---|
public static CDSDate createFromCOS(COSString string)
CDSDate
from a COSString
string
- The base string.
CDSDate
from a COSString
public static String format(CDSDate cdsDate)
CDSDate
using the default format.
cdsDate
- The CDSDate
to be formatted.
String
representation.public static String format(Format format, CDSDate cdsDate)
CDSDate
using format
.
format
- The format to be used for formattingcdsDate
- The date to be formatted
String
representation of cdsDate
public static Date toDate(String string) throws ParseException
Date
using the default format.
string
- The date string.
Date
ParseException
public static Date toDateWithZone(String string) throws ParseException
Date
using the default format using the timezone.
string
- The date string.
Date
ParseException
public static String toString(Date date)
public static String toStringWithZone(Date date)
public static String toStringWithZone(Date date, TimeZone timeZone)
public String stringValue()
String
representation of this.
String
representation of this.public Date toDate() throws ParseException
Date
represented by this.
Date
represented by this.
ParseException
public String toFormattedString()
String
representation of this.
String
representation of this.
|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |