com.funambol.common.pim.model.converter
Class VComponentWriter
java.lang.Object
com.funambol.common.pim.model.converter.VComponentWriter
public class VComponentWriter
- extends java.lang.Object
This class is used to convert a VCalendar object to a string in the
vCalendar (1.0) or iCalendar (vCalendar 2.0) format.
- Version:
- $Id: VComponentWriter.java,v 1.2 2007-11-28 11:14:04 nichele Exp $
Constructor Summary |
VComponentWriter()
Creates a new instance of VComponentWriter, setting the max line width at
the default value (presently, NO_FOLDING ie no line width control is
done). |
VComponentWriter(int maxLineWidth)
Creates a new instance of VComponentWriter, setting the max line width at
a given value. |
Method Summary |
java.lang.String |
toString(VComponent vComponent)
Converts any VComponent object into a String, following the vCalendar/
iCalendar style. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_FOLDING
public static final int NO_FOLDING
- See Also:
- Constant Field Values
STANDARD_FOLDING
public static final int STANDARD_FOLDING
- See Also:
- Constant Field Values
VComponentWriter
public VComponentWriter()
- Creates a new instance of VComponentWriter, setting the max line width at
the default value (presently, NO_FOLDING ie no line width control is
done).
VComponentWriter
public VComponentWriter(int maxLineWidth)
- Creates a new instance of VComponentWriter, setting the max line width at
a given value.
- Parameters:
maxLineWidth
- an integer that should not be too small (some space
is needed to write at least the property's name and
parameters in the first line), usually
STANDARD_FOLDING (75) or NO_FOLDING (-1, that means
that no line width control is expected)
toString
public java.lang.String toString(VComponent vComponent)
- Converts any VComponent object into a String, following the vCalendar/
iCalendar style.
- Parameters:
vComponent
- the VComponent to be converted
- Returns:
- the result of the conversion, as a String object
Copyright © 2001-2009 Funambol.