private List<byte[]> convertStringListToByteArray(List<String> valueList){
  List<byte[]> byteArrayList=new ArrayList<>(valueList.size());
  for (  String value : valueList) {
    byteArrayList.add(value.getBytes(Charset.forName(CarbonCommonConstants.DEFAULT_CHARSET)));
  }
  return byteArrayList;
}

private List < byte [ ] > convertStringListToByteArray ( List < String > valueList ) { List < byte [ ] > byteArrayList = new ArrayList < > ( valueList . size ( ) ) ; for ( String value : valueList ) { byteArrayList . add ( value . getBytes ( Charset . forName ( CarbonCommonConstants . DEFAULT_CHARSET ) ) ) ; } return byteArrayList ; }
this method will convert list of string to list of byte array
