public void setFeature ( String name , boolean state ) throws IllegalArgumentException , IllegalStateException { if ( name == null ) { throw new IllegalArgumentException ( "feature name can not be null" ) ; } if ( FEATURE_NAMES_INTERNED . equals ( name ) ) { namesInterned = state ; } else if ( FEATURE_SERIALIZER_ATTVALUE_USE_APOSTROPHE . equals ( name ) ) { attributeUseApostrophe = state ; } else { throw new IllegalStateException ( "unsupported feature " + name ) ; } }
Sets the feature .