File src/de/jandankert/jscriptbox/standard/WriteWrapper.java

Last commit: Sun May 31 00:20:40 2026 +0200	Jan Dankert	Fixing some javadoc errors.
1 2 3 package de.jandankert.jscriptbox.standard; 4 5 import de.jandankert.jscriptbox.context.ScriptableFunction; 6 7 public class WriteWrapper implements ScriptableFunction 8 { 9 /** 10 * Writer. 11 */ 12 private Writer writer; 13 14 /** 15 * Prefix. 16 */ 17 private String prefix; 18 19 /** 20 * WriteWrapper constructor. 21 * @param writer the Writer 22 * @param prefix Prefix 23 */ 24 public WriteWrapper( Writer writer,String prefix ) 25 { 26 this.writer = writer; 27 this.prefix = prefix; 28 } 29 30 /** 31 * Write something to an output queue. 32 * 33 * @param text 34 */ 35 public void invoke( String text ) 36 { 37 this.writer.write(text ); 38 this.writer.write(this.prefix ); 39 } 40 }
Download src/de/jandankert/jscriptbox/standard/WriteWrapper.java
History Sun, 31 May 2026 00:20:40 +0200 Jan Dankert Fixing some javadoc errors. Sat, 30 May 2026 23:22:58 +0200 Jan Dankert Refactoring package openrat->jandankert because the maven artefact is in namespace de.jandankert