|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectezvcard.io.scribe.VCardPropertyScribe.DateWriter
protected static class VCardPropertyScribe.DateWriter
Factory class for writing dates.
| Constructor Summary | |
|---|---|
VCardPropertyScribe.DateWriter(Date date)
Creates a new date writer object. |
|
| Method Summary | |
|---|---|
VCardPropertyScribe.DateWriter |
extended(boolean extended)
Sets whether to use extended format or basic. |
VCardPropertyScribe.DateWriter |
time(boolean hasTime)
Sets whether to output the date's time component. |
VCardPropertyScribe.DateWriter |
utc(boolean utc)
Sets whether to format the date in UTC time, or to include a UTC offset. |
String |
write()
Creates the date string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VCardPropertyScribe.DateWriter(Date date)
date - the date to format| Method Detail |
|---|
public VCardPropertyScribe.DateWriter time(boolean hasTime)
hasTime - true include the time, false if it's strictly a date
(defaults to "true")
public VCardPropertyScribe.DateWriter extended(boolean extended)
extended - true to use extended format, false to use basic
(defaults to "false")
public VCardPropertyScribe.DateWriter utc(boolean utc)
utc - true to format in UTC time, false to include the local
timezone's UTC offset
public String write()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||