java.lang.Object
org.bzdev.net.calendar.ICalBuilder.Base
org.bzdev.net.calendar.ICalBuilder.Component
org.bzdev.net.calendar.ICalBuilder.TimeZone
- Enclosing class:
- ICalBuilder
The iCalendar timezone component class.
Please see
Section 3.6.5 of RFC 5545
for a description of what properties are allowed in this component
and the order in which they can occur. The properties must be
added by providing them to a constructor and/or by using the
methods
ICalBuilder.Base.addProperty(String,String,boolean,String...)
and
ICalBuilder.Base.addProperty(String,String[],boolean,String...)
.-
Field Summary
Fields inherited from class org.bzdev.net.calendar.ICalBuilder.Base
contentLines
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addAttachment
(String formatType, byte[] data) Try to add an attachment provided as binary data.final void
addAttachment
(String formatType, String uri) Add an attachment referenced by a URI.final void
setDuration
(int duration, ICalBuilder.Units units) Set the duration for an iCalendar component.Methods inherited from class org.bzdev.net.calendar.ICalBuilder.Component
createContentLines
Methods inherited from class org.bzdev.net.calendar.ICalBuilder.Base
addProperty, addProperty, addProperty, clearContentLines
-
Constructor Details
-
TimeZone
public TimeZone()Constructor. -
TimeZone
Constructor with contents. Each element of the content array represents a line that starts with a property name. The lines are presumed to have special characters escaped when necessary. The content lines must not be not 'folded'.- Parameters:
contents
- the sequence of properties for this component
-
-
Method Details
-
setDuration
public final void setDuration(int duration, ICalBuilder.Units units) throws UnsupportedOperationException Set the duration for an iCalendar component. This operation is not supported and calling this method will throw an exception.- Overrides:
setDuration
in classICalBuilder.Base
- Parameters:
duration
- (ignored)units
- (ignored)- Throws:
UnsupportedOperationException
- this class does not allow attachments
-
addAttachment
Add an attachment referenced by a URI. This operation is not supported and calling this method will throw an exception.- Overrides:
addAttachment
in classICalBuilder.Base
- Parameters:
formatType
- (ignored)uri
- (ignored)- Throws:
UnsupportedOperationException
- this class does not allow attachments
-
addAttachment
public final void addAttachment(String formatType, byte[] data) throws UnsupportedOperationException Try to add an attachment provided as binary data. This operation is not supported and calling this method will throw an exception.- Overrides:
addAttachment
in classICalBuilder.Base
- Parameters:
formatType
- (ignored)data
- (ignored)- Throws:
UnsupportedOperationException
- this class does not allow attachments
-