1 package org.kuali.common.util.env.adapter; 2 3 import org.kuali.common.util.FormatUtils; 4 5 public final class BytesAdapter implements EnvAdapter<String, Long> { 6 7 @Override 8 public Class<String> getSourceType() { 9 return String.class; 10 } 11 12 @Override 13 public Long convert(String size) { 14 return FormatUtils.getBytes(size); 15 } 16 17 }