2491 }
2492
2493 /**
2494 * Reads a CONSTANT_Module_info item in {@code b}. This method is intended
2495 * for {@link Attribute} sub classes, and is normally not needed by class
2496 * generators or adapters.</i>
2497 *
2498 * @param index
2499 * the start index of an unsigned short value in {@link #b b},
2500 * whose value is the index of a module constant pool item.
2501 * @param buf
2502 * buffer to be used to read the item. This buffer must be
2503 * sufficiently large. It is not automatically resized.
2504 * @return the String corresponding to the specified module item.
2505 */
2506 public String readModule(int index, char[] buf) {
2507 return readUTF8(items[readUnsignedShort(index)], buf);
2508 }
2509
2510 /**
2511 * Reads a CONSTANT_Pakcage_info item in {@code b}. This method is
2512 * intended for {@link Attribute} sub slasses, and is normally not needed
2513 * by class generators or adapters.</i>
2514 *
2515 * @param index
2516 * the start index of an unsigned short value in {@link #b b},
2517 * whose value is the index of a package constant pool item.
2518 * @param buf
2519 * buffer to be used to read the item. This buffer must be
2520 * sufficiently large. It is not automatically resized.
2521 * @return the String corresponding to the specified package item.
2522 */
2523 public String readPackage(int index, char[] buf) {
2524 return readUTF8(items[readUnsignedShort(index)], buf);
2525 }
2526
2527 /**
2528 * Reads a numeric or string constant pool item in {@link #b b}. <i>This
2529 * method is intended for {@link Attribute} sub classes, and is normally not
2530 * needed by class generators or adapters.</i>
2531 *
|
2491 }
2492
2493 /**
2494 * Reads a CONSTANT_Module_info item in {@code b}. This method is intended
2495 * for {@link Attribute} sub classes, and is normally not needed by class
2496 * generators or adapters.</i>
2497 *
2498 * @param index
2499 * the start index of an unsigned short value in {@link #b b},
2500 * whose value is the index of a module constant pool item.
2501 * @param buf
2502 * buffer to be used to read the item. This buffer must be
2503 * sufficiently large. It is not automatically resized.
2504 * @return the String corresponding to the specified module item.
2505 */
2506 public String readModule(int index, char[] buf) {
2507 return readUTF8(items[readUnsignedShort(index)], buf);
2508 }
2509
2510 /**
2511 * Reads a CONSTANT_Package_info item in {@code b}. This method is
2512 * intended for {@link Attribute} sub slasses, and is normally not needed
2513 * by class generators or adapters.</i>
2514 *
2515 * @param index
2516 * the start index of an unsigned short value in {@link #b b},
2517 * whose value is the index of a package constant pool item.
2518 * @param buf
2519 * buffer to be used to read the item. This buffer must be
2520 * sufficiently large. It is not automatically resized.
2521 * @return the String corresponding to the specified package item.
2522 */
2523 public String readPackage(int index, char[] buf) {
2524 return readUTF8(items[readUnsignedShort(index)], buf);
2525 }
2526
2527 /**
2528 * Reads a numeric or string constant pool item in {@link #b b}. <i>This
2529 * method is intended for {@link Attribute} sub classes, and is normally not
2530 * needed by class generators or adapters.</i>
2531 *
|