Top Description Inners Constructors Methods
io.netty.contrib.handler.codec.http.multipart

public Class Helpers

extends Object
Class Inheritance
Imports
io.netty5.buffer.Buffer, .DefaultBufferAllocators, io.netty5.handler.codec.http.DefaultLastHttpContent, .EmptyLastHttpContent, io.netty5.util.AsciiString, .Resource, java.nio.charset.Charset, java.util.Objects, java.util.stream.Collectors, .Stream

Various helper methods used by multipart implementation classes.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
Helpers.ThrowingConsumer<
the input argument accepted by the consumer
T
,
the exception than can be thrown by the consumer
X extends Exception
>

A Consumer which can throw an Exception.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static Buffer
copiedBuffer(String str, Charset charset)

pack-priv static Buffer
copiedBuffer(byte[] bytes, int offset, int length)

pack-priv static Buffer
copiedBuffer(byte[] bytes)

pack-priv static DefaultLastHttpContent
pack-priv static EmptyLastHttpContent
pack-priv static Buffer
pack-priv static String
toString(Buffer buf, int offset, int length, Charset charset)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Helpersback to summary
public Helpers()

Method Detail

copiedBufferback to summary
pack-priv static Buffer copiedBuffer(String str, Charset charset)
copiedBufferback to summary
pack-priv static Buffer copiedBuffer(byte[] bytes, int offset, int length)
copiedBufferback to summary
pack-priv static Buffer copiedBuffer(byte[] bytes)
defaultLastHttpContentback to summary
pack-priv static DefaultLastHttpContent defaultLastHttpContent()
emptyLastHttpContentback to summary
pack-priv static EmptyLastHttpContent emptyLastHttpContent()
toCompositeback to summary
pack-priv static Buffer toComposite(Buffer... bufs)
toStringback to summary
pack-priv static String toString(Buffer buf, int offset, int length, Charset charset)
io.netty.contrib.handler.codec.http.multipart back to summary

public Interface Helpers.ThrowingConsumer<T, X extends java.lang.Exception>

Annotations
@FunctionalInterface
Type Parameters
<T>
the input argument accepted by the consumer
<X>
the exception than can be thrown by the consumer

A Consumer which can throw an Exception.

Method Summary

Modifier and TypeMethod and Description
public void
accept(T t)

public default Helpers.ThrowingConsumer<T, X>
andThen(Helpers.ThrowingConsumer<? super T, X> after)

Method Detail

acceptback to summary
public void accept(T t) throws ThrowingConsumer:X
andThenback to summary
public default Helpers.ThrowingConsumer<T, X> andThen(Helpers.ThrowingConsumer<? super T, X> after)