public InputStream convert(InputStream in, ConversionParameters params)
throws ConverterException, IOException
{
BytestreamConversionThread thread = new BytestreamConversionThread();
PipedOutputStream pipeIn = new PipedOutputStream();
ErrorTransportingPipedInputStream pipeOut = new ErrorTransportingPipedInputStream();
try
{
pipeOut.connect(pipeIn);
}
catch (IOException e)
{
/*
* cannot happen because pipeIn != null, pipeIn is not closed and