/**
* {@inheritDoc}
*/
protected COSObjectable convertCOSToPD( COSBase base ) throws IOException
{
PDTextStream stream = null;
if( base instanceof COSString )
{
stream = new PDTextStream((COSString)base);
}
else if( base instanceof COSStream )
{
stream = new PDTextStream((COSStream)base);
}
else
{
throw new IOException( "Error creating Javascript object, expected either COSString or COSStream and not "
+ base );