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
ConstructorDescriptionAvailableByteArrayBody
(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.void
close()
Deprecated, for removal: This API element is subject to removal in a future version.long
length()
Deprecated, for removal: This API element is subject to removal in a future version.@NonNull io.micronaut.http.body.CloseableAvailableByteBody
split()
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 InputStream
Deprecated, 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, wait
Methods inherited from interface io.micronaut.http.body.AvailableByteBody
expectedLength, split, toByteArrayPublisher, toByteBufferPublisher, toString
Methods inherited from interface io.micronaut.http.body.CloseableAvailableByteBody
allowDiscard
Methods 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:
split
in interfaceio.micronaut.http.body.AvailableByteBody
- Specified by:
split
in interfaceio.micronaut.http.body.ByteBody
-
toInputStream
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
toInputStream
in interfaceio.micronaut.http.body.ByteBody
-
buffer
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
buffer
in 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:
length
in 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:
toByteArray
in 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:
toByteBuffer
in 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceio.micronaut.http.body.CloseableByteBody
-
AvailableByteArrayBody
from core instead