public int peek() throws IOException {
		if (this.len == -1)
			return -1;

		if (this.len == 0) {
			int n = 0;
			while (n == 0) {
				n = fill();
			}
			if (n < 0)
				return -1;
		}

		return buf[pos] & 0xFF;
	}