类的使用
cn.taketoday.util.MimeType
使用MimeType的程序包
程序包
说明
Miscellaneous utility classes, such as utilities for working with strings,
classes, collections, reflection, etc.
-
cn.taketoday.core.codec中MimeType的使用
类型参数类型为MimeType的cn.taketoday.core.codec中的字段返回变量类型为MimeType的类型的cn.taketoday.core.codec中的方法修饰符和类型方法说明AbstractDecoder.getDecodableMimeTypes()Decoder.getDecodableMimeTypes()Return the list of MIME types supported by this Decoder.Decoder.getDecodableMimeTypes(ResolvableType targetType) Return the list of MIME types supported by this Decoder for the given type of element.AbstractEncoder.getEncodableMimeTypes()Encoder.getEncodableMimeTypes()Return the list of MIME types supported by this Encoder.Encoder.getEncodableMimeTypes(ResolvableType elementType) Return the list of MIME types supported by this Encoder for the given type of element.参数类型为MimeType的cn.taketoday.core.codec中的方法修饰符和类型方法说明booleanAbstractDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanByteArrayDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanByteBufferDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanCharBufferDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanDataBufferDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanDecoder.canDecode(ResolvableType elementType, MimeType mimeType) Whether the decoder supports the given target element type and the MIME type of the source stream.booleanNetty5BufferDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanNettyByteBufDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanResourceDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanStringDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanAbstractEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanByteArrayEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanByteBufferEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanCharSequenceEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanDataBufferEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanEncoder.canEncode(ResolvableType elementType, MimeType mimeType) Whether the encoder supports the given source element type and the MIME type for the output stream.booleanNetty5BufferEncoder.canEncode(ResolvableType type, MimeType mimeType) booleanNettyByteBufEncoder.canEncode(ResolvableType type, MimeType mimeType) booleanResourceEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanResourceRegionEncoder.canEncode(ResolvableType elementType, MimeType mimeType) final TAbstractCharSequenceDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) final reactor.core.publisher.Flux<T>AbstractCharSequenceDecoder.decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<T>AbstractDataBufferDecoder.decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) byte[]ByteArrayDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ByteBufferDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) DataBufferDecoder.decode(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>DataBufferDecoder.decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) default TDecoder.decode(DataBuffer buffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) Decode a data buffer to an Object of type T.reactor.core.publisher.Flux<T>Decoder.decode(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBufferinput stream into a Flux ofT.io.netty5.buffer.BufferNetty5BufferDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) io.netty.buffer.ByteBufNettyByteBufDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ResourceDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<Resource>ResourceDecoder.decode(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>AbstractDataBufferDecoder.decodeToMono(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>AbstractDecoder.decodeToMono(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>Decoder.decodeToMono(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBufferinput stream into a Mono ofT.final reactor.core.publisher.Flux<DataBuffer>AbstractSingleValueEncoder.encode(org.reactivestreams.Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) protected abstract reactor.core.publisher.Flux<DataBuffer>AbstractSingleValueEncoder.encode(T t, DataBufferFactory dataBufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) EncodeTto an outputDataBufferstream.reactor.core.publisher.Flux<DataBuffer>ByteArrayEncoder.encode(org.reactivestreams.Publisher<? extends byte[]> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>ByteBufferEncoder.encode(org.reactivestreams.Publisher<? extends ByteBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>CharSequenceEncoder.encode(org.reactivestreams.Publisher<? extends CharSequence> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>DataBufferEncoder.encode(org.reactivestreams.Publisher<? extends DataBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>Encoder.encode(org.reactivestreams.Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Encode a stream of Objects of typeTinto aDataBufferoutput stream.reactor.core.publisher.Flux<DataBuffer>Netty5BufferEncoder.encode(org.reactivestreams.Publisher<? extends io.netty5.buffer.Buffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>NettyByteBufEncoder.encode(org.reactivestreams.Publisher<? extends io.netty.buffer.ByteBuf> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) protected reactor.core.publisher.Flux<DataBuffer>ResourceEncoder.encode(Resource resource, DataBufferFactory bufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>ResourceRegionEncoder.encode(org.reactivestreams.Publisher<? extends ResourceRegion> input, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ByteArrayEncoder.encodeValue(byte[] bytes, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) ByteBufferEncoder.encodeValue(ByteBuffer byteBuffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) CharSequenceEncoder.encodeValue(CharSequence charSequence, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) DataBufferEncoder.encodeValue(DataBuffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) default DataBufferEncoder.encodeValue(T value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Encode an Object of type T to a data buffer.Netty5BufferEncoder.encodeValue(io.netty5.buffer.Buffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) NettyByteBufEncoder.encodeValue(io.netty.buffer.ByteBuf byteBuf, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) private CharsetAbstractCharSequenceDecoder.getCharset(MimeType mimeType) private CharsetCharSequenceEncoder.getCharset(MimeType mimeType) private byte[][]AbstractCharSequenceDecoder.getDelimiterBytes(MimeType mimeType) 参数类型为MimeType的cn.taketoday.core.codec中的构造器限定符构造器说明protectedAbstractCharSequenceDecoder(List<String> delimiters, boolean stripDelimiter, MimeType... mimeTypes) Create a newAbstractCharSequenceDecoderwith the given parameters.protectedAbstractDataBufferDecoder(MimeType... supportedMimeTypes) protectedAbstractDecoder(MimeType... supportedMimeTypes) protectedAbstractEncoder(MimeType... supportedMimeTypes) AbstractSingleValueEncoder(MimeType... supportedMimeTypes) CharBufferDecoder(List<String> delimiters, boolean stripDelimiter, MimeType... mimeTypes) privateCharSequenceEncoder(MimeType... mimeTypes) privateStringDecoder(List<String> delimiters, boolean stripDelimiter, MimeType... mimeTypes) -
cn.taketoday.util中MimeType的使用
类型参数类型为MimeType的cn.taketoday.util中的类修饰符和类型类说明static classMimeType.SpecificityComparator<T extends MimeType>Comparator to sortMimeTypesin order of specificity.声明为MimeType的cn.taketoday.util中的字段修饰符和类型字段说明static final MimeTypeMimeTypeUtils.ALLPublic constant mime type that includes all media ranges (i.estatic final MimeTypeMimeTypeUtils.APPLICATION_JSONPublic constant mime type forapplication/json.static final MimeTypeMimeTypeUtils.APPLICATION_OCTET_STREAMPublic constant mime type forapplication/octet-stream.static final MimeTypeMimeTypeUtils.APPLICATION_XMLPublic constant mime type forapplication/xml.static final MimeTypeMimeTypeUtils.IMAGE_GIFPublic constant mime type forimage/gif.static final MimeTypeMimeTypeUtils.IMAGE_JPEGPublic constant mime type forimage/jpeg.static final MimeTypeMimeTypeUtils.IMAGE_PNGPublic constant mime type forimage/png.static final MimeTypeMimeTypeUtils.TEXT_HTMLPublic constant mime type fortext/html.static final MimeTypeMimeTypeUtils.TEXT_PLAINPublic constant mime type fortext/plain.static final MimeTypeMimeTypeUtils.TEXT_XMLPublic constant mime type fortext/xml.类型参数类型为MimeType的cn.taketoday.util中的字段修饰符和类型字段说明private static final ConcurrentLruCache<String,MimeType> MimeTypeUtils.cachedMimeTypesstatic final Comparator<MimeType>MimeTypeUtils.SPECIFICITY_COMPARATORComparator used byMimeTypeUtils.sortBySpecificity(List).返回MimeType的cn.taketoday.util中的方法修饰符和类型方法说明static MimeTypeMimeTypeUtils.parseMimeType(String mimeType) Parse the given String into a singleMimeType.private static MimeTypeMimeTypeUtils.parseMimeTypeInternal(String mimeType) static MimeType返回变量类型为MimeType的类型的cn.taketoday.util中的方法修饰符和类型方法说明MimeTypeUtils.parseMimeTypes(String mimeTypes) Parse the comma-separated string into a list ofMimeTypeobjects.参数类型为MimeType的cn.taketoday.util中的方法修饰符和类型方法说明intCompares this MIME Type to another alphabetically.booleanMimeType.equalsTypeAndSubtype(MimeType other) Similar toequals(Object)but based on the type and subtype only, i.e. ignoring parameters.booleanIndicate whether this MIME Type includes the given MIME Type.booleanMimeType.isCompatibleWith(MimeType other) Indicate whether this MIME Type is compatible with the given MIME Type.booleanMimeType.isLessSpecific(MimeType other) Indicates whether thisMimeTypeis more less than the given type.booleanMimeType.isMoreSpecific(MimeType other) Indicates whether thisMimeTypeis more specific than the given type.private booleanMimeType.parametersAreEqual(MimeType other) Determine if the parameters in thisMimeTypeand the suppliedMimeTypeare equal, performing case-insensitive comparisons forCharsets.类型变量类型为MimeType的cn.taketoday.util中的方法参数修饰符和类型方法说明booleanMimeType.isPresentIn(Collection<? extends MimeType> mimeTypes) UnlikeCollection.contains(Object)which relies onequals(Object), this method only checks the type and the subtype, but otherwise ignores parameters.static voidMimeTypeUtils.sortBySpecificity(List<? extends MimeType> mimeTypes) Sorts the given list ofMimeTypeobjects by specificity.static StringMimeTypeUtils.toString(Collection<? extends MimeType> mimeTypes) Return a string representation of the given list ofMimeTypeobjects.参数类型为MimeType的cn.taketoday.util中的构造器限定符构造器说明protectedCopy-constructor that copies the type, subtype and parameters of the givenMimeType, skipping checks performed in other constructors.Copy-constructor that copies the type, subtype, parameters of the givenMimeType, and allows to set the specified character set.Copy-constructor that copies the type and subtype of the givenMimeType, and allows for different parameter.