Java 类com.google.common.io.ByteProcessor 实例源码

项目:Strata    文件:ArrayByteSource.java   
@Override
public <T> T read(ByteProcessor<T> processor) throws IOException {
  processor.processBytes(array, 0, array.length);
  return processor.getResult();
}