Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.nirima.docker.jersey;
 
Created by magnayn on 03/06/2014.
@Consumes("text/plain")
@Produces("text/plain")
public class NullReader implements MessageBodyReader {
    @Override
    public boolean isReadable(Class typeType genericTypeAnnotation[] annotationsMediaType mediaType) {
        return type.equals(void.class);
    }
    @Override
    public Object readFrom(Class typeType genericTypeAnnotation[] annotationsMediaType mediaTypeMultivaluedMap httpHeadersInputStream entityStreamthrows IOExceptionWebApplicationException {
        return null;
    }
New to GrepCode? Check out our FAQ X