public MultipartInput readFrom(Class<MultipartInput> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, WebApplicationException
{
String boundary = mediaType.getParameters().get("boundary");
if (boundary == null) throw new IOException("Unable to get boundary for multipart");
MultipartInputImpl input = new MyMultipartInputImpl(mediaType, workers);
input.parse(entityStream);
return input;
}