Class FileProvider

  • All Implemented Interfaces:
    jakarta.ws.rs.ext.MessageBodyReader<File>, jakarta.ws.rs.ext.MessageBodyWriter<File>

    @Produces({"application/octet-stream","*/*"})
    @Consumes({"application/octet-stream","*/*"})
    @Singleton
    public final class FileProvider
    extends AbstractMessageReaderWriterProvider<File>
    Provider for marshalling/un-marshalling of application/octet-stream entity type to/from a File instance.
    Author:
    Paul Sandoz, Marek Potociar