@@ -50,13 +50,13 @@ public class SmileFactory
5050 * Bitfield (set of flags) of all parser features that are enabled
5151 * by default.
5252 */
53- final static int DEFAULT_SMILE_PARSER_FEATURE_FLAGS = SmileParser . Feature .collectDefaults ();
53+ final static int DEFAULT_SMILE_PARSER_FEATURE_FLAGS = SmileReadFeature .collectDefaults ();
5454
5555 /**
5656 * Bitfield (set of flags) of all generator features that are enabled
5757 * by default.
5858 */
59- final static int DEFAULT_SMILE_GENERATOR_FEATURE_FLAGS = SmileGenerator . Feature .collectDefaults ();
59+ final static int DEFAULT_SMILE_GENERATOR_FEATURE_FLAGS = SmileWriteFeature .collectDefaults ();
6060
6161 /*
6262 /**********************************************************************
@@ -163,14 +163,14 @@ public Version version() {
163163 /**
164164 * Checked whether specified parser feature is enabled.
165165 */
166- public final boolean isEnabled (SmileParser . Feature f ) {
166+ public final boolean isEnabled (SmileReadFeature f ) {
167167 return f .enabledIn (_formatReadFeatures );
168168 }
169169
170170 /**
171171 * Check whether specified generator feature is enabled.
172172 */
173- public final boolean isEnabled (SmileGenerator . Feature f ) {
173+ public final boolean isEnabled (SmileWriteFeature f ) {
174174 return f .enabledIn (_formatWriteFeatures );
175175 }
176176
@@ -191,13 +191,13 @@ public boolean canUseSchema(FormatSchema schema) {
191191 }
192192
193193 @ Override
194- public Class <SmileParser . Feature > getFormatReadFeatureType () {
195- return SmileParser . Feature .class ;
194+ public Class <SmileReadFeature > getFormatReadFeatureType () {
195+ return SmileReadFeature .class ;
196196 }
197197
198198 @ Override
199- public Class <SmileGenerator . Feature > getFormatWriteFeatureType () {
200- return SmileGenerator . Feature .class ;
199+ public Class <SmileWriteFeature > getFormatWriteFeatureType () {
200+ return SmileWriteFeature .class ;
201201 }
202202
203203 /*
@@ -274,15 +274,15 @@ protected JsonGenerator _createGenerator(ObjectWriteContext writeCtxt,
274274 SmileGenerator gen = new SmileGenerator (writeCtxt , ioCtxt ,
275275 writeCtxt .getStreamWriteFeatures (_streamWriteFeatures ),
276276 smileFeatures , out );
277- if (SmileGenerator . Feature .WRITE_HEADER .enabledIn (smileFeatures )) {
277+ if (SmileWriteFeature .WRITE_HEADER .enabledIn (smileFeatures )) {
278278 gen .writeHeader ();
279279 } else {
280- if (SmileGenerator . Feature .CHECK_SHARED_STRING_VALUES .enabledIn (smileFeatures )) {
280+ if (SmileWriteFeature .CHECK_SHARED_STRING_VALUES .enabledIn (smileFeatures )) {
281281 throw new StreamWriteException (gen ,
282282 "Inconsistent settings: WRITE_HEADER disabled, but CHECK_SHARED_STRING_VALUES enabled; can not construct generator"
283283 +" due to possible data loss (either enable WRITE_HEADER, or disable CHECK_SHARED_STRING_VALUES to resolve)" );
284284 }
285- if (!SmileGenerator . Feature .ENCODE_BINARY_AS_7BIT .enabledIn (smileFeatures )) {
285+ if (!SmileWriteFeature .ENCODE_BINARY_AS_7BIT .enabledIn (smileFeatures )) {
286286 throw new StreamWriteException (gen ,
287287 "Inconsistent settings: WRITE_HEADER disabled, but ENCODE_BINARY_AS_7BIT disabled; can not construct generator"
288288 +" due to possible data loss (either enable WRITE_HEADER, or ENCODE_BINARY_AS_7BIT to resolve)" );
0 commit comments