internal virtual void Flush() { try { G.flush(); } catch (IOException e) { throw new WebApplicationException(e); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public void startOperation(String from, System.Nullable<int> id) throws java.io.IOException public virtual void StartOperation(string from, int?id) { _bytesWritten = 0; _g.writeStartObject(); if (id != null) { _g.writeNumberField("id", id); } _g.writeStringField("from", from); _g.writeRaw(",\"body\":"); _g.flush(); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private org.codehaus.jackson.JsonNode write(java.util.Map<String, Object> row) throws java.io.IOException, org.neo4j.server.rest.domain.JsonParseException private JsonNode Write(IDictionary <string, object> row) { MemoryStream @out = new MemoryStream(); JsonGenerator json = _jsonFactory.createJsonGenerator(@out); json.writeStartObject(); try { (new GraphExtractionWriter()).Write(json, row.Keys, new MapRow(row), _checker); } finally { json.writeEndObject(); json.flush(); } return(JsonHelper.jsonNode(@out.ToString(UTF_8.name()))); }