Class ByteArrayResource

    • Method Detail

      • writeData

        protected void writeData​(Response response,
                                 byte[] data)
        Description copied from class: BaseDataResource
        Writes the given data to the response
        Specified by:
        writeData in class BaseDataResource<byte[]>
        response - The response to write to
        data - The data to write
      • getLength

        protected Long getLength​(byte[] data)
        Specified by:
        getLength in class BaseDataResource<byte[]>
        data - The data to be written
        The length of the data to be written. Used to set "Content-Length" response header