@@ -251,101 +251,98 @@ public final class ReaderConfig
251
251
final static HashMap <String ,Integer > sProperties = new HashMap <String ,Integer >(64 ); // we have about 40 entries
252
252
static {
253
253
// Standard ones; support for features
254
- sProperties .put (XMLInputFactory .IS_COALESCING ,
255
- DataUtil .Integer (PROP_COALESCE_TEXT ));
254
+ sProperties .put (XMLInputFactory .IS_COALESCING , PROP_COALESCE_TEXT );
256
255
sProperties .put (XMLInputFactory .IS_NAMESPACE_AWARE ,
257
- DataUtil . Integer ( PROP_NAMESPACE_AWARE ) );
256
+ PROP_NAMESPACE_AWARE );
258
257
sProperties .put (XMLInputFactory .IS_REPLACING_ENTITY_REFERENCES ,
259
- DataUtil . Integer ( PROP_REPLACE_ENTITY_REFS ) );
258
+ PROP_REPLACE_ENTITY_REFS );
260
259
sProperties .put (XMLInputFactory .IS_SUPPORTING_EXTERNAL_ENTITIES ,
261
- DataUtil . Integer ( PROP_SUPPORT_EXTERNAL_ENTITIES ) );
260
+ PROP_SUPPORT_EXTERNAL_ENTITIES );
262
261
sProperties .put (XMLInputFactory .IS_VALIDATING ,
263
- DataUtil . Integer ( PROP_VALIDATE_AGAINST_DTD ) );
262
+ PROP_VALIDATE_AGAINST_DTD );
264
263
sProperties .put (XMLInputFactory .SUPPORT_DTD ,
265
- DataUtil . Integer ( PROP_SUPPORT_DTD ) );
264
+ PROP_SUPPORT_DTD );
266
265
267
266
// Standard ones; pluggable components
268
267
sProperties .put (XMLInputFactory .ALLOCATOR ,
269
- DataUtil . Integer ( PROP_EVENT_ALLOCATOR ) );
268
+ PROP_EVENT_ALLOCATOR );
270
269
sProperties .put (XMLInputFactory .REPORTER ,
271
- DataUtil . Integer ( PROP_WARNING_REPORTER ) );
270
+ PROP_WARNING_REPORTER );
272
271
sProperties .put (XMLInputFactory .RESOLVER ,
273
- DataUtil . Integer ( PROP_XML_RESOLVER ) );
272
+ PROP_XML_RESOLVER );
274
273
275
274
// StAX2-introduced flags:
276
275
sProperties .put (XMLInputFactory2 .P_INTERN_NAMES ,
277
- DataUtil . Integer ( PROP_INTERN_NAMES ) );
276
+ PROP_INTERN_NAMES );
278
277
sProperties .put (XMLInputFactory2 .P_INTERN_NS_URIS ,
279
- DataUtil . Integer ( PROP_INTERN_NS_URIS ) );
278
+ PROP_INTERN_NS_URIS );
280
279
sProperties .put (XMLInputFactory2 .P_REPORT_CDATA ,
281
- DataUtil . Integer ( PROP_REPORT_CDATA ) );
280
+ PROP_REPORT_CDATA );
282
281
sProperties .put (XMLInputFactory2 .P_REPORT_PROLOG_WHITESPACE ,
283
- DataUtil . Integer ( PROP_REPORT_PROLOG_WS ) );
282
+ PROP_REPORT_PROLOG_WS );
284
283
sProperties .put (XMLInputFactory2 .P_PRESERVE_LOCATION ,
285
- DataUtil . Integer ( PROP_PRESERVE_LOCATION ) );
284
+ PROP_PRESERVE_LOCATION );
286
285
sProperties .put (XMLInputFactory2 .P_AUTO_CLOSE_INPUT ,
287
- DataUtil . Integer ( PROP_AUTO_CLOSE_INPUT ) );
286
+ PROP_AUTO_CLOSE_INPUT );
288
287
sProperties .put (XMLInputFactory2 .XSP_SUPPORT_XMLID ,
289
- DataUtil . Integer ( PROP_SUPPORT_XMLID ) );
288
+ PROP_SUPPORT_XMLID );
290
289
sProperties .put (XMLInputFactory2 .P_DTD_OVERRIDE ,
291
- DataUtil . Integer ( PROP_DTD_OVERRIDE ) );
290
+ PROP_DTD_OVERRIDE );
292
291
293
292
// Non-standard ones, flags:
294
293
295
- sProperties .put (WstxInputProperties .P_CACHE_DTDS ,
296
- DataUtil .Integer (PROP_CACHE_DTDS ));
294
+ sProperties .put (WstxInputProperties .P_CACHE_DTDS , PROP_CACHE_DTDS );
297
295
sProperties .put (WstxInputProperties .P_CACHE_DTDS_BY_PUBLIC_ID ,
298
- DataUtil . Integer ( PROP_CACHE_DTDS_BY_PUBLIC_ID ) );
299
- sProperties .put (XMLInputFactory2 .P_LAZY_PARSING ,
300
- DataUtil . Integer ( PROP_LAZY_PARSING ));
296
+ PROP_CACHE_DTDS_BY_PUBLIC_ID );
297
+ sProperties .put (XMLInputFactory2 .P_LAZY_PARSING , PROP_LAZY_PARSING );
298
+ /*
301
299
sProperties.put(WstxInputProperties.P_SUPPORT_DTDPP,
302
- DataUtil .Integer (PROP_SUPPORT_DTDPP ));
300
+ PROP_SUPPORT_DTDPP));
301
+ */
303
302
sProperties .put (WstxInputProperties .P_TREAT_CHAR_REFS_AS_ENTS ,
304
- DataUtil .Integer (PROP_TREAT_CHAR_REFS_AS_ENTS ));
305
- sProperties .put (WstxInputProperties .P_NORMALIZE_LFS ,
306
- DataUtil .Integer (PROP_NORMALIZE_LFS ));
303
+ PROP_TREAT_CHAR_REFS_AS_ENTS );
304
+ sProperties .put (WstxInputProperties .P_NORMALIZE_LFS , PROP_NORMALIZE_LFS );
307
305
308
306
309
307
// Non-standard ones, non-flags:
310
308
311
309
sProperties .put (WstxInputProperties .P_INPUT_BUFFER_LENGTH ,
312
- DataUtil . Integer ( PROP_INPUT_BUFFER_LENGTH ) );
310
+ PROP_INPUT_BUFFER_LENGTH );
313
311
sProperties .put (WstxInputProperties .P_MIN_TEXT_SEGMENT ,
314
- DataUtil . Integer ( PROP_MIN_TEXT_SEGMENT ) );
312
+ PROP_MIN_TEXT_SEGMENT );
315
313
sProperties .put (WstxInputProperties .P_MAX_ATTRIBUTES_PER_ELEMENT ,
316
- DataUtil . Integer ( PROP_MAX_ATTRIBUTES_PER_ELEMENT ) );
314
+ PROP_MAX_ATTRIBUTES_PER_ELEMENT );
317
315
sProperties .put (WstxInputProperties .P_MAX_ATTRIBUTE_SIZE ,
318
- DataUtil . Integer ( PROP_MAX_ATTRIBUTE_SIZE ) );
316
+ PROP_MAX_ATTRIBUTE_SIZE );
319
317
sProperties .put (WstxInputProperties .P_MAX_CHILDREN_PER_ELEMENT ,
320
- DataUtil . Integer ( PROP_MAX_CHILDREN_PER_ELEMENT ) );
318
+ PROP_MAX_CHILDREN_PER_ELEMENT );
321
319
sProperties .put (WstxInputProperties .P_MAX_TEXT_LENGTH ,
322
- DataUtil . Integer ( PROP_MAX_TEXT_LENGTH ) );
320
+ PROP_MAX_TEXT_LENGTH );
323
321
sProperties .put (WstxInputProperties .P_MAX_ELEMENT_COUNT ,
324
- DataUtil . Integer ( PROP_MAX_ELEMENT_COUNT ) );
322
+ PROP_MAX_ELEMENT_COUNT );
325
323
sProperties .put (WstxInputProperties .P_MAX_ELEMENT_DEPTH ,
326
- DataUtil . Integer ( PROP_MAX_ELEMENT_DEPTH ) );
324
+ PROP_MAX_ELEMENT_DEPTH );
327
325
sProperties .put (WstxInputProperties .P_MAX_ENTITY_DEPTH ,
328
- DataUtil . Integer ( PROP_MAX_ENTITY_DEPTH ) );
326
+ PROP_MAX_ENTITY_DEPTH );
329
327
sProperties .put (WstxInputProperties .P_MAX_ENTITY_COUNT ,
330
- DataUtil .Integer (PROP_MAX_ENTITY_COUNT ));
331
- sProperties .put (WstxInputProperties .P_MAX_CHARACTERS ,
332
- DataUtil .Integer (PROP_MAX_CHARACTERS ));
328
+ PROP_MAX_ENTITY_COUNT );
329
+ sProperties .put (WstxInputProperties .P_MAX_CHARACTERS , PROP_MAX_CHARACTERS );
333
330
334
331
{
335
332
@ SuppressWarnings ("deprecation" )
336
- String key = WstxInputProperties .P_CUSTOM_INTERNAL_ENTITIES ;
337
- sProperties .put (key , Integer .valueOf (PROP_CUSTOM_INTERNAL_ENTITIES ));
333
+ String key = WstxInputProperties .P_CUSTOM_INTERNAL_ENTITIES ;
334
+ sProperties .put (key , Integer .valueOf (PROP_CUSTOM_INTERNAL_ENTITIES ));
338
335
}
339
336
sProperties .put (WstxInputProperties .P_DTD_RESOLVER ,
340
- DataUtil . Integer ( PROP_DTD_RESOLVER ) );
337
+ PROP_DTD_RESOLVER );
341
338
sProperties .put (WstxInputProperties .P_ENTITY_RESOLVER ,
342
- DataUtil . Integer ( PROP_ENTITY_RESOLVER ) );
339
+ PROP_ENTITY_RESOLVER );
343
340
sProperties .put (WstxInputProperties .P_UNDECLARED_ENTITY_RESOLVER ,
344
- DataUtil . Integer ( PROP_UNDECLARED_ENTITY_RESOLVER ) );
341
+ PROP_UNDECLARED_ENTITY_RESOLVER );
345
342
sProperties .put (WstxInputProperties .P_BASE_URL ,
346
- DataUtil . Integer ( PROP_BASE_URL ) );
343
+ PROP_BASE_URL );
347
344
sProperties .put (WstxInputProperties .P_INPUT_PARSING_MODE ,
348
- DataUtil . Integer ( PROP_INPUT_PARSING_MODE ) );
345
+ PROP_INPUT_PARSING_MODE );
349
346
}
350
347
351
348
/*
@@ -1414,28 +1411,28 @@ public Object getProperty(int id)
1414
1411
1415
1412
// then object values:
1416
1413
case PROP_INPUT_BUFFER_LENGTH :
1417
- return DataUtil . Integer ( getInputBufferLength () );
1414
+ return getInputBufferLength ();
1418
1415
case PROP_MAX_ATTRIBUTES_PER_ELEMENT :
1419
- return DataUtil . Integer ( getMaxAttributesPerElement () );
1416
+ return getMaxAttributesPerElement ();
1420
1417
case PROP_MAX_ATTRIBUTE_SIZE :
1421
- return DataUtil . Integer ( getMaxAttributeSize () );
1418
+ return getMaxAttributeSize ();
1422
1419
case PROP_MAX_CHILDREN_PER_ELEMENT :
1423
- return DataUtil . Integer ( getMaxChildrenPerElement () );
1420
+ return getMaxChildrenPerElement ();
1424
1421
case PROP_MAX_ELEMENT_DEPTH :
1425
- return DataUtil . Integer ( getMaxElementDepth () );
1422
+ return getMaxElementDepth ();
1426
1423
case PROP_MAX_ELEMENT_COUNT :
1427
- return Long . valueOf ( getMaxElementCount () );
1424
+ return getMaxElementCount ();
1428
1425
case PROP_MAX_CHARACTERS :
1429
- return Long . valueOf ( getMaxCharacters () );
1426
+ return getMaxCharacters ();
1430
1427
case PROP_MAX_TEXT_LENGTH :
1431
- return Long . valueOf ( getMaxTextLength () );
1428
+ return getMaxTextLength ();
1432
1429
case PROP_MAX_ENTITY_DEPTH :
1433
- return DataUtil . Integer ( getMaxEntityDepth () );
1430
+ return getMaxEntityDepth ();
1434
1431
case PROP_MAX_ENTITY_COUNT :
1435
- return Long . valueOf ( getMaxEntityCount () );
1432
+ return getMaxEntityCount ();
1436
1433
1437
1434
case PROP_MIN_TEXT_SEGMENT :
1438
- return DataUtil . Integer ( getShortestReportedTextSegment () );
1435
+ return getShortestReportedTextSegment ();
1439
1436
case PROP_CUSTOM_INTERNAL_ENTITIES :
1440
1437
return getCustomInternalEntities ();
1441
1438
case PROP_DTD_RESOLVER :
0 commit comments