/usr/share/doc/libjdom1-java/api/org/jdom/input/SAXBuilder.html is in libjdom1-java-doc 1.1.2+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_24) on Mon Dec 05 11:37:31 UTC 2011 -->
<TITLE>
SAXBuilder (JDOM v1.x-snapshot)
</TITLE>
<META NAME="date" CONTENT="2011-12-05">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="SAXBuilder (JDOM v1.x-snapshot)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SAXBuilder.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>JDOM<br><font size='-1'>1.x-snapshot</font></b></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../org/jdom/input/JDOMParseException.html" title="class in org.jdom.input"><B>PREV CLASS</B></A>
<A HREF="../../../org/jdom/input/SAXHandler.html" title="class in org.jdom.input"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?org/jdom/input/SAXBuilder.html" target="_top"><B>FRAMES</B></A>
<A HREF="SAXBuilder.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.jdom.input</FONT>
<BR>
Class SAXBuilder</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.jdom.input.SAXBuilder</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>SAXBuilder</B><DT>extends java.lang.Object</DL>
</PRE>
<P>
Builds a JDOM document from files, streams, readers, URLs, or a SAX <CODE>InputSource</CODE> instance using a SAX parser. The builder uses a
third-party SAX parser (chosen by JAXP by default, or you can choose
manually) to handle the parsing duties and simply listens to the SAX events
to construct a document. Details which SAX does not provide, such as
whitespace outside the root element, are not represented in the JDOM
document. Information about SAX can be found at <a
href="http://www.saxproject.org">http://www.saxproject.org</a>.
<p>
Known issues: Relative paths for a <A HREF="../../../org/jdom/DocType.html" title="class in org.jdom"><CODE>DocType</CODE></A> or <A HREF="../../../org/jdom/EntityRef.html" title="class in org.jdom"><CODE>EntityRef</CODE></A> may
be converted by the SAX parser into absolute paths.
<P>
<P>
<DL>
<DT><B>Version:</B></DT>
<DD>$Revision: 1.93 $, $Date: 2009/07/23 06:26:26 $</DD>
<DT><B>Author:</B></DT>
<DD>Jason Hunter, Brett McLaughlin, Dan Schaffer, Philip Nelson, Alex Rosen</DD>
</DL>
<HR>
<P>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#SAXBuilder()">SAXBuilder</A></B>()</CODE>
<BR>
Creates a new SAXBuilder which will attempt to first locate
a parser via JAXP, then will try to use a set of default
SAX Drivers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#SAXBuilder(boolean)">SAXBuilder</A></B>(boolean validate)</CODE>
<BR>
Creates a new SAXBuilder which will attempt to first locate
a parser via JAXP, then will try to use a set of default
SAX Drivers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#SAXBuilder(java.lang.String)">SAXBuilder</A></B>(java.lang.String saxDriverClass)</CODE>
<BR>
Creates a new SAXBuilder using the specified SAX parser.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#SAXBuilder(java.lang.String, boolean)">SAXBuilder</A></B>(java.lang.String saxDriverClass,
boolean validate)</CODE>
<BR>
Creates a new SAXBuilder using the specified SAX parser.</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#build(java.io.File)">build</A></B>(java.io.File file)</CODE>
<BR>
This builds a document from the supplied
filename.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#build(org.xml.sax.InputSource)">build</A></B>(org.xml.sax.InputSource in)</CODE>
<BR>
This builds a document from the supplied
input source.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#build(java.io.InputStream)">build</A></B>(java.io.InputStream in)</CODE>
<BR>
This builds a document from the supplied
input stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#build(java.io.InputStream, java.lang.String)">build</A></B>(java.io.InputStream in,
java.lang.String systemId)</CODE>
<BR>
This builds a document from the supplied
input stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#build(java.io.Reader)">build</A></B>(java.io.Reader characterStream)</CODE>
<BR>
This builds a document from the supplied
Reader.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#build(java.io.Reader, java.lang.String)">build</A></B>(java.io.Reader characterStream,
java.lang.String systemId)</CODE>
<BR>
This builds a document from the supplied
Reader.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#build(java.lang.String)">build</A></B>(java.lang.String systemId)</CODE>
<BR>
This builds a document from the supplied
URI.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#build(java.net.URL)">build</A></B>(java.net.URL url)</CODE>
<BR>
This builds a document from the supplied
URL.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#configureContentHandler(org.jdom.input.SAXHandler)">configureContentHandler</A></B>(<A HREF="../../../org/jdom/input/SAXHandler.html" title="class in org.jdom.input">SAXHandler</A> contentHandler)</CODE>
<BR>
This configures the SAXHandler that will be used to build the Document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#configureParser(org.xml.sax.XMLReader, org.jdom.input.SAXHandler)">configureParser</A></B>(org.xml.sax.XMLReader parser,
<A HREF="../../../org/jdom/input/SAXHandler.html" title="class in org.jdom.input">SAXHandler</A> contentHandler)</CODE>
<BR>
This configures the XMLReader to be used for reading the XML document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected <A HREF="../../../org/jdom/input/SAXHandler.html" title="class in org.jdom.input">SAXHandler</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#createContentHandler()">createContentHandler</A></B>()</CODE>
<BR>
This creates the SAXHandler that will be used to build the Document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected org.xml.sax.XMLReader</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#createParser()">createParser</A></B>()</CODE>
<BR>
This creates the XMLReader to be used for reading the XML document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#getDriverClass()">getDriverClass</A></B>()</CODE>
<BR>
Returns the driver class assigned in the constructor, or null if none.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> org.xml.sax.DTDHandler</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#getDTDHandler()">getDTDHandler</A></B>()</CODE>
<BR>
Returns the <CODE>DTDHandler</CODE> assigned, or null if none.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> org.xml.sax.EntityResolver</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#getEntityResolver()">getEntityResolver</A></B>()</CODE>
<BR>
Returns the <CODE>EntityResolver</CODE> assigned, or null if none.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> org.xml.sax.ErrorHandler</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#getErrorHandler()">getErrorHandler</A></B>()</CODE>
<BR>
Returns the <CODE>ErrorHandler</CODE> assigned, or null if none.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#getExpandEntities()">getExpandEntities</A></B>()</CODE>
<BR>
Returns whether or not entities are being expanded into normal text
content.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/jdom/JDOMFactory.html" title="interface in org.jdom">JDOMFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#getFactory()">getFactory</A></B>()</CODE>
<BR>
Returns the current <A HREF="../../../org/jdom/JDOMFactory.html" title="interface in org.jdom"><CODE>JDOMFactory</CODE></A> in use.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#getIgnoringBoundaryWhitespace()">getIgnoringBoundaryWhitespace</A></B>()</CODE>
<BR>
Returns whether or not the parser will elminate element content
containing only whitespace.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#getIgnoringElementContentWhitespace()">getIgnoringElementContentWhitespace</A></B>()</CODE>
<BR>
Returns whether element content whitespace is to be ignored during the
build.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#getReuseParser()">getReuseParser</A></B>()</CODE>
<BR>
Returns whether the contained SAX parser instance is reused across
multiple parses.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#getValidation()">getValidation</A></B>()</CODE>
<BR>
Returns whether validation is to be performed during the build.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> org.xml.sax.XMLFilter</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#getXMLFilter()">getXMLFilter</A></B>()</CODE>
<BR>
Returns the <CODE>XMLFilter</CODE> used during parsing, or null if none.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#setDTDHandler(org.xml.sax.DTDHandler)">setDTDHandler</A></B>(org.xml.sax.DTDHandler dtdHandler)</CODE>
<BR>
This sets custom DTDHandler for the <code>Builder</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#setEntityResolver(org.xml.sax.EntityResolver)">setEntityResolver</A></B>(org.xml.sax.EntityResolver entityResolver)</CODE>
<BR>
This sets custom EntityResolver for the <code>Builder</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#setErrorHandler(org.xml.sax.ErrorHandler)">setErrorHandler</A></B>(org.xml.sax.ErrorHandler errorHandler)</CODE>
<BR>
This sets custom ErrorHandler for the <code>Builder</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#setExpandEntities(boolean)">setExpandEntities</A></B>(boolean expand)</CODE>
<BR>
This sets whether or not to expand entities for the builder.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#setFactory(org.jdom.JDOMFactory)">setFactory</A></B>(<A HREF="../../../org/jdom/JDOMFactory.html" title="interface in org.jdom">JDOMFactory</A> factory)</CODE>
<BR>
This sets a custom JDOMFactory for the builder.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#setFastReconfigure(boolean)">setFastReconfigure</A></B>(boolean fastReconfigure)</CODE>
<BR>
Specifies whether this builder will do fast reconfiguration of the
underlying SAX parser when reuseParser is true.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#setFeature(java.lang.String, boolean)">setFeature</A></B>(java.lang.String name,
boolean value)</CODE>
<BR>
This sets a feature on the SAX parser.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#setIgnoringBoundaryWhitespace(boolean)">setIgnoringBoundaryWhitespace</A></B>(boolean ignoringBoundaryWhite)</CODE>
<BR>
Specifies whether or not the parser should elminate boundary whitespace,
a term that indicates whitespace-only text between element tags.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#setIgnoringElementContentWhitespace(boolean)">setIgnoringElementContentWhitespace</A></B>(boolean ignoringWhite)</CODE>
<BR>
Specifies whether or not the parser should elminate whitespace in
element content (sometimes known as "ignorable whitespace") when
building the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A></B>(java.lang.String name,
java.lang.Object value)</CODE>
<BR>
This sets a property on the SAX parser.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#setReuseParser(boolean)">setReuseParser</A></B>(boolean reuseParser)</CODE>
<BR>
Specifies whether this builder shall reuse the same SAX parser
when performing subsequent parses or allocate a new parser for
each parse.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#setValidation(boolean)">setValidation</A></B>(boolean validate)</CODE>
<BR>
This sets validation for the builder.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jdom/input/SAXBuilder.html#setXMLFilter(org.xml.sax.XMLFilter)">setXMLFilter</A></B>(org.xml.sax.XMLFilter xmlFilter)</CODE>
<BR>
This sets a custom <CODE>XMLFilter</CODE> for the builder.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="SAXBuilder()"><!-- --></A><H3>
SAXBuilder</H3>
<PRE>
public <B>SAXBuilder</B>()</PRE>
<DL>
<DD>Creates a new SAXBuilder which will attempt to first locate
a parser via JAXP, then will try to use a set of default
SAX Drivers. The underlying parser will not validate.
<P>
</DL>
<HR>
<A NAME="SAXBuilder(boolean)"><!-- --></A><H3>
SAXBuilder</H3>
<PRE>
public <B>SAXBuilder</B>(boolean validate)</PRE>
<DL>
<DD>Creates a new SAXBuilder which will attempt to first locate
a parser via JAXP, then will try to use a set of default
SAX Drivers. The underlying parser will validate or not
according to the given parameter.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>validate</CODE> - <code>boolean</code> indicating if
validation should occur.</DL>
</DL>
<HR>
<A NAME="SAXBuilder(java.lang.String)"><!-- --></A><H3>
SAXBuilder</H3>
<PRE>
public <B>SAXBuilder</B>(java.lang.String saxDriverClass)</PRE>
<DL>
<DD>Creates a new SAXBuilder using the specified SAX parser.
The underlying parser will not validate.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>saxDriverClass</CODE> - <code>String</code> name of SAX Driver
to use for parsing.</DL>
</DL>
<HR>
<A NAME="SAXBuilder(java.lang.String, boolean)"><!-- --></A><H3>
SAXBuilder</H3>
<PRE>
public <B>SAXBuilder</B>(java.lang.String saxDriverClass,
boolean validate)</PRE>
<DL>
<DD>Creates a new SAXBuilder using the specified SAX parser.
The underlying parser will validate or not
according to the given parameter.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>saxDriverClass</CODE> - <code>String</code> name of SAX Driver
to use for parsing.<DD><CODE>validate</CODE> - <code>boolean</code> indicating if
validation should occur.</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getDriverClass()"><!-- --></A><H3>
getDriverClass</H3>
<PRE>
public java.lang.String <B>getDriverClass</B>()</PRE>
<DL>
<DD>Returns the driver class assigned in the constructor, or null if none.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the driver class assigned in the constructor</DL>
</DD>
</DL>
<HR>
<A NAME="getFactory()"><!-- --></A><H3>
getFactory</H3>
<PRE>
public <A HREF="../../../org/jdom/JDOMFactory.html" title="interface in org.jdom">JDOMFactory</A> <B>getFactory</B>()</PRE>
<DL>
<DD>Returns the current <A HREF="../../../org/jdom/JDOMFactory.html" title="interface in org.jdom"><CODE>JDOMFactory</CODE></A> in use.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the factory in use</DL>
</DD>
</DL>
<HR>
<A NAME="setFactory(org.jdom.JDOMFactory)"><!-- --></A><H3>
setFactory</H3>
<PRE>
public void <B>setFactory</B>(<A HREF="../../../org/jdom/JDOMFactory.html" title="interface in org.jdom">JDOMFactory</A> factory)</PRE>
<DL>
<DD>This sets a custom JDOMFactory for the builder. Use this to build
the tree with your own subclasses of the JDOM classes.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>factory</CODE> - <code>JDOMFactory</code> to use</DL>
</DD>
</DL>
<HR>
<A NAME="getValidation()"><!-- --></A><H3>
getValidation</H3>
<PRE>
public boolean <B>getValidation</B>()</PRE>
<DL>
<DD>Returns whether validation is to be performed during the build.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>whether validation is to be performed during the build</DL>
</DD>
</DL>
<HR>
<A NAME="setValidation(boolean)"><!-- --></A><H3>
setValidation</H3>
<PRE>
public void <B>setValidation</B>(boolean validate)</PRE>
<DL>
<DD>This sets validation for the builder.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>validate</CODE> - <code>boolean</code> indicating whether validation
should occur.</DL>
</DD>
</DL>
<HR>
<A NAME="getErrorHandler()"><!-- --></A><H3>
getErrorHandler</H3>
<PRE>
public org.xml.sax.ErrorHandler <B>getErrorHandler</B>()</PRE>
<DL>
<DD>Returns the <CODE>ErrorHandler</CODE> assigned, or null if none.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the ErrorHandler assigned, or null if none</DL>
</DD>
</DL>
<HR>
<A NAME="setErrorHandler(org.xml.sax.ErrorHandler)"><!-- --></A><H3>
setErrorHandler</H3>
<PRE>
public void <B>setErrorHandler</B>(org.xml.sax.ErrorHandler errorHandler)</PRE>
<DL>
<DD>This sets custom ErrorHandler for the <code>Builder</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>errorHandler</CODE> - <code>ErrorHandler</code></DL>
</DD>
</DL>
<HR>
<A NAME="getEntityResolver()"><!-- --></A><H3>
getEntityResolver</H3>
<PRE>
public org.xml.sax.EntityResolver <B>getEntityResolver</B>()</PRE>
<DL>
<DD>Returns the <CODE>EntityResolver</CODE> assigned, or null if none.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the EntityResolver assigned</DL>
</DD>
</DL>
<HR>
<A NAME="setEntityResolver(org.xml.sax.EntityResolver)"><!-- --></A><H3>
setEntityResolver</H3>
<PRE>
public void <B>setEntityResolver</B>(org.xml.sax.EntityResolver entityResolver)</PRE>
<DL>
<DD>This sets custom EntityResolver for the <code>Builder</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>entityResolver</CODE> - <code>EntityResolver</code></DL>
</DD>
</DL>
<HR>
<A NAME="getDTDHandler()"><!-- --></A><H3>
getDTDHandler</H3>
<PRE>
public org.xml.sax.DTDHandler <B>getDTDHandler</B>()</PRE>
<DL>
<DD>Returns the <CODE>DTDHandler</CODE> assigned, or null if none.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the DTDHandler assigned</DL>
</DD>
</DL>
<HR>
<A NAME="setDTDHandler(org.xml.sax.DTDHandler)"><!-- --></A><H3>
setDTDHandler</H3>
<PRE>
public void <B>setDTDHandler</B>(org.xml.sax.DTDHandler dtdHandler)</PRE>
<DL>
<DD>This sets custom DTDHandler for the <code>Builder</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>dtdHandler</CODE> - <code>DTDHandler</code></DL>
</DD>
</DL>
<HR>
<A NAME="getXMLFilter()"><!-- --></A><H3>
getXMLFilter</H3>
<PRE>
public org.xml.sax.XMLFilter <B>getXMLFilter</B>()</PRE>
<DL>
<DD>Returns the <CODE>XMLFilter</CODE> used during parsing, or null if none.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the XMLFilter used during parsing</DL>
</DD>
</DL>
<HR>
<A NAME="setXMLFilter(org.xml.sax.XMLFilter)"><!-- --></A><H3>
setXMLFilter</H3>
<PRE>
public void <B>setXMLFilter</B>(org.xml.sax.XMLFilter xmlFilter)</PRE>
<DL>
<DD>This sets a custom <CODE>XMLFilter</CODE> for the builder.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>xmlFilter</CODE> - the filter to use</DL>
</DD>
</DL>
<HR>
<A NAME="getIgnoringElementContentWhitespace()"><!-- --></A><H3>
getIgnoringElementContentWhitespace</H3>
<PRE>
public boolean <B>getIgnoringElementContentWhitespace</B>()</PRE>
<DL>
<DD>Returns whether element content whitespace is to be ignored during the
build.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>whether element content whitespace is to be ignored during the
build</DL>
</DD>
</DL>
<HR>
<A NAME="setIgnoringElementContentWhitespace(boolean)"><!-- --></A><H3>
setIgnoringElementContentWhitespace</H3>
<PRE>
public void <B>setIgnoringElementContentWhitespace</B>(boolean ignoringWhite)</PRE>
<DL>
<DD>Specifies whether or not the parser should elminate whitespace in
element content (sometimes known as "ignorable whitespace") when
building the document. Only whitespace which is contained within
element content that has an element only content model will be
eliminated (see XML Rec 3.2.1). For this setting to take effect
requires that validation be turned on. The default value of this
setting is <code>false</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ignoringWhite</CODE> - Whether to ignore ignorable whitespace</DL>
</DD>
</DL>
<HR>
<A NAME="getIgnoringBoundaryWhitespace()"><!-- --></A><H3>
getIgnoringBoundaryWhitespace</H3>
<PRE>
public boolean <B>getIgnoringBoundaryWhitespace</B>()</PRE>
<DL>
<DD>Returns whether or not the parser will elminate element content
containing only whitespace.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><code>boolean</code> - whether only whitespace content will
be ignored during build.<DT><B>See Also:</B><DD><A HREF="../../../org/jdom/input/SAXBuilder.html#setIgnoringBoundaryWhitespace(boolean)"><CODE>setIgnoringBoundaryWhitespace(boolean)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setIgnoringBoundaryWhitespace(boolean)"><!-- --></A><H3>
setIgnoringBoundaryWhitespace</H3>
<PRE>
public void <B>setIgnoringBoundaryWhitespace</B>(boolean ignoringBoundaryWhite)</PRE>
<DL>
<DD>Specifies whether or not the parser should elminate boundary whitespace,
a term that indicates whitespace-only text between element tags. This
feature is a lot like <A HREF="../../../org/jdom/input/SAXBuilder.html#setIgnoringElementContentWhitespace(boolean)"><CODE>setIgnoringElementContentWhitespace(boolean)</CODE></A>
but this feature is more aggressive and doesn't require validation be
turned on. The <A HREF="../../../org/jdom/input/SAXBuilder.html#setIgnoringElementContentWhitespace(boolean)"><CODE>setIgnoringElementContentWhitespace(boolean)</CODE></A>
call impacts the SAX parse process while this method impacts the JDOM
build process, so it can be beneficial to turn both on for efficiency.
For implementation efficiency, this method actually removes all
whitespace-only text() nodes. That can, in some cases (like beteween an
element tag and a comment), include whitespace that isn't just boundary
whitespace. The default is <code>false</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ignoringBoundaryWhite</CODE> - Whether to ignore whitespace-only text
noes</DL>
</DD>
</DL>
<HR>
<A NAME="getReuseParser()"><!-- --></A><H3>
getReuseParser</H3>
<PRE>
public boolean <B>getReuseParser</B>()</PRE>
<DL>
<DD>Returns whether the contained SAX parser instance is reused across
multiple parses. The default is true.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>whether the contained SAX parser instance is reused across
multiple parses</DL>
</DD>
</DL>
<HR>
<A NAME="setReuseParser(boolean)"><!-- --></A><H3>
setReuseParser</H3>
<PRE>
public void <B>setReuseParser</B>(boolean reuseParser)</PRE>
<DL>
<DD>Specifies whether this builder shall reuse the same SAX parser
when performing subsequent parses or allocate a new parser for
each parse. The default value of this setting is
<code>true</code> (parser reuse).
<p>
<strong>Note</strong>: As SAX parser instances are not thread safe,
the parser reuse feature should not be used with SAXBuilder instances
shared among threads.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>reuseParser</CODE> - Whether to reuse the SAX parser.</DL>
</DD>
</DL>
<HR>
<A NAME="setFastReconfigure(boolean)"><!-- --></A><H3>
setFastReconfigure</H3>
<PRE>
public void <B>setFastReconfigure</B>(boolean fastReconfigure)</PRE>
<DL>
<DD>Specifies whether this builder will do fast reconfiguration of the
underlying SAX parser when reuseParser is true. This improves
performance in cases where SAXBuilders are reused and lots of small
documents are frequently parsed. This avoids attempting to set features
on the SAX parser each time build() is called which result in
SaxNotRecognizedExceptions. This should ONLY be set for builders where
this specific case is an issue. The default value of this setting is
<code>false</code> (no fast reconfiguration). If reuseParser is false,
calling this has no effect.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fastReconfigure</CODE> - Whether to do a fast reconfiguration of the parser</DL>
</DD>
</DL>
<HR>
<A NAME="setFeature(java.lang.String, boolean)"><!-- --></A><H3>
setFeature</H3>
<PRE>
public void <B>setFeature</B>(java.lang.String name,
boolean value)</PRE>
<DL>
<DD>This sets a feature on the SAX parser. See the SAX documentation for .
more information.
</p>
<p>
NOTE: SAXBuilder requires that some particular features of the SAX parser be
set up in certain ways for it to work properly. The list of such features
may change in the future. Therefore, the use of this method may cause
parsing to break, and even if it doesn't break anything today it might
break parsing in a future JDOM version, because what JDOM parsers require
may change over time. Use with caution.
</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The feature name, which is a fully-qualified URI.<DD><CODE>value</CODE> - The requested state of the feature (true or false).</DL>
</DD>
</DL>
<HR>
<A NAME="setProperty(java.lang.String, java.lang.Object)"><!-- --></A><H3>
setProperty</H3>
<PRE>
public void <B>setProperty</B>(java.lang.String name,
java.lang.Object value)</PRE>
<DL>
<DD>This sets a property on the SAX parser. See the SAX documentation for
more information.
<p>
NOTE: SAXBuilder requires that some particular properties of the SAX parser be
set up in certain ways for it to work properly. The list of such properties
may change in the future. Therefore, the use of this method may cause
parsing to break, and even if it doesn't break anything today it might
break parsing in a future JDOM version, because what JDOM parsers require
may change over time. Use with caution.
</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The property name, which is a fully-qualified URI.<DD><CODE>value</CODE> - The requested value for the property.</DL>
</DD>
</DL>
<HR>
<A NAME="build(org.xml.sax.InputSource)"><!-- --></A><H3>
build</H3>
<PRE>
public <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>build</B>(org.xml.sax.InputSource in)
throws <A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A>,
java.io.IOException</PRE>
<DL>
<DD>This builds a document from the supplied
input source.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>in</CODE> - <code>InputSource</code> to read from
<DT><B>Returns:</B><DD><code>Document</code> resultant Document object
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A></CODE> - when errors occur in parsing
<DD><CODE>java.io.IOException</CODE> - when an I/O error prevents a document
from being fully parsed</DL>
</DD>
</DL>
<HR>
<A NAME="createContentHandler()"><!-- --></A><H3>
createContentHandler</H3>
<PRE>
protected <A HREF="../../../org/jdom/input/SAXHandler.html" title="class in org.jdom.input">SAXHandler</A> <B>createContentHandler</B>()</PRE>
<DL>
<DD>This creates the SAXHandler that will be used to build the Document.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><code>SAXHandler</code> - resultant SAXHandler object.</DL>
</DD>
</DL>
<HR>
<A NAME="configureContentHandler(org.jdom.input.SAXHandler)"><!-- --></A><H3>
configureContentHandler</H3>
<PRE>
protected void <B>configureContentHandler</B>(<A HREF="../../../org/jdom/input/SAXHandler.html" title="class in org.jdom.input">SAXHandler</A> contentHandler)</PRE>
<DL>
<DD>This configures the SAXHandler that will be used to build the Document.
<p>
The default implementation simply passes through some configuration
settings that were set on the SAXBuilder: setExpandEntities() and
setIgnoringElementContentWhitespace().
</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>contentHandler</CODE> - The SAXHandler to configure</DL>
</DD>
</DL>
<HR>
<A NAME="createParser()"><!-- --></A><H3>
createParser</H3>
<PRE>
protected org.xml.sax.XMLReader <B>createParser</B>()
throws <A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A></PRE>
<DL>
<DD>This creates the XMLReader to be used for reading the XML document.
<p>
The default behavior is to (1) use the saxDriverClass, if it has been
set, (2) try to obtain a parser from JAXP, if it is available, and
(3) if all else fails, use a hard-coded default parser (currently
the Xerces parser). Subclasses may override this method to determine
the parser to use in a different way.
</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD><code>XMLReader</code> - resultant XMLReader object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="configureParser(org.xml.sax.XMLReader, org.jdom.input.SAXHandler)"><!-- --></A><H3>
configureParser</H3>
<PRE>
protected void <B>configureParser</B>(org.xml.sax.XMLReader parser,
<A HREF="../../../org/jdom/input/SAXHandler.html" title="class in org.jdom.input">SAXHandler</A> contentHandler)
throws <A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A></PRE>
<DL>
<DD>This configures the XMLReader to be used for reading the XML document.
<p>
The default implementation sets various options on the given XMLReader,
such as validation, DTD resolution, entity handlers, etc., according
to the options that were set (e.g. via <code>setEntityResolver</code>)
and set various SAX properties and features that are required for JDOM
internals. These features may change in future releases, so change this
behavior at your own risk.
</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>parser</CODE> - <DD><CODE>contentHandler</CODE> -
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="build(java.io.InputStream)"><!-- --></A><H3>
build</H3>
<PRE>
public <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>build</B>(java.io.InputStream in)
throws <A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A>,
java.io.IOException</PRE>
<DL>
<DD><p>
This builds a document from the supplied
input stream.
</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>in</CODE> - <code>InputStream</code> to read from
<DT><B>Returns:</B><DD><code>Document</code> resultant Document object
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A></CODE> - when errors occur in parsing
<DD><CODE>java.io.IOException</CODE> - when an I/O error prevents a document
from being fully parsed.</DL>
</DD>
</DL>
<HR>
<A NAME="build(java.io.File)"><!-- --></A><H3>
build</H3>
<PRE>
public <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>build</B>(java.io.File file)
throws <A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A>,
java.io.IOException</PRE>
<DL>
<DD><p>
This builds a document from the supplied
filename.
</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>file</CODE> - <code>File</code> to read from
<DT><B>Returns:</B><DD><code>Document</code> resultant Document object
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A></CODE> - when errors occur in parsing
<DD><CODE>java.io.IOException</CODE> - when an I/O error prevents a document
from being fully parsed</DL>
</DD>
</DL>
<HR>
<A NAME="build(java.net.URL)"><!-- --></A><H3>
build</H3>
<PRE>
public <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>build</B>(java.net.URL url)
throws <A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A>,
java.io.IOException</PRE>
<DL>
<DD><p>
This builds a document from the supplied
URL.
</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>url</CODE> - <code>URL</code> to read from.
<DT><B>Returns:</B><DD><code>Document</code> - resultant Document object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A></CODE> - when errors occur in parsing
<DD><CODE>java.io.IOException</CODE> - when an I/O error prevents a document
from being fully parsed.</DL>
</DD>
</DL>
<HR>
<A NAME="build(java.io.InputStream, java.lang.String)"><!-- --></A><H3>
build</H3>
<PRE>
public <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>build</B>(java.io.InputStream in,
java.lang.String systemId)
throws <A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A>,
java.io.IOException</PRE>
<DL>
<DD><p>
This builds a document from the supplied
input stream.
</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>in</CODE> - <code>InputStream</code> to read from.<DD><CODE>systemId</CODE> - base for resolving relative URIs
<DT><B>Returns:</B><DD><code>Document</code> resultant Document object
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A></CODE> - when errors occur in parsing
<DD><CODE>java.io.IOException</CODE> - when an I/O error prevents a document
from being fully parsed</DL>
</DD>
</DL>
<HR>
<A NAME="build(java.io.Reader)"><!-- --></A><H3>
build</H3>
<PRE>
public <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>build</B>(java.io.Reader characterStream)
throws <A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A>,
java.io.IOException</PRE>
<DL>
<DD><p>
This builds a document from the supplied
Reader. It's the programmer's responsibility to make sure
the reader matches the encoding of the file. It's often easier
and safer to use an InputStream rather than a Reader, and to let the
parser auto-detect the encoding from the XML declaration.
</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>characterStream</CODE> - <code>Reader</code> to read from
<DT><B>Returns:</B><DD><code>Document</code> resultant Document object
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A></CODE> - when errors occur in parsing
<DD><CODE>java.io.IOException</CODE> - when an I/O error prevents a document
from being fully parsed</DL>
</DD>
</DL>
<HR>
<A NAME="build(java.io.Reader, java.lang.String)"><!-- --></A><H3>
build</H3>
<PRE>
public <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>build</B>(java.io.Reader characterStream,
java.lang.String systemId)
throws <A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A>,
java.io.IOException</PRE>
<DL>
<DD><p>
This builds a document from the supplied
Reader. It's the programmer's responsibility to make sure
the reader matches the encoding of the file. It's often easier
and safer to use an InputStream rather than a Reader, and to let the
parser auto-detect the encoding from the XML declaration.
</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>characterStream</CODE> - <code>Reader</code> to read from.<DD><CODE>systemId</CODE> - base for resolving relative URIs
<DT><B>Returns:</B><DD><code>Document</code> resultant Document object
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A></CODE> - when errors occur in parsing
<DD><CODE>java.io.IOException</CODE> - when an I/O error prevents a document
from being fully parsed</DL>
</DD>
</DL>
<HR>
<A NAME="build(java.lang.String)"><!-- --></A><H3>
build</H3>
<PRE>
public <A HREF="../../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>build</B>(java.lang.String systemId)
throws <A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A>,
java.io.IOException</PRE>
<DL>
<DD><p>
This builds a document from the supplied
URI.
</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>systemId</CODE> - URI for the input
<DT><B>Returns:</B><DD><code>Document</code> resultant Document object
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jdom/JDOMException.html" title="class in org.jdom">JDOMException</A></CODE> - when errors occur in parsing
<DD><CODE>java.io.IOException</CODE> - when an I/O error prevents a document
from being fully parsed</DL>
</DD>
</DL>
<HR>
<A NAME="getExpandEntities()"><!-- --></A><H3>
getExpandEntities</H3>
<PRE>
public boolean <B>getExpandEntities</B>()</PRE>
<DL>
<DD>Returns whether or not entities are being expanded into normal text
content.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>whether entities are being expanded</DL>
</DD>
</DL>
<HR>
<A NAME="setExpandEntities(boolean)"><!-- --></A><H3>
setExpandEntities</H3>
<PRE>
public void <B>setExpandEntities</B>(boolean expand)</PRE>
<DL>
<DD><p>
This sets whether or not to expand entities for the builder.
A true means to expand entities as normal content. A false means to
leave entities unexpanded as <code>EntityRef</code> objects. The
default is true.
</p>
<p>
When this setting is false, the internal DTD subset is retained; when
this setting is true, the internal DTD subset is not retained.
</p>
<p>
Note that Xerces (at least up to 1.4.4) has a bug where entities
in attribute values will be misreported if this flag is turned off,
resulting in entities to appear within element content. When turning
entity expansion off either avoid entities in attribute values, or
use another parser like Crimson.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6111
</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>expand</CODE> - <code>boolean</code> indicating whether entity expansion
should occur.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SAXBuilder.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>JDOM<br><font size='-1'>1.x-snapshot</font></b></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../org/jdom/input/JDOMParseException.html" title="class in org.jdom.input"><B>PREV CLASS</B></A>
<A HREF="../../../org/jdom/input/SAXHandler.html" title="class in org.jdom.input"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?org/jdom/input/SAXBuilder.html" target="_top"><B>FRAMES</B></A>
<A HREF="SAXBuilder.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright ? 2011 Jason Hunter, Brett McLaughlin. All Rights Reserved.
</BODY>
</HTML>
|