Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
biweekly-0.3.1-with-deps.zip | 2013-09-21 | 490.4 kB | |
biweekly-0.3.1.jar | 2013-09-21 | 328.2 kB | |
biweekly-0.3.1-sources.jar | 2013-09-21 | 340.9 kB | |
biweekly-0.3.1-javadoc.jar | 2013-09-21 | 2.6 MB | |
readme.md | 2013-09-21 | 3.5 kB |
|
Totals: 5 Items | 3.7 MB | 0 |
Version 0.3.1 Changelog
Major changes
- Improved UTF-8 support: UTF-8 encoding is now used essentially whenever a
File
orInputStream/OutputStream
object is passed into one of biweekly's reader/writer classes. JavaReader/Writer
objects are not effected by this change because they are configured to use their own character encoding.- If a
File
orOutputStream
object is passed into a writer class, UTF-8 encoding will be used. - If a
File
orInputStream
object is passed into a plain-text iCal or jCal reader, UTF-8 encoding will be used. - If a
File
orInputStream
object is passed into a xCal reader, the "encoding" attribute in the header portion of the XML document will be properly taken into account. Before, it was ignored and the document was parsed according to the JVM's default character encoding.
- If a
- Added support for the EXRULE property.
- RRULE now supports non-standard rule parts.
- "Duration" class improvements: Added the following methods to the
Duration
class (credit: Caruyer Perrine):toMillis()
- Converts the duration to millisecondsadd(Date)
- Adds the duration to a Date objectdiff(Date, Date)
- Factory method that builds aDuration
from the difference between two DatesfromMillis(long)
- Factory method that builds aDuration
from a milliseconds value
Other changes:
- Added the ability to append onto existing files when writing plain-text files with the
Biweekly
class. - The
Biweekly.parse(File)
methods no longer throw aFileNotFoundException
. - The
ICalParameter.getRsvp()
method now throws anIllegalStateException
when the RSVP parameter value cannot be parsed (i.e. if it's something other than "true" or "false"). Before, it would return "null", which was misleading ("null" typically means that the parameter does not exist). Raw parameter values can still be retrieved using theget()
method. - A
CannotParseException
is now consistently thrown during the parsing of xCal properties when the XML element which holds the property's value cannot be found. - When marshalling to xCard, if a property's value is null (a rare occurrence), then an empty XML element will be written (before, no element was written). This increases conformance with the xCard schema.
- Created the
ICalMarshallerRegistrar
class, which can be used to assign a set of custom marshallers to a reader or writer class. - Improved the performance of plain-text iCal marshalling by optimizing string escaping functions.
- Changed
JCalValue.asStructured()
andJCalValue.structured()
so they properly support multi-valued structured components. - Renamed the "Value" class to "ICalDataType" and improved data type abstraction in the data model.
- Moved
ValidationWarnings
class from thebiweekly.component
package to thebiweekly
package. - Renamed the following methods:
ICalPropertyMarshaller.Result.getValue
-->getProperty
ICalPropertyMarshaller.getDataType
-->dataType
JCalValue.getSingleValued
-->asSingle
JCalValue.getMultivalued
-->asMulti
JCalValue.getStructured
-->asStructured
- Added syntax highlighting to the code samples in the Javadocs. :)
See the changelog page for the project's entire changelog history.
Maven
<dependency>
<groupId>net.sf.biweekly</groupId>
<artifactId>biweekly</artifactId>
<version>0.3.1</version>
</dependency>