Package org.jboss.resteasy.plugins.providers.jsonp

## Class JsonArrayProvider

- java.lang.Object
- - org.jboss.resteasy.plugins.providers.jsonp.AbstractJsonpProvider
  - - org.jboss.resteasy.plugins.providers.jsonp.JsonArrayProvider

- All Implemented Interfaces:
    `javax.ws.rs.ext.MessageBodyReader<javax.json.JsonArray>`, `javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonArray>`, `AsyncBufferedMessageBodyWriter<javax.json.JsonArray>`, `AsyncMessageBodyWriter<javax.json.JsonArray>`

      @Consumes({"application/json","application/*+json","text/json"})
      @Produces({"application/json","application/*+json","text/json"})
      public class JsonArrayProvider
      extends AbstractJsonpProvider
      implements javax.ws.rs.ext.MessageBodyReader<javax.json.JsonArray>, AsyncBufferedMessageBodyWriter<javax.json.JsonArray>

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `JsonArrayProvider()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `long` | `getSize​(javax.json.JsonArray jsonValues, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)` |
    `boolean` | `isReadable​(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)` |
    `boolean` | `isWriteable​(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)` |
    `javax.json.JsonArray` | `readFrom​(Class<javax.json.JsonArray> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,​String> httpHeaders, InputStream entityStream)` |
    `void` | `writeTo​(javax.json.JsonArray jsonValues, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,​Object> httpHeaders, OutputStream entityStream)` |

    - ### Methods inherited from class org.jboss.resteasy.plugins.providers.jsonp.AbstractJsonpProvider

      `findReader, findWriter, getCharset`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.jboss.resteasy.core.messagebody.AsyncBufferedMessageBodyWriter

      `asyncWriteTo`

- - ### Constructor Detail

    - #### JsonArrayProvider

          public JsonArrayProvider()

  - ### Method Detail

    - #### isReadable

          public boolean isReadable​(Class<?> type,
                                    Type genericType,
                                    Annotation[] annotations,
                                    javax.ws.rs.core.MediaType mediaType)

      Specified by:
        `isReadable` in interface `javax.ws.rs.ext.MessageBodyReader<javax.json.JsonArray>`

    - #### readFrom

          public javax.json.JsonArray readFrom​(Class<javax.json.JsonArray> type,
                                               Type genericType,
                                               Annotation[] annotations,
                                               javax.ws.rs.core.MediaType mediaType,
                                               javax.ws.rs.core.MultivaluedMap<String,​String> httpHeaders,
                                               InputStream entityStream)
                                        throws IOException,
                                               javax.ws.rs.WebApplicationException

      Specified by:
        `readFrom` in interface `javax.ws.rs.ext.MessageBodyReader<javax.json.JsonArray>`
      Throws:
        `IOException`
        `javax.ws.rs.WebApplicationException`

    - #### isWriteable

          public boolean isWriteable​(Class<?> type,
                                     Type genericType,
                                     Annotation[] annotations,
                                     javax.ws.rs.core.MediaType mediaType)

      Specified by:
        `isWriteable` in interface `javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonArray>`

    - #### getSize

          public long getSize​(javax.json.JsonArray jsonValues,
                              Class<?> type,
                              Type genericType,
                              Annotation[] annotations,
                              javax.ws.rs.core.MediaType mediaType)

      Specified by:
        `getSize` in interface `javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonArray>`

    - #### writeTo

          public void writeTo​(javax.json.JsonArray jsonValues,
                              Class<?> type,
                              Type genericType,
                              Annotation[] annotations,
                              javax.ws.rs.core.MediaType mediaType,
                              javax.ws.rs.core.MultivaluedMap<String,​Object> httpHeaders,
                              OutputStream entityStream)
                       throws IOException,
                              javax.ws.rs.WebApplicationException

      Specified by:
        `writeTo` in interface `javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonArray>`
      Throws:
        `IOException`
        `javax.ws.rs.WebApplicationException`