* @throws IllegalAccessException
* @throws InstantiationException
*/
public static DoubleArrayTire loadText(InputStream is, Class<? extends Item> cla) throws InstantiationException, IllegalAccessException {
DoubleArrayTire obj = new DoubleArrayTire();
FileIterator it = IOUtil.instanceFileIterator(is, IOUtil.UTF8);
String temp = it.next();
obj.arrayLength = Integer.parseInt(temp);
obj.dat = new Item[obj.arrayLength];
Item item = null;
while (it.hasNext()) {
temp = it.next();
item = cla.newInstance();
item.initValue(temp.split("\t"));
obj.dat[item.index] = item;
}
return obj;