类 ResourceRegionEncoder

java.lang.Object
cn.taketoday.core.codec.AbstractEncoder<ResourceRegion>
cn.taketoday.core.codec.ResourceRegionEncoder
所有已实现的接口:
Encoder<ResourceRegion>

public class ResourceRegionEncoder extends AbstractEncoder<ResourceRegion>
Encoder for ResourceRegions.
从以下版本开始:
4.0
作者:
Brian Clozel
  • 字段详细资料

    • DEFAULT_BUFFER_SIZE

      public static final int DEFAULT_BUFFER_SIZE
      The default buffer size used by the encoder.
      另请参阅:
    • BOUNDARY_STRING_HINT

      public static final String BOUNDARY_STRING_HINT
      The hint key that contains the boundary string.
  • 构造器详细资料

    • ResourceRegionEncoder

      public ResourceRegionEncoder()
    • ResourceRegionEncoder

      public ResourceRegionEncoder(int bufferSize)
  • 方法详细资料

    • canEncode

      public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType)
      从接口复制的说明: Encoder
      Whether the encoder supports the given source element type and the MIME type for the output stream.
      指定者:
      canEncode 在接口中 Encoder<ResourceRegion>
      覆盖:
      canEncode 在类中 AbstractEncoder<ResourceRegion>
      参数:
      elementType - the type of elements in the source stream
      mimeType - the MIME type for the output stream (can be null if not specified)
      返回:
      true if supported, false otherwise
    • encode

      public reactor.core.publisher.Flux<DataBuffer> encode(org.reactivestreams.Publisher<? extends ResourceRegion> input, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String,Object> hints)
      从接口复制的说明: Encoder
      Encode a stream of Objects of type T into a DataBuffer output stream.
      参数:
      input - the input stream of Objects to encode. If the input should be encoded as a single value rather than as a stream of elements, an instance of Mono should be used.
      bufferFactory - for creating output stream DataBuffer's
      elementType - the expected type of elements in the input stream; this type must have been previously passed to the Encoder.canEncode(cn.taketoday.core.ResolvableType, cn.taketoday.util.MimeType) method and it must have returned true.
      mimeType - the MIME type for the output content (optional)
      hints - additional information about how to encode
      返回:
      the output stream