Package io.micronaut.servlet.http.body
Class AvailableByteArrayBody
java.lang.Object
io.micronaut.servlet.http.body.AvailableByteArrayBody
- All Implemented Interfaces:
io.micronaut.http.body.AvailableByteBody,io.micronaut.http.body.ByteBody,io.micronaut.http.body.CloseableAvailableByteBody,io.micronaut.http.body.CloseableByteBody,Closeable,AutoCloseable
@Internal
@Deprecated(forRemoval=true)
public final class AvailableByteArrayBody
extends Object
implements io.micronaut.http.body.CloseableAvailableByteBody
Deprecated, for removal: This API element is subject to removal in a future version.
AvailableByteBody implementation based on a byte array.
Note: While internal, this is also used from the Azure, AWS and GCP modules.
- Since:
- 4.9.0
- Author:
- Jonas Konrad
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.http.body.ByteBody
io.micronaut.http.body.ByteBody.BodyDiscardedException, io.micronaut.http.body.ByteBody.SplitBackpressureMode -
Constructor Summary
ConstructorsConstructorDescriptionAvailableByteArrayBody(byte[] array) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<? extends io.micronaut.http.body.CloseableAvailableByteBody>buffer()Deprecated, for removal: This API element is subject to removal in a future version.voidclose()Deprecated, for removal: This API element is subject to removal in a future version.longlength()Deprecated, for removal: This API element is subject to removal in a future version.@NonNull io.micronaut.http.body.CloseableAvailableByteBodysplit()Deprecated, for removal: This API element is subject to removal in a future version.byte @NonNull []Deprecated, for removal: This API element is subject to removal in a future version.@NonNull io.micronaut.core.io.buffer.ByteBuffer<?>Deprecated, for removal: This API element is subject to removal in a future version.@NonNull InputStreamDeprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.http.body.AvailableByteBody
expectedLength, split, toByteArrayPublisher, toByteBufferPublisher, toStringMethods inherited from interface io.micronaut.http.body.CloseableAvailableByteBody
allowDiscardMethods inherited from interface io.micronaut.http.body.CloseableByteBody
allowDiscard
-
Constructor Details
-
AvailableByteArrayBody
public AvailableByteArrayBody(byte[] array) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
split
@NonNull public @NonNull io.micronaut.http.body.CloseableAvailableByteBody split()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
splitin interfaceio.micronaut.http.body.AvailableByteBody- Specified by:
splitin interfaceio.micronaut.http.body.ByteBody
-
toInputStream
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
toInputStreamin interfaceio.micronaut.http.body.ByteBody
-
buffer
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
bufferin interfaceio.micronaut.http.body.ByteBody
-
length
public long length()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
lengthin interfaceio.micronaut.http.body.AvailableByteBody
-
toByteArray
public byte @NonNull [] toByteArray()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
toByteArrayin interfaceio.micronaut.http.body.AvailableByteBody
-
toByteBuffer
@NonNull public @NonNull io.micronaut.core.io.buffer.ByteBuffer<?> toByteBuffer()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
toByteBufferin interfaceio.micronaut.http.body.AvailableByteBody
-
close
public void close()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceio.micronaut.http.body.CloseableByteBody
-
AvailableByteArrayBodyfrom core instead