Class ByteArrayIntArrayConverter

java.lang.Object
com.saperion.common.lang.conversion.array.ByteArrayIntArrayConverter
All Implemented Interfaces:
Converter<byte[],int[]>

public class ByteArrayIntArrayConverter extends Object implements Converter<byte[],int[]>
Converts a byte[] to an int[]
Author:
jschwarz
  • Constructor Details

    • ByteArrayIntArrayConverter

      public ByteArrayIntArrayConverter()
  • Method Details

    • convert

      public int[] convert(byte[] bytes)
      Description copied from interface: Converter
      Converts the specified object and returns the conversion result.

      Implementations have to accept null-values without throwing exceptions.

      Specified by:
      convert in interface Converter<byte[],int[]>
      Parameters:
      bytes - object to convert
      Returns:
      the converted object