protected void decodePacketLenOld(byte header) throws IOException {
		int reqlen = decodeLengthSpaceOld(header);

		if (inputLen < reqlen) {
			// read in the rest
			inputLen += readBlocking(buf, inputPos + inputLen, reqlen
					- inputLen);
			if (inputLen < reqlen) {
				throw new IOException("Error in datastream");
			}
		}

		packetLen = decodeLengthOld(buf, inputPos, reqlen);
		inputPos += reqlen;
		inputLen -= reqlen;
		partial = false;
	}