Class ICalendarUtilities

java.lang.Object
jfxtras.icalendarfx.utilities.ICalendarUtilities

public final class ICalendarUtilities extends Object
Static utility methods used throughout iCalendar
  • Field Details

  • Constructor Details

    • ICalendarUtilities

      private ICalendarUtilities()
  • Method Details

    • parseInlineElementsToListPair

      public static List<Pair<String,String>> parseInlineElementsToListPair(String propertyLine)
      parse property content line into a parameter name/value map content line must have the property name stripped off the front For example, for the content line DTEND;TZID=Etc/GMT:20160306T103000Z the propertyLine must be ;TZID=Etc/GMT:20160306T103000Z
      Parameters:
      propertyLine - - name-stripped property line
      Returns:
      - map where key=parameter names as, value=parameter value
    • foldLine

      public static CharSequence foldLine(CharSequence line)
      Folds lines at character 75 into multiple lines. Follows rules in RFC 5545, 3.1 Content Lines, page 9. A space is added to the first character of the subsequent lines. doesn't break lines at escape characters
      Parameters:
      line - - content line
      Returns:
      - folded content line
    • getPropertyNameIndex

      @Deprecated public static int getPropertyNameIndex(String propertyLine)
      Deprecated.
      Returns index where property name ends - after first ';' or ':'
    • takeWhile

      static <T> Spliterator<T> takeWhile(Spliterator<T> splitr, Predicate<? super T> predicate)
    • takeWhile

      public static <T> Stream<T> takeWhile(Stream<T> stream, Predicate<? super T> predicate)