01: package org.incava.qualog;
02:
03: import java.io.*;
04: import java.util.*;
05:
06: /**
07: * Wraps Iterators for output.
08: */
09: public class QlIterator {
10: public static boolean stack(QlLevel level, ANSIColor[] msgColors,
11: String name, Iterator it, ANSIColor fileColor,
12: ANSIColor classColor, ANSIColor methodColor, int numFrames) {
13: Collection ary = new ArrayList();
14: while (it.hasNext()) {
15: ary.add(it.next());
16: }
17:
18: return QlCollection.stack(level, msgColors, name, ary,
19: fileColor, classColor, methodColor, numFrames);
20: }
21: }
|