Class ByteArrayContent

    • Constructor Detail

      • ByteArrayContent

        public ByteArrayContent​(byte[] content)
      • ByteArrayContent

        public ByteArrayContent​(byte[] content,
                                int start,
                                int length)
      • ByteArrayContent

        public ByteArrayContent​(ContentType contentType,
                                byte[] content)
      • ByteArrayContent

        public ByteArrayContent​(ContentType contentType,
                                byte[] content,
                                int start,
                                int length)
    • Method Detail

      • canBeStreamedMultipleTimes

        public boolean canBeStreamedMultipleTimes()
        Description copied from class: HttpContent
        Get if the content can be streamed multiple times.
        The return value is allowed to change between multiple calls depending on the implementation.
        Specified by:
        canBeStreamedMultipleTimes in class HttpContent
        Returns:
        If the content can be streamed multiple times
      • getLength

        public int getLength()
        Description copied from class: HttpContent
        Get the content length in bytes.
        If the content length is unknown, return -1.
        Streaming the content may require valid content length depending on the implementation.
        Specified by:
        getLength in class HttpContent
        Returns:
        The content length