Class ByteArrayContent

  • All Implemented Interfaces:
    Direct Known Subclasses:
    FormUrlEncodedContent, StringContent

    public class ByteArrayContent
    extends Content

    Represents content based on a byte array.

    • Constructor Detail

      • ByteArrayContent

        public ByteArrayContent(byte[] content)

        Initializes a new instance of the ByteArrayContent class.

        content - The content.
    • Method Detail

      • serializeToStream

        protected void serializeToStream( stream)

        Serializes to stream.

        Specified by:
        serializeToStream in class Content
        stream - The stream.