public final class IcalParseUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static DateValue |
parseDateValue(java.lang.String s)
parses a date of the form yyyymmdd or yyyymmdd'T'hhMMss
|
static DateValue |
parseDateValue(java.lang.String s,
java.util.TimeZone tzid)
parses a date of the form yyyymmdd or yyyymmdd'T'hhMMss converting from
the given timezone to UTC.
|
static PeriodValue |
parsePeriodValue(java.lang.String s)
parse a period value of the form <start>/<end>.
|
static PeriodValue |
parsePeriodValue(java.lang.String s,
java.util.TimeZone tzid)
parse a period value of the form <start>/<end>, converting
from the given timezone to UTC.
|
static java.lang.String |
unfoldIcal(java.lang.String foldedContentLines)
unfolds ical content lines as per RFC 2445 section 4.1.
|
public static DateValue parseDateValue(java.lang.String s) throws java.text.ParseException
java.text.ParseExceptionpublic static DateValue parseDateValue(java.lang.String s, java.util.TimeZone tzid) throws java.text.ParseException
java.text.ParseExceptionpublic static PeriodValue parsePeriodValue(java.lang.String s) throws java.text.ParseException
java.text.ParseExceptionpublic static PeriodValue parsePeriodValue(java.lang.String s, java.util.TimeZone tzid) throws java.text.ParseException
java.text.ParseExceptionpublic static java.lang.String unfoldIcal(java.lang.String foldedContentLines)
The iCalendar object is organized into individual lines of text, called content lines. Content lines are delimited by a line break, which is a CRLF sequence (US-ASCII decimal 13, followed by US-ASCII decimal 10).
Lines of text SHOULD NOT be longer than 75 octets, excluding the line break. Long content lines SHOULD be split into a multiple line representations using a line "folding" technique. That is, a long line can be split between any two characters by inserting a CRLF immediately followed by a single linear white space character (i.e., SPACE, US-ASCII decimal 32 or HTAB, US-ASCII decimal 9). Any sequence of CRLF followed immediately by a single linear white space character is ignored (i.e., removed) when processing the content type.