6.14 org.xml.sax.extパッケージに関する注意事項

org.xml.sax.extパッケージに関する注意事項を表6-24に示します。

表6-24 org.xml.sax.extパッケージに関する注意事項

項番注意事項
1Attributes2ImplクラスのaddAttributeメソッドはサポートしていません。
代わりに,AttributesImplクラスのaddAttributeメソッドを使用し,アプリケーションを次のように変更してください。
(変更前)

Attributes2Impl myAtt = new Attributes2Impl();
String type = "ID";
myAtt.addAttribute("http://hitachi-xmlprocessor.com/", "attr", "ht:attr", type, "value");
     :

(変更後)

AttributesImpl myAtt = new AttributesImpl();
String type = "ID";
myAtt.addAttribute("http://hitachi-xmlprocessor.com/", "attr", "ht:attr", type, "value");
Attributes2Impl myAtt2 = new Attributes2Impl(myAtt);
int position = myAtt2.getLength() -1;
myAtt2.setSpecified(position, true);
myAtt2.setDeclared (position, !"CDATA".equals(type));
    :

2Locator2ImplクラスのgetXMLVersionメソッド,getEncodingメソッドはサポートしていません。