Lines Matching defs:id
768 * @param id the restricted alphabet identifier.
787 * @param id the restricted alphabet identifier.
806 * @param id the restricted alphabet identifier.
814 protected final void encodeFourBitCharacters(int id, int[] table, char[] ch, int offset, int length,
844 // Encode bottom 6 bits of enoding algorithm id
845 _b = id << 2;
892 int id = _v.restrictedAlphabet.get(alphabet);
893 if (id == KeyIntMap.NOT_PRESENT) {
896 id += EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START;
898 _b |= (id & 0xC0) >> 6;
901 // Encode bottom 6 bits of enoding algorithm id
902 _b = (id & 0x3F) << 2;
1327 protected final void encodeNonIdentifyingStringOnFirstBit(int id, int[] table,
1362 // Encode identification and top four bits of alphabet id
1363 write (_b | ((id & 0xF0) >> 4));
1364 // Encode bottom 4 bits of alphabet id
1365 _b = (id & 0x0F) << 4;
1381 * @param id the encoding algorithm identifier.
1387 protected final void encodeNonIdentifyingStringOnFirstBit(String URI, int id, Object data) throws FastInfosetException, IOException {
1389 id = _v.encodingAlgorithm.get(URI);
1390 if (id == KeyIntMap.NOT_PRESENT) {
1393 id += EncodingConstants.ENCODING_ALGORITHM_APPLICATION_START;
1397 encodeAIIObjectAlgorithmData(id, data, ea);
1401 encodeAIIOctetAlgorithmData(id, d, 0, d.length);
1406 } else if (id <= EncodingConstants.ENCODING_ALGORITHM_BUILTIN_END) {
1408 switch(id) {
1435 throw new EncodingAlgorithmException(CommonResourceBundle.getInstance().getString("message.UnsupportedBuiltInAlgorithm", new Object[]{Integer.valueOf(id)}));
1437 encodeAIIBuiltInAlgorithmData(id, data, 0, length);
1438 } else if (id >= EncodingConstants.ENCODING_ALGORITHM_APPLICATION_START) {
1441 encodeAIIOctetAlgorithmData(id, d, 0, d.length);
1455 * @param id the encoding algorithm identifier.
1460 protected final void encodeAIIOctetAlgorithmData(int id, byte[] d, int offset, int length) throws IOException {
1461 // Encode identification and top four bits of encoding algorithm id
1463 ((id & 0xF0) >> 4));
1465 // Encode bottom 4 bits of enoding algorithm id
1466 _b = (id & 0x0F) << 4;
1479 * @param id the encoding algorithm identifier.
1484 protected final void encodeAIIObjectAlgorithmData(int id, Object data, EncodingAlgorithm ea) throws FastInfosetException, IOException {
1485 // Encode identification and top four bits of encoding algorithm id
1487 ((id & 0xF0) >> 4));
1489 // Encode bottom 4 bits of enoding algorithm id
1490 _b = (id & 0x0F) << 4;
1503 * @param id the built in encoding algorithm identifier.
1510 protected final void encodeAIIBuiltInAlgorithmData(int id, Object data, int offset, int length) throws IOException {
1511 // Encode identification and top four bits of encoding algorithm id
1513 ((id & 0xF0) >> 4));
1515 // Encode bottom 4 bits of enoding algorithm id
1516 _b = (id & 0x0F) << 4;
1518 final int octetLength = BuiltInEncodingAlgorithmFactory.getAlgorithm(id).
1524 BuiltInEncodingAlgorithmFactory.getAlgorithm(id).
1584 * @param id the encoding algorithm identifier.
1590 protected final void encodeNonIdentifyingStringOnThirdBit(String URI, int id, Object data) throws FastInfosetException, IOException {
1592 id = _v.encodingAlgorithm.get(URI);
1593 if (id == KeyIntMap.NOT_PRESENT) {
1596 id += EncodingConstants.ENCODING_ALGORITHM_APPLICATION_START;
1600 encodeCIIObjectAlgorithmData(id, data, ea);
1604 encodeCIIOctetAlgorithmData(id, d, 0, d.length);
1609 } else if (id <= EncodingConstants.ENCODING_ALGORITHM_BUILTIN_END) {
1611 switch(id) {
1638 throw new EncodingAlgorithmException(CommonResourceBundle.getInstance().getString("message.UnsupportedBuiltInAlgorithm", new Object[]{Integer.valueOf(id)}));
1640 encodeCIIBuiltInAlgorithmData(id, data, 0, length);
1641 } else if (id >= EncodingConstants.ENCODING_ALGORITHM_APPLICATION_START) {
1644 encodeCIIOctetAlgorithmData(id, d, 0, d.length);
1660 * @param id the encoding algorithm identifier.
1667 protected final void encodeNonIdentifyingStringOnThirdBit(String URI, int id, byte[] d, int offset, int length) throws FastInfosetException, IOException {
1669 id = _v.encodingAlgorithm.get(URI);
1670 if (id == KeyIntMap.NOT_PRESENT) {
1673 id += EncodingConstants.ENCODING_ALGORITHM_APPLICATION_START;
1676 encodeCIIOctetAlgorithmData(id, d, offset, length);
1684 * @param id the encoding algorithm identifier.
1689 protected final void encodeCIIOctetAlgorithmData(int id, byte[] d, int offset, int length) throws IOException {
1690 // Encode identification and top two bits of encoding algorithm id
1692 ((id & 0xC0) >> 6));
1694 // Encode bottom 6 bits of enoding algorithm id
1695 _b = (id & 0x3F) << 2;
1708 * @param id the encoding algorithm identifier.
1713 protected final void encodeCIIObjectAlgorithmData(int id, Object data, EncodingAlgorithm ea) throws FastInfosetException, IOException {
1714 // Encode identification and top two bits of encoding algorithm id
1716 ((id & 0xC0) >> 6));
1718 // Encode bottom 6 bits of enoding algorithm id
1719 _b = (id & 0x3F) << 2;
1732 * @param id the built in encoding algorithm identifier.
1739 protected final void encodeCIIBuiltInAlgorithmData(int id, Object data, int offset, int length) throws FastInfosetException, IOException {
1740 // Encode identification and top two bits of encoding algorithm id
1742 ((id & 0xC0) >> 6));
1744 // Encode bottom 6 bits of enoding algorithm id
1745 _b = (id & 0x3F) << 2;
1747 final int octetLength = BuiltInEncodingAlgorithmFactory.getAlgorithm(id).
1753 BuiltInEncodingAlgorithmFactory.getAlgorithm(id).
1768 // Encode identification and top two bits of encoding algorithm id
1771 // Encode bottom 6 bits of enoding algorithm id