Class ByteArrayRepresentation


public class ByteArrayRepresentation extends InputRepresentation
Representation wrapping a byte array.
Author:
Jerome Louvel
  • Constructor Details

    • ByteArrayRepresentation

      public ByteArrayRepresentation(byte[] byteArray)
      Constructor.
      Parameters:
      byteArray - The byte array to wrap.
    • ByteArrayRepresentation

      public ByteArrayRepresentation(byte[] byteArray, int offSet, int length)
      Parameters:
      byteArray - The byte array to wrap.
      offSet - The offset inside the byte array.
      length - The length to expose inside the byte array.
    • ByteArrayRepresentation

      public ByteArrayRepresentation(byte[] byteArray, int offSet, int length, MediaType mediaType)
      Parameters:
      byteArray - The byte array to wrap.
      offSet - The offset inside the byte array.
      length - The length to expose inside the byte array.
      mediaType -
    • ByteArrayRepresentation

      public ByteArrayRepresentation(byte[] byteArray, int offSet, int length, MediaType mediaType, long expectedSize)
      Parameters:
      byteArray - The byte array to wrap.
      offSet - The offset inside the byte array.
      length - The length to expose inside the byte array.
      mediaType - The media type.
      expectedSize -
    • ByteArrayRepresentation

      public ByteArrayRepresentation(byte[] byteArray, MediaType mediaType)
      Constructor.
      Parameters:
      byteArray - The byte array to wrap.
      mediaType - The media type.
    • ByteArrayRepresentation

      public ByteArrayRepresentation(byte[] byteArray, MediaType mediaType, long expectedSize)
      Parameters:
      byteArray - The byte array to wrap.
      mediaType - The media type.
      expectedSize -