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

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

        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 outStream
The <code>OutputStream</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.