java.lang.Object
org.miaixz.bus.http.plugin.httpv.Convertor.FormConvertor
- All Implemented Interfaces:
Convertor
- Enclosing interface:
Convertor
A form converter that can be used to automatically serialize form parameters.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.miaixz.bus.http.plugin.httpv.Convertor
Convertor.FormConvertor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the media type of the messages handled by this converter.byte[]Serializes a Java object into a byte array with a specified date format.byte[]Serializes a Java object into a byte array.toArray(InputStream in, Charset charset) Parses an input stream into aCoverArray.<T> TtoBean(Class<T> type, InputStream in, Charset charset) Parses an input stream into a Java bean of the specified type.<T> List<T> toList(Class<T> type, InputStream in, Charset charset) Parses an input stream into a list of Java objects of the specified type.toMapper(InputStream in, Charset charset) Parses an input stream into aCoverWapper.
-
Constructor Details
-
FormConvertor
-
-
Method Details
-
contentType
Description copied from interface:ConvertorReturns the media type of the messages handled by this converter.- Specified by:
contentTypein interfaceConvertor- Returns:
- The media type string.
-
toMapper
Description copied from interface:ConvertorParses an input stream into aCoverWapper.- Specified by:
toMapperin interfaceConvertor- Parameters:
in- The input stream.charset- The character set.- Returns:
- A
CoverWapperinstance.
-
toArray
Description copied from interface:ConvertorParses an input stream into aCoverArray.- Specified by:
toArrayin interfaceConvertor- Parameters:
in- The input stream.charset- The character set.- Returns:
- A
CoverArrayinstance.
-
serialize
Description copied from interface:ConvertorSerializes a Java object into a byte array. -
serialize
Description copied from interface:ConvertorSerializes a Java object into a byte array with a specified date format. -
toBean
Description copied from interface:ConvertorParses an input stream into a Java bean of the specified type. -
toList
Description copied from interface:ConvertorParses an input stream into a list of Java objects of the specified type.
-