Class BinaryDataProvider<T>

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyReader<T>, javax.ws.rs.ext.MessageBodyWriter<T>

    public class BinaryDataProvider<T>
    extends AbstractConfigurableProvider
    implements javax.ws.rs.ext.MessageBodyReader<T>, javax.ws.rs.ext.MessageBodyWriter<T>
    • Constructor Detail

      • BinaryDataProvider

        public BinaryDataProvider()
    • Method Detail

      • isReadable

        public boolean isReadable​(Class<?> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  javax.ws.rs.core.MediaType mt)
        Specified by:
        isReadable in interface javax.ws.rs.ext.MessageBodyReader<T>
      • getSize

        public long getSize​(T t,
                            Class<?> type,
                            Type genericType,
                            Annotation[] annotations,
                            javax.ws.rs.core.MediaType mt)
        Specified by:
        getSize in interface javax.ws.rs.ext.MessageBodyWriter<T>
      • isWriteable

        public boolean isWriteable​(Class<?> type,
                                   Type genericType,
                                   Annotation[] annotations,
                                   javax.ws.rs.core.MediaType mt)
        Specified by:
        isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<T>
      • copyUsingNio

        protected void copyUsingNio​(InputStream is,
                                    OutputStream os,
                                    org.apache.cxf.continuations.Continuation cont)
      • isRangeSupported

        protected boolean isRangeSupported()
      • setReportByteArraySize

        public void setReportByteArraySize​(boolean report)
      • setCloseResponseInputStream

        public void setCloseResponseInputStream​(boolean closeResponseInputStream)
      • setBufferSize

        public void setBufferSize​(int bufferSize)