Module methanol.adapter.jackson
Class JacksonAdapterUtils
java.lang.Object
com.github.mizosoft.methanol.adapter.jackson.internal.JacksonAdapterUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> HttpResponse.BodySubscriber
<T> coerceUtf8
(HttpResponse.BodySubscriber<T> baseSubscriber, Charset charset) static byte[]
collectBytes
(List<ByteBuffer> buffers) static <X extends Throwable>
XUsed when the exception is not handled structurally to avoid unchecked wrapping.
-
Method Details
-
collectBytes
-
throwUnchecked
Used when the exception is not handled structurally to avoid unchecked wrapping.- Throws:
X
-
coerceUtf8
public static <T> HttpResponse.BodySubscriber<T> coerceUtf8(HttpResponse.BodySubscriber<T> baseSubscriber, Charset charset)
-