@@ -167,10 +167,10 @@ public JsonGenerator setCodec(ObjectCodec oc) {
167
167
/**********************************************************
168
168
*/
169
169
170
- //public void writeStartArray() throws IOException, JsonGenerationException
171
- //public void writeEndArray() throws IOException, JsonGenerationException
172
- //public void writeStartObject() throws IOException, JsonGenerationException
173
- //public void writeEndObject() throws IOException, JsonGenerationException
170
+ //public void writeStartArray() throws IOException
171
+ //public void writeEndArray() throws IOException
172
+ //public void writeStartObject() throws IOException
173
+ //public void writeEndObject() throws IOException
174
174
175
175
/*
176
176
/**********************************************************
@@ -179,49 +179,43 @@ public JsonGenerator setCodec(ObjectCodec oc) {
179
179
*/
180
180
181
181
@ Override
182
- public void writeFieldName (SerializableString name ) throws IOException , JsonGenerationException {
182
+ public void writeFieldName (SerializableString name ) throws IOException {
183
183
writeFieldName (name .getValue ());
184
184
}
185
185
186
- //public abstract void writeString(String text) throws IOException, JsonGenerationException ;
186
+ //public abstract void writeString(String text) throws IOException;
187
187
188
- //public abstract void writeString(char[] text, int offset, int len) throws IOException, JsonGenerationException ;
188
+ //public abstract void writeString(char[] text, int offset, int len) throws IOException;
189
189
190
- //public abstract void writeRaw(String text) throws IOException, JsonGenerationException ;
190
+ //public abstract void writeRaw(String text) throws IOException;
191
191
192
- //public abstract void writeRaw(char[] text, int offset, int len) throws IOException, JsonGenerationException ;
192
+ //public abstract void writeRaw(char[] text, int offset, int len) throws IOException;
193
193
194
194
@ Override
195
- public void writeString (SerializableString text ) throws IOException , JsonGenerationException {
195
+ public void writeString (SerializableString text ) throws IOException {
196
196
writeString (text .getValue ());
197
197
}
198
198
199
199
@ Override
200
- public void writeRawValue (String text ) throws IOException , JsonGenerationException
201
- {
200
+ public void writeRawValue (String text ) throws IOException {
202
201
_verifyValueWrite ("write raw value" );
203
202
writeRaw (text );
204
203
}
205
204
206
205
@ Override
207
- public void writeRawValue (String text , int offset , int len )
208
- throws IOException , JsonGenerationException
209
- {
206
+ public void writeRawValue (String text , int offset , int len ) throws IOException {
210
207
_verifyValueWrite ("write raw value" );
211
208
writeRaw (text , offset , len );
212
209
}
213
210
214
211
@ Override
215
- public void writeRawValue (char [] text , int offset , int len )
216
- throws IOException , JsonGenerationException
217
- {
212
+ public void writeRawValue (char [] text , int offset , int len ) throws IOException {
218
213
_verifyValueWrite ("write raw value" );
219
214
writeRaw (text , offset , len );
220
215
}
221
216
222
217
@ Override
223
- public int writeBinary (Base64Variant b64variant , InputStream data , int dataLength )
224
- throws IOException , JsonGenerationException {
218
+ public int writeBinary (Base64Variant b64variant , InputStream data , int dataLength ) throws IOException {
225
219
// Let's implement this as "unsupported" to make it easier to add new parser impls
226
220
_reportUnsupportedOperation ();
227
221
return 0 ;
@@ -252,8 +246,7 @@ public abstract void writeNull()
252
246
*/
253
247
254
248
@ Override
255
- public void writeObject (Object value )
256
- throws IOException , JsonProcessingException
249
+ public void writeObject (Object value ) throws IOException
257
250
{
258
251
if (value == null ) {
259
252
// important: call method that does check value write:
@@ -273,8 +266,7 @@ public void writeObject(Object value)
273
266
}
274
267
275
268
@ Override
276
- public void writeTree (TreeNode rootNode )
277
- throws IOException , JsonProcessingException
269
+ public void writeTree (TreeNode rootNode ) throws IOException
278
270
{
279
271
// As with 'writeObject()', we are not check if write would work
280
272
if (rootNode == null ) {
@@ -293,17 +285,9 @@ public void writeTree(TreeNode rootNode)
293
285
/**********************************************************
294
286
*/
295
287
296
- @ Override
297
- public abstract void flush () throws IOException ;
298
-
299
- @ Override
300
- public void close () throws IOException
301
- {
302
- _closed = true ;
303
- }
304
-
305
- @ Override
306
- public boolean isClosed () { return _closed ; }
288
+ @ Override public abstract void flush () throws IOException ;
289
+ @ Override public void close () throws IOException { _closed = true ; }
290
+ @ Override public boolean isClosed () { return _closed ; }
307
291
308
292
/*
309
293
/**********************************************************
@@ -325,15 +309,9 @@ public void close() throws IOException
325
309
* @param typeMsg Additional message used for generating exception message
326
310
* if value output is NOT legal in current generator output state.
327
311
*/
328
- protected abstract void _verifyValueWrite (String typeMsg )
329
- throws IOException , JsonGenerationException ;
312
+ protected abstract void _verifyValueWrite (String typeMsg ) throws IOException ;
330
313
331
314
// @Deprecated in 2.3 -- now defined in super-class; remove in 2.4
332
315
@ Override
333
- protected void _writeSimpleObject (Object value )
334
- throws IOException , JsonGenerationException
335
- {
336
- // TODO:
337
- super ._writeSimpleObject (value );
338
- }
316
+ protected void _writeSimpleObject (Object value ) throws IOException { super ._writeSimpleObject (value ); }
339
317
}
0 commit comments