}
}
catch (InterruptedException e)
{
logger.log(Level.WARNING, "" + e, e);
throw new InterruptedIOException();
}
}
}
Buffer nextBuffer = null;
try
{
nextBuffer = (Buffer) bufferQueue.get();
} catch (InterruptedException e)
{
throw new InterruptedIOException("" + e);
}
if (nextBuffer.isEOM())
eos = true;
buffer.copy(nextBuffer);