public class ByteArrayRepresentation extends InputRepresentation
UNKNOWN_SIZE| Constructor and Description |
|---|
ByteArrayRepresentation(byte[] byteArray)
Constructor.
|
ByteArrayRepresentation(byte[] byteArray,
int offSet,
int length) |
ByteArrayRepresentation(byte[] byteArray,
int offSet,
int length,
MediaType mediaType) |
ByteArrayRepresentation(byte[] byteArray,
int offSet,
int length,
MediaType mediaType,
long expectedSize) |
ByteArrayRepresentation(byte[] byteArray,
MediaType mediaType)
Constructor.
|
ByteArrayRepresentation(byte[] byteArray,
MediaType mediaType,
long expectedSize) |
getStream, getText, release, setStream, writegetChannel, getReader, write, writeappend, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransientgetModificationDate, getTag, setModificationDate, setTagcreateClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, hashCode, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toStringpublic ByteArrayRepresentation(byte[] byteArray)
byteArray - The byte array to wrap.public ByteArrayRepresentation(byte[] byteArray,
int offSet,
int length)
byteArray - The byte array to wrap.offSet - The offset inside the byte array.length - The length to expose inside the byte array.public ByteArrayRepresentation(byte[] byteArray,
int offSet,
int length,
MediaType mediaType)
byteArray - The byte array to wrap.offSet - The offset inside the byte array.length - The length to expose inside the byte array.mediaType - public ByteArrayRepresentation(byte[] byteArray,
int offSet,
int length,
MediaType mediaType,
long expectedSize)
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 - public ByteArrayRepresentation(byte[] byteArray,
MediaType mediaType)
byteArray - The byte array to wrap.mediaType - The media type.public ByteArrayRepresentation(byte[] byteArray,
MediaType mediaType,
long expectedSize)
byteArray - The byte array to wrap.mediaType - The media type.expectedSize - Copyright © 2005-2024 Restlet.