public class RssWriter extends DefaultChemObjectWriter
IAtomContainerSet, the molecules
are put in separately. All other objects are made CML and put in.| Constructor and Description |
|---|
RssWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Class<? extends IChemObject> classObject)
Returns whether the given
IChemObject can be read or written. |
void |
close()
Flushes the output and closes this object.
|
Map |
getCreatormap() |
Map |
getDatemap() |
IResourceFormat |
getFormat()
Returns the
IResourceFormat class for this IO class. |
Map |
getInchimap() |
Map |
getLinkmap() |
Map |
getMultiMap() |
Map |
getTitlemap() |
void |
setAbout(String about) |
void |
setCreator(String creator) |
void |
setCreatormap(Map creatormap) |
void |
setDatemap(Map datemap) |
void |
setDescription(String description) |
void |
setImagelink(String imagelink) |
void |
setInchimap(Map inchimap) |
void |
setLink(String link) |
void |
setLinkmap(Map linkmap) |
void |
setMultiMap(Map multiMap) |
void |
setPublisher(String publisher) |
void |
setTimezone(String timezone) |
void |
setTitle(String title) |
void |
setTitlemap(Map titlemap) |
void |
setWriter(OutputStream output)
Sets the OutputStream from which this ChemObjectWriter should write
the contents.
|
void |
setWriter(Writer out)
Sets the Writer from which this ChemObjectWriter should write
the contents.
|
void |
write(IChemObject object)
Writes a IChemObject to the MDL molfile formated output.
|
addChemObjectIOListener, addSetting, addSettings, fireIOSettingQuestion, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChemObjectIOListener, addSetting, addSettings, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListenerpublic void close()
throws IOException
IOException - when the wrapper IO class cannot be closed.public IResourceFormat getFormat()
IChemObjectIOIResourceFormat class for this IO class.public void setWriter(Writer out) throws CDKException
IChemObjectWriterCDKExceptionpublic void setWriter(OutputStream output) throws CDKException
IChemObjectWriterCDKExceptionpublic boolean accepts(Class<? extends IChemObject> classObject)
IChemObjectIOIChemObject can be read or written.classObject - IChemObject of which is tested if it can be handled.IChemObject can be handled.public void write(IChemObject object) throws CDKException
object - Best choice is a set of moleculesCDKException - is thrown if the output
does not support the data in the objectpublic Map getDatemap()
public void setDatemap(Map datemap)
datemap - the datemap. If you put a java.uitl.Date in this map with one of the objects you want to write as key, it will be added as a datek to this object (no validity check is done)public Map getLinkmap()
public void setLinkmap(Map linkmap)
linkmap - the linkmap. If you put a String in this map with one of the objects you want to write as key, it will be added as a link to this object (no validity check is done)public Map getTitlemap()
public void setTitlemap(Map titlemap)
titlemap - the titlemap. If you put a String in this map with one of the objects you want to write as key, it will be added as a titel to this object (no validity check is done)public Map getCreatormap()
public void setCreatormap(Map creatormap)
creatormap - the creatormap. If you put a String in this map with one of the objects you want to write as key, it will be added as a creator to this object (no validity check is done)public void setAbout(String about)
about - This will be the about for the rss feedpublic void setCreator(String creator)
creator - This will be the creator for the rss feedpublic void setDescription(String description)
description - This will be the description for the rss feedpublic void setImagelink(String imagelink)
imagelink - This will be the imagelink for the rss feedpublic void setLink(String link)
link - This will be the link for the rss feedpublic void setPublisher(String publisher)
publisher - This will be the publisher for the rss feedpublic void setTitle(String title)
title - This will be the title for the rss feedpublic Map getMultiMap()
public void setMultiMap(Map multiMap)
multiMap - If you put any number of nu.xom.Elements in this map with one of the objects you want to write as key, it will be added as a child to the same node as the cml code of the objectpublic void setTimezone(String timezone)
timezone - This will be added to the data as timezone. format according to 23c. Examples "+01:00" "-05:00"public Map getInchimap()
public void setInchimap(Map inchimap)
inchimap - If you put any number of Strings in this map with one of the objects you want to write as key, it will be added as a child to the same node as the cml code of the objectCopyright © 2021. All rights reserved.