no more string concatenation in graph text writer

This commit is contained in:
honfika@gmail.com
2015-07-07 16:24:43 +02:00
parent 2b94ddf793
commit 31eb284b60
43 changed files with 160 additions and 111 deletions

View File

@@ -148,6 +148,10 @@ public abstract class GraphTargetItem implements Serializable, Cloneable {
}
public GraphTextWriter toString(GraphTextWriter writer, LocalData localData) throws InterruptedException {
if (Thread.currentThread().isInterrupted()) {
throw new InterruptedException();
}
writer.startOffset(src, pos, srcData);
appendTo(writer, localData);
writer.endOffset();