public class XCardDocument.XCardDocumentStreamWriter extends StreamWriter
addProdId, index, versionStrict
Constructor and Description |
---|
XCardDocument.XCardDocumentStreamWriter() |
Modifier and Type | Method and Description |
---|---|
protected void |
_write(VCard vcard,
List<VCardProperty> properties)
Writes a vCard to the stream.
|
void |
close() |
protected VCardVersion |
getTargetVersion()
Gets the version that the next vCard will be written as.
|
void |
registerParameterDataType(String parameterName,
VCardDataType dataType)
Registers the data type of an experimental parameter.
|
void |
write(VCard vcard)
Writes a vCard to the stream.
|
getScribeIndex, isAddProdId, isVersionStrict, registerScribe, setAddProdId, setScribeIndex, setVersionStrict
public XCardDocument.XCardDocumentStreamWriter()
public void write(VCard vcard)
StreamWriter
write
in class StreamWriter
vcard
- the vCard that is being writtenprotected void _write(VCard vcard, List<VCardProperty> properties) throws IOException
StreamWriter
_write
in class StreamWriter
vcard
- the vCard that is being writtenproperties
- the properties to writeIOException
- if there's a problem writing to the output streamprotected VCardVersion getTargetVersion()
StreamWriter
getTargetVersion
in class StreamWriter
public void registerParameterDataType(String parameterName, VCardDataType dataType)
parameterName
- the parameter name (e.g. "x-foo")dataType
- the data type or null to removepublic void close()
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.