System.out.println("");
if (closed)
{
log.info("TestOutputStream closed, cannot write");
throw new SocketException("closed");
}
log.info("TestOutputStream: counter = " + counter + ", initialWrites = " + initialWrites);
if (++counter > initialWrites)
{
close();
throw new SocketException("closed");
}
try
{
log.info(this + " writing");
doCounterTest = false;