@Override public void close() { if (currentContext.scope != Scope.IN_NONE || currentContext.first) { throw new JsonGenerationException(JsonMessages.GENERATOR_INCOMPLETE_JSON()); } flushBuffer(); try { writer.close(); } catch (IOException ioe) { throw new JsonException(JsonMessages.GENERATOR_CLOSE_IO_ERR(), ioe); } bufferPool.recycle(buf); }
@Override public void close() { if (currentContext.scope != Scope.IN_NONE || currentContext.first) { throw new JsonGenerationException(JsonMessages.GENERATOR_INCOMPLETE_JSON()); } flushBuffer(); try { writer.close(); } catch (IOException ioe) { throw new JsonException(JsonMessages.GENERATOR_CLOSE_IO_ERR(), ioe); } bufferPool.recycle(buf); }
public void close() { if (currentContext.scope != Scope.IN_NONE || currentContext.first) { throw new JsonGenerationException(JsonMessages.GENERATOR_INCOMPLETE_JSON()); } flushBuffer(); try { writer.close(); } catch (IOException ioe) { throw new JsonException(JsonMessages.GENERATOR_CLOSE_IO_ERR(), ioe); } bufferPool.recycle(buf); }
@Override public void close() { if (currentContext.scope != Scope.IN_NONE || currentContext.first) { throw new JsonGenerationException(JsonMessages.GENERATOR_INCOMPLETE_JSON()); } flushBuffer(); try { writer.close(); } catch (IOException ioe) { throw new JsonException(JsonMessages.GENERATOR_CLOSE_IO_ERR(), ioe); } bufferPool.recycle(buf); }
@Override public void close() { if (currentContext.scope != Scope.IN_NONE || currentContext.first) { throw new JsonGenerationException(JsonMessages.GENERATOR_INCOMPLETE_JSON()); } flushBuffer(); try { writer.close(); } catch (IOException ioe) { throw new JsonException(JsonMessages.GENERATOR_CLOSE_IO_ERR(), ioe); } bufferPool.recycle(buf); }
@Override public void close() { if (currentContext.scope != Scope.IN_NONE || currentContext.first) { throw new JsonGenerationException(JsonMessages.GENERATOR_INCOMPLETE_JSON()); } flushBuffer(); try { writer.close(); } catch (IOException ioe) { throw new JsonException(JsonMessages.GENERATOR_CLOSE_IO_ERR(), ioe); } bufferPool.recycle(buf); }
@Override public void close() { if (currentContext.scope != Scope.IN_NONE || currentContext.first) { throw new JsonGenerationException(JsonMessages.GENERATOR_INCOMPLETE_JSON()); } flushBuffer(); try { writer.close(); } catch (IOException ioe) { throw new JsonException(JsonMessages.GENERATOR_CLOSE_IO_ERR(), ioe); } bufferPool.recycle(buf); }