i am trying to write a jersey service which consumes a CSV file. i want to serialize that csv file into an object. what can i do to achieve this? i am going to use opencsv as the parser library for csv file.
my base structure of the service:
@POST
@Consumes(MediaType.TEXT_PLAIN){
public void addUsers(@FormDataParam("file") InputStream inputStream) throws UnsupportedEncodingException{
}
is the @Consumes annotation which i am using the right way as well?