Class ObjectToByteArrayConverter

    • Constructor Detail

      • ObjectToByteArrayConverter

        public ObjectToByteArrayConverter()
    • Method Detail

      • doConvert

        protected byte[] doConvert​(java.lang.Object source)
                            throws java.lang.Throwable
        Description copied from class: AbstractConverter
        Converts the non-null source-typed value to the target-typed value.

        This method is called by AbstractConverter.convert(Object) after checking if the source is null. Subclasses must implement this method to provide the actual conversion logic.

        Specified by:
        doConvert in class AbstractConverter<java.lang.Object,​byte[]>
        Parameters:
        source - the non-null source-typed value
        Returns:
        the converted target-typed value, or null if conversion is not possible
        Throws:
        java.lang.Throwable - if an error occurs during conversion