Class StringToInputStreamConverter

    • Constructor Detail

      • StringToInputStreamConverter

        public StringToInputStreamConverter()
      • StringToInputStreamConverter

        public StringToInputStreamConverter​(java.lang.String encoding)
      • StringToInputStreamConverter

        public StringToInputStreamConverter​(java.nio.charset.Charset charset)
    • Method Detail

      • doConvert

        protected java.io.InputStream doConvert​(java.lang.String source)
        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.String,​java.io.InputStream>
        Parameters:
        source - the non-null source-typed value
        Returns:
        the converted target-typed value, or null if conversion is not possible
      • getCharset

        @Nonnull
        public java.nio.charset.Charset getCharset()
        Get the Charset
        Returns:
        the Charset