|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.fortuna.ical4j.util.Calendars
public final class Calendars
$Id: Calendars.java,v 1.17 2011/02/20 03:14:09 fortuna Exp $
Created on 10/11/2006
Utility method for working with Calendars.
| Method Summary | |
|---|---|
static java.lang.String |
getContentType(Calendar calendar,
java.nio.charset.Charset charset)
Returns an appropriate MIME Content-Type for the specified calendar object. |
static Uid |
getUid(Calendar calendar)
Returns a unique identifier as specified by components in the provided calendar. |
static Calendar |
load(java.lang.String filename)
Loads a calendar from the specified file. |
static Calendar |
load(java.net.URL url)
Loads a calendar from the specified URL. |
static Calendar |
merge(Calendar c1,
Calendar c2)
Merge all properties and components from two specified calendars into one instance. |
static Calendar[] |
split(Calendar calendar)
Splits a calendar object into distinct calendar objects for unique identifers (UID). |
static Calendar |
wrap(Component component)
Wraps a component in a calendar. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Calendar load(java.lang.String filename)
throws java.io.IOException,
ParserException
filename - the name of the file from which to load calendar data
java.io.IOException - occurs when there is an error reading the specified file
ParserException - occurs when the data in the specified file is invalid
public static Calendar load(java.net.URL url)
throws java.io.IOException,
ParserException
url - the URL from which to load calendar data
java.io.IOException - occurs when there is an error reading from the specified URL
ParserException - occurs when the data in the specified URL is invalid
public static Calendar merge(Calendar c1,
Calendar c2)
c1 - the first calendar to mergec2 - the second calendar to merge
public static Calendar wrap(Component component)
component - the component to wrap with a calendar
public static Calendar[] split(Calendar calendar)
calendar - a calendar instance
public static Uid getUid(Calendar calendar)
throws ConstraintViolationException
calendar - a calendar instance
ConstraintViolationException - if zero or more than one unique identifer is found in the specified calendar
public static java.lang.String getContentType(Calendar calendar,
java.nio.charset.Charset charset)
calendar - a calendar instancecharset - an optional encoding
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||