@@ -85,65 +85,65 @@ public IonFactoryBuilder ionSystem(IonSystem system) {
85
85
86
86
// // // Parser features
87
87
88
- public IonFactoryBuilder enable (IonParser . Feature f ) {
88
+ public IonFactoryBuilder enable (IonReadFeature f ) {
89
89
_formatReadFeatures |= f .getMask ();
90
90
return _this ();
91
91
}
92
92
93
- public IonFactoryBuilder enable (IonParser . Feature first , IonParser . Feature ... other ) {
93
+ public IonFactoryBuilder enable (IonReadFeature first , IonReadFeature ... other ) {
94
94
_formatReadFeatures |= first .getMask ();
95
- for (IonParser . Feature f : other ) {
95
+ for (IonReadFeature f : other ) {
96
96
_formatReadFeatures |= f .getMask ();
97
97
}
98
98
return _this ();
99
99
}
100
100
101
- public IonFactoryBuilder disable (IonParser . Feature f ) {
101
+ public IonFactoryBuilder disable (IonReadFeature f ) {
102
102
_formatReadFeatures &= ~f .getMask ();
103
103
return _this ();
104
104
}
105
105
106
- public IonFactoryBuilder disable (IonParser . Feature first , IonParser . Feature ... other ) {
106
+ public IonFactoryBuilder disable (IonReadFeature first , IonReadFeature ... other ) {
107
107
_formatReadFeatures &= ~first .getMask ();
108
- for (IonParser . Feature f : other ) {
108
+ for (IonReadFeature f : other ) {
109
109
_formatReadFeatures &= ~f .getMask ();
110
110
}
111
111
return _this ();
112
112
}
113
113
114
- public IonFactoryBuilder configure (IonParser . Feature f , boolean state ) {
114
+ public IonFactoryBuilder configure (IonReadFeature f , boolean state ) {
115
115
return state ? enable (f ) : disable (f );
116
116
}
117
117
118
118
// // // Generator features
119
119
120
- public IonFactoryBuilder enable (IonGenerator . Feature f ) {
120
+ public IonFactoryBuilder enable (IonWriteFeature f ) {
121
121
_formatWriteFeatures |= f .getMask ();
122
122
return _this ();
123
123
}
124
124
125
- public IonFactoryBuilder enable (IonGenerator . Feature first , IonGenerator . Feature ... other ) {
125
+ public IonFactoryBuilder enable (IonWriteFeature first , IonWriteFeature ... other ) {
126
126
_formatWriteFeatures |= first .getMask ();
127
- for (IonGenerator . Feature f : other ) {
127
+ for (IonWriteFeature f : other ) {
128
128
_formatWriteFeatures |= f .getMask ();
129
129
}
130
130
return _this ();
131
131
}
132
132
133
- public IonFactoryBuilder disable (IonGenerator . Feature f ) {
133
+ public IonFactoryBuilder disable (IonWriteFeature f ) {
134
134
_formatWriteFeatures &= ~f .getMask ();
135
135
return _this ();
136
136
}
137
137
138
- public IonFactoryBuilder disable (IonGenerator . Feature first , IonGenerator . Feature ... other ) {
138
+ public IonFactoryBuilder disable (IonWriteFeature first , IonWriteFeature ... other ) {
139
139
_formatWriteFeatures &= ~first .getMask ();
140
- for (IonGenerator . Feature f : other ) {
140
+ for (IonWriteFeature f : other ) {
141
141
_formatWriteFeatures &= ~f .getMask ();
142
142
}
143
143
return _this ();
144
144
}
145
145
146
- public IonFactoryBuilder configure (IonGenerator . Feature f , boolean state ) {
146
+ public IonFactoryBuilder configure (IonWriteFeature f , boolean state ) {
147
147
return state ? enable (f ) : disable (f );
148
148
}
149
149
0 commit comments