}
@Override
protected Object doTransform(Object src, String outputEncoding) throws TransformerException
{
SyndFeedInput feedInput = new SyndFeedInput();
SyndFeed feed = null;
try
{
if (src instanceof String)
{
feed = feedInput.build(new StringReader(src.toString()));
}
else if (src instanceof InputStream)
{
feed = feedInput.build(new XmlReader((InputStream) src));
}
else if (src instanceof byte[])
{
feed = feedInput.build(new XmlReader(new ByteArrayInputStream((byte[]) src)));
}
else if (src instanceof Document)
{
feed = feedInput.build((Document) src);
}
else if (src instanceof InputSource)
{
feed = feedInput.build((InputSource) src);
}
else if (src instanceof File)
{
feed = feedInput.build((File) src);
}
return feed;
}
catch (Exception e)