public void writeTo(JsonArray jsonValues, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException
{
JsonWriter writer = findWriter(mediaType, entityStream);
try
{
writer.writeArray(jsonValues);
}
finally
{
writer.close();
}