microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableEntitySerializer.java
protected static void writeSingleEntity(final StringWriter strWriter, final TableEntity entity,
            final boolean isTableEntry, final OperationContext opContext) throws StorageException, IOException {
        JsonGenerator generator = jsonFactory.createGenerator(strWriter);

        try {
            // write to stream
            writeJsonEntity(generator, entity, isTableEntry, opContext);
        }
        finally {
            generator.close();
        }
    }
protected static void writeSingleEntity(final StringWriter strWriter, final TableEntity entity,
            final boolean isTableEntry, final OperationContext opContext) throws StorageException, IOException {
        JsonGenerator generator = jsonFactory.createGenerator(strWriter);

        try {
            // write to stream
            writeJsonEntity(generator, entity, isTableEntry, opContext);
        }
        finally {
            generator.close();
        }
    }
Reserved for internal use. Writes an entity to the stream as an JSON resource, leaving the stream open
for additional writing.

@param strWriter
The <code>StringWriter</code> to write the entity to.
@param entity
The instance implementing {@link TableEntity} to write to the output stream.
@param isTableEntry
A flag indicating the entity is a reference to a table at the top level of the storage service when
<code>true<code> and a reference to an entity within a table when <code>false</code>.
@param opContext
An {@link OperationContext} object used to track the execution of the operation.

@throws StorageException
if a Storage service error occurs.
@throws IOException
if an error occurs while accessing the stream.