while (e.hasMore()) {
DirectoryInfoModel subdir = (DirectoryInfoModel) e.next();
TextToken t = new TextToken(subdir.getName(), TextToken.STRING);
try {
t.writeTo(out);
out.write('\n');
} catch (Exception e1) {
e1.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
}