list.add(st.sval);
}
} else if (ttype == StreamTokenizer.TT_EOF) {
break;
} else {
throw new ConversionException("Encountered token of type " + ttype + " parsing elements to '" + this.toString(type) + ".");
}
}
if (list == null) {
list = Collections.EMPTY_LIST;
}
// Return the completed list
return list;
} catch (IOException e) {
throw new ConversionException("Error converting from String to '" + this.toString(type) + "': " + e.getMessage(), e);
}
}