@@ -0,0 +1,1105 @@
+package com.oreilly.com.rdf.tenuki.jaxrs;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.lang.annotation.Annotation;%0Aimport java.lang.reflect.Type;%0A%0Aimport javax.ws.rs.Consumes;%0Aimport javax.ws.rs.WebApplicationException;%0Aimport javax.ws.rs.core.MediaType;%0Aimport javax.ws.rs.core.MultivaluedMap;%0Aimport javax.ws.rs.ext.MessageBodyReader;%0Aimport javax.ws.rs.ext.Provider;%0A%0Aimport com.oreilly.rdf.tenuki.Changeset;%0Aimport com.oreilly.rdf.tenuki.InputStreamChangeset;%0A%0A@Provider%0A@Consumes(%22application/vnd.talis.changeset+xml%22)%0Apublic class ChangesetReader implements MessageBodyReader%3CChangeset%3E %7B%0A%0A%09@Override%0A%09public boolean isReadable(Class%3C?%3E type, Type genericType,%0A%09%09%09Annotation%5B%5D annotations, MediaType mediaType) %7B%0A%09%09// TODO: Do something useful here?%0A%09%09return true;%0A%09%7D%0A%0A%09@Override%0A%09public Changeset readFrom(Class%3CChangeset%3E type, Type genericType,%0A%09%09%09Annotation%5B%5D annotations, MediaType mediaType,%0A%09%09%09MultivaluedMap%3CString, String%3E httpHeaders, InputStream entityStream)%0A%09%09%09throws IOException, WebApplicationException %7B%0A%09%09return new InputStreamChangeset(entityStream);%0A%09%7D%0A%0A%7D%0A

Add changeset reader for JAX-RS