static private void write(OutputStream output, Map<Node, Integer> predicateStats, Map<Node, Integer> typeStats, long statsTotal) { Item item = format(predicateStats, typeStats, statsTotal) ; ItemWriter.write(output, item) ; }
static private void write(OutputStream output, Map<Node, Integer> predicateStats, Map<Node, Integer> typeStats, long statsTotal) { Item item = format(predicateStats, typeStats, statsTotal) ; ItemWriter.write(output, item) ; }
@Override public String toString() { IndentedLineBuffer iBuff = new IndentedLineBuffer() ; ItemWriter.write(iBuff, this, null) ; //iBuff.getIndentedWriter().ensureStartOfLine() ; //iBuff.getIndentedWriter().flush() ; return iBuff.asString() ; }
public static void write(OutputStream out, Item item) { IndentedWriter iw = new IndentedWriter(out) ; write(iw, item , null) ; iw.ensureStartOfLine() ; iw.flush(); }
@Override protected void exec(Item item) { if ( ! print ) return ; if ( item == null ) { System.err.println("No expression") ; throw new TerminationException(9) ; } divider() ; IndentedWriter out = new IndentedWriter(System.out, lineNumbers) ; // Need to check if used. //PrefixMapping pmap = SSE.getDefaultPrefixMapWrite() ; PrefixMapping pmap = null ; SerializationContext sCxt = new SerializationContext(pmap) ; ItemWriter.write(out, item, sCxt) ; //item.output(out) ; out.ensureStartOfLine() ; out.flush(); } }
@Override protected void exec(Item item) { if ( ! print ) return ; if ( item == null ) { System.err.println("No expression") ; throw new TerminationException(9) ; } divider() ; IndentedWriter out = new IndentedWriter(System.out, lineNumbers) ; // Need to check if used. //PrefixMapping pmap = SSE.getDefaultPrefixMapWrite() ; PrefixMapping pmap = null ; SerializationContext sCxt = new SerializationContext(pmap) ; ItemWriter.write(out, item, sCxt) ; //item.output(out) ; out.ensureStartOfLine() ; out.flush(); } }