public void queueBytes(int i, byte abyte0[])
		throws IOException
	{
		if(closed)
			return;
		if(hasIOError)
		{
			hasIOError = false;
			throw new IOException("Error in writer thread");
		}
		if(buffer == null)
			buffer = new byte[5000];
		synchronized(this)
		{
			for(int l = 0; l < i; l++)
			{
				buffer[buffIndex] = abyte0[l];
				buffIndex = (buffIndex + 1) % 5000;
				if(buffIndex == (writeIndex + 4900) % 5000)
					throw new IOException("buffer overflow");
			}

			if(!isWriter)
			{
				isWriter = true;
				rsApplet.startRunnable(this, 3);
			}
			notify();
		}
	}