类 AbstractEncoder<T>

    • 字段详细资料

    • 方法详细资料

      • setLogger

        public void setLogger​(Log logger)
        Set an alternative logger to use than the one based on the class name.
        参数:
        logger - the logger to use
        从以下版本开始:
        5.1
      • getLogger

        public Log getLogger()
        Return the currently configured Logger.
        从以下版本开始:
        5.1
      • 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<T>
        参数:
        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