public LookAheadIS(InputStream in, int size) throws IOException
	{
		if (size < 1)
			throw new IllegalArgumentException();
		this.in = in;
		buffer = new byte[size];
		for (bsize = 0; bsize < size; ++bsize)
		{
			int read = in.read();
			if (read == -1)
				break;
			buffer[bsize] = (byte) read;
		}
		offset = 0;
	}