log.info("entering: testIO()");
try
{
final GrowablePipedInputStream gpis = new GrowablePipedInputStream();
final GrowablePipedOutputStream gpos = new GrowablePipedOutputStream(gpis);
final int size = 128 * 1024;
final byte[] bytesIn = new byte[size];
final byte[] bytesOut = new byte[size];
for (int i = 0; i < size; i++)
{
bytesIn[i] = (byte) i;
}
class ThreadOut extends Thread
{
Exception e;
public void run()
{
try
{
for (int i = 0; i < size / 2; i++)
gpos.write(bytesIn[i]);
int chunk = 4096;
for (int i = size / 2; i < size; )
{
gpos.write(bytesIn, i, chunk);
i += chunk;
}
}
catch (IOException e)
{