serval-dna/java/org/servalproject/servald/JniResultsList.java
2013-01-23 14:43:50 +10:30

18 lines
361 B
Java

package org.servalproject.servald;
import java.util.List;
public class JniResultsList extends AbstractJniResults implements IJniResults {
final List<byte[]> list;
private byte[] empty = new byte[0];
JniResultsList(List<byte[]> list) {
this.list = list;
}
@Override
public void putBlob(byte[] value) {
list.add(value == null ? empty : value);
}
}