src/org/ohmage/request/observer/StreamReadRequest.java
private static void handleArray(
			final JsonGenerator generator,
			final ArrayNode array,
			final ColumnNode<String> currColumn,
			final String fieldName) 
			throws JsonGenerationException, IOException {
		
		// Start the array.
		if(fieldName == null) {
			generator.writeStartArray();
		}
		else {
			generator.writeArrayFieldStart(fieldName);
		}
		
		// Iterate over the elements and add them to the result.
		int numElements = array.size();
		for(int i = 0; i < numElements; i++) {
			handleGeneric(
				generator,
				array.get(i), 
				currColumn, 
				null);
		}
		
		// End the array.
		generator.writeEndArray();
	}
/**
	 * Feeds an array into an output stream and limits the objects of the array
	 * based on the given columns.
	 * 
	 * @param generator The output stream to feed the array into.
	 * 
	 * @param encoder The encoder to convert Avro data to JSON data.
	 * 
	 * @param array The array to be fed out.
	 * 
	 * @param currColumn The columns to restrict the output. If this is null,
	 * 					 all data in the array will be output.
	 *
	 * @throws JsonGenerationException Could not serialize the data into JSON.
	 * 
	 * @throws IOException Could not write to the output stream.
	 */
Feeds an array into an output stream and limits the objects of the array
based on the given columns.

@param generator The output stream to feed the array into.

@param encoder The encoder to convert Avro data to JSON data.

@param array The array to be fed out.

@param currColumn The columns to restrict the output. If this is null,
all data in the array will be output.

@throws JsonGenerationException Could not serialize the data into JSON.

@throws IOException Could not write to the output stream.
Feeds an array into an output stream and limits the objects of the array based on the given columns . @param generator The output stream to feed the array into . @param encoder The encoder to convert Avro data to JSON data . @param array The array to be fed out . @param currColumn The columns to restrict the output . If this is null all data in the array will be output . @throws JsonGenerationException Could not serialize the data into JSON . @throws IOException Could not write to the output stream .
private static void handleArray(
			final JsonGenerator generator,
			final ArrayNode array,
			final ColumnNode<String> currColumn,
			final String fieldName) 
			throws JsonGenerationException, IOException {
		if(fieldName == null) {
			generator.writeStartArray();
		}
		else {
			generator.writeArrayFieldStart(fieldName);
		}
		int numElements = array.size();
		for(int i = 0; i < numElements; i++) {
			handleGeneric(
				generator,
				array.get(i), 
				currColumn, 
				null);
		}
		generator.writeEndArray();
	}
private static void handleArray ( final JsonGenerator generator , final ArrayNode array , final ColumnNode < String > currColumn , final String fieldName ) throws JsonGenerationException , IOException { if ( fieldName == null ) { generator . writeStartArray ( ) ; } else { generator . writeArrayFieldStart ( fieldName ) ; } int numElements = array . size ( ) ; for ( int i = 0 ; i < numElements ; i ++ ) { handleGeneric ( generator , array . get ( i ) , currColumn , null ) ; } generator . writeEndArray ( ) ; }
Feeds an array into an output stream and limits the objects of the array
 based on the given columns.
Feeds an array into an output stream and limits the objects of the array based on the given columns .
// Start the array. // Iterate over the elements and add them to the result. // End the array.