Class ByteArrayToStringConverter

java.lang.Object
org.openwms.common.comm.converter.ByteArrayToStringConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<byte[],String>

@IntegrationConverter @Component class ByteArrayToStringConverter extends Object implements org.springframework.core.convert.converter.Converter<byte[],String>
A ByteArrayToStringConverter is a simple byte array to String converter; allowing the character set to be specified.
Author:
Heiko Scherrer
  • Field Details

    • charSet

      private String charSet
  • Constructor Details

    • ByteArrayToStringConverter

      ByteArrayToStringConverter()
  • Method Details

    • convert

      public String convert(byte[] bytes)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<byte[],String>
    • getCharSet

      public String getCharSet()
      Returns:
      the charSet
    • setCharSet

      public void setCharSet(String charSet)
      Parameters:
      charSet - the charSet to set