private long getChar4OtherEncoding(long offset) throws NavExceptionHuge{ if (encoding <= FORMAT_WIN_1258){ int temp = decode(offset); if (temp == '\r') { if (XMLDoc.byteAt(offset + 1) == '\n') { return '\n'|(2L<<32); } else { return '\n'|(1L<<32); } } return temp|(1L<<32); } throw new NavExceptionHuge("Unknown Encoding"); } /**
private long getChar4OtherEncoding(long offset) throws NavExceptionHuge{ if (encoding <= FORMAT_WIN_1258){ int temp = decode(offset); if (temp == '\r') { if (XMLDoc.byteAt(offset + 1) == '\n') { return '\n'|(2L<<32); } else { return '\n'|(1L<<32); } } return temp|(1L<<32); } throw new NavExceptionHuge("Unknown Encoding"); } /**
private long getChar4OtherEncoding(long offset) throws NavExceptionHuge{ if (encoding <= FORMAT_WIN_1258){ int temp = decode(offset); if (temp == '\r') { if (XMLDoc.byteAt(offset + 1) == '\n') { return '\n'|(2L<<32); } else { return '\n'|(1L<<32); } } return temp|(1L<<32); } throw new NavExceptionHuge("Unknown Encoding"); } /**
/** * Get the next char unit which gets decoded automatically * @return int */ private int getCharUnit(long offset) { return (encoding <= 2) ? XMLDoc.byteAt(offset) & 0xff : (encoding <= FORMAT_WIN_1258) ? decode(offset):(encoding == FORMAT_UTF_16BE) ? (XMLDoc.byteAt(offset << 1) << 8 | XMLDoc.byteAt((offset << 1) + 1)) : (XMLDoc.byteAt((offset << 1) + 1) << 8 | XMLDoc.byteAt(offset << 1)); } /**
/** * Get the next char unit which gets decoded automatically * @return int */ private int getCharUnit(long offset) { return (encoding <= 2) ? XMLDoc.byteAt(offset) & 0xff : (encoding <= FORMAT_WIN_1258) ? decode(offset):(encoding == FORMAT_UTF_16BE) ? (XMLDoc.byteAt(offset << 1) << 8 | XMLDoc.byteAt((offset << 1) + 1)) : (XMLDoc.byteAt((offset << 1) + 1) << 8 | XMLDoc.byteAt(offset << 1)); } /**
/** * Get the next char unit which gets decoded automatically * @return int */ private int getCharUnit(long offset) { return (encoding <= 2) ? XMLDoc.byteAt(offset) & 0xff : (encoding <= FORMAT_WIN_1258) ? decode(offset):(encoding == FORMAT_UTF_16BE) ? (XMLDoc.byteAt(offset << 1) << 8 | XMLDoc.byteAt((offset << 1) + 1)) : (XMLDoc.byteAt((offset << 1) + 1) << 8 | XMLDoc.byteAt(offset << 1)); } /**