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[]>
        Parameters:
        response - The response to write to
        data - The data to write
      • getLength

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