biweekly

An iCalendar parser/writer library written in Java.

Лицензия

Лицензия

Категории

Категории

Сеть
Группа

Группа

net.sf.biweekly
Идентификатор

Идентификатор

biweekly
Последняя версия

Последняя версия

0.6.6
Дата

Дата

Тип

Тип

bundle
Описание

Описание

biweekly
An iCalendar parser/writer library written in Java.
Ссылка на сайт

Ссылка на сайт

http://github.com/mangstadt/biweekly
Организация-разработчик

Организация-разработчик

Michael Angstadt
Система контроля версий

Система контроля версий

https://github.com/mangstadt/biweekly/commits/master

Скачать biweekly

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
com.github.mangstadt : vinnie jar 2.0.2
com.fasterxml.jackson.core : jackson-core jar 2.12.1
com.fasterxml.jackson.core : jackson-databind Необязательный jar 2.12.1

test (4)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.13.1
xmlunit : xmlunit jar 1.6
org.mockito : mockito-all jar 1.10.19
xalan : xalan jar 2.7.2

Модули Проекта

Данный проект не имеет модулей.

biweekly

Continuous Integration:
Code Coverage: codecov.io
Maven Central: Maven Central
Chat Room: Gitter
License: FreeBSD License

biweekly is an iCalendar library written in Java. The project aims to provide a well documented, easy to use API for reading and writing iCalendar data.

Downloads | Javadocs | Maven/Gradle | Documentation

Code sample

Reading an iCal

String str =
"BEGIN:VCALENDAR\r\n" +
  "VERSION:2.0\r\n" +
  "PRODID:-//Microsoft Corporation//Outlook 14.0 MIMEDIR//EN\r\n" +
  "BEGIN:VEVENT\r\n" +
    "UID:0123\r\n" +
    "DTSTAMP:20130601T080000Z\r\n" +
    "SUMMARY;LANGUAGE=en-us:Team Meeting\r\n" +
    "DTSTART:20130610T120000Z\r\n" +
    "DURATION:PT1H\r\n" +
    "RRULE:FREQ=WEEKLY;INTERVAL=2\r\n" +
  "END:VEVENT\r\n" +
"END:VCALENDAR\r\n";

ICalendar ical = Biweekly.parse(str).first();

VEvent event = ical.getEvents().get(0);
String summary = event.getSummary().getValue();

Writing an iCal

ICalendar ical = new ICalendar();
  VEvent event = new VEvent();
    Summary summary = event.setSummary("Team Meeting");
    summary.setLanguage("en-us");

    Date start = ...
    event.setDateStart(start);

    Duration duration = new Duration.Builder().hours(1).build();
    event.setDuration(duration);

    Recurrence recur = new Recurrence.Builder(Frequency.WEEKLY).interval(2).build();
    event.setRecurrenceRule(recur);
  ical.addEvent(event);

String str = Biweekly.write(ical).go();

Features

  • Simple, intuitive API (see Examples).
  • Android compatibility.
  • Full compliance with iCalendar and vCalendar specifications (see Supported Specifications).
  • Supports XML and JSON formats (see Supported Specifications).
  • Full timezone support (uses tzurl.org for timezone definitions).
  • Extensive unit test coverage.
  • Low Java version requirement (1.6 or above).
  • Few dependencies on external libraries. Dependencies can be selectively excluded based on the functionality that is needed (see Dependencies).

Maven/Gradle

Maven

<dependency>
   <groupId>net.sf.biweekly</groupId>
   <artifactId>biweekly</artifactId>
   <version>0.6.6</version>
</dependency>

Gradle

implementation 'net.sf.biweekly:biweekly:0.6.6'
// or use the `api` keyword if you are exposing parts of biweekly in your API

Build Instructions

biweekly uses Maven as its build tool, and adheres to its convensions.

To build the project: mvn compile
To run the unit tests: mvn test
To build a JAR: mvn package

Questions / Feedback

You have some options:

Please submit bug reports and feature requests to the issue tracker.

This project was born on June 23, 2013 on Sourceforge. It migrated to Github on November 22, 2015.

Версии библиотеки

Версия
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.0
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.0