Back to project page wolPi.
The source code is released under:
Apache License
If you think the Android project wolPi listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.matthesrieke.wolpi; //from ww w . j a v a2 s . c o m import org.slf4j.helpers.FormattingTuple; import org.slf4j.helpers.MessageFormatter; public class SysoutInteractor implements Interactor { @Override public boolean requestConfirmation(String request) { return true; } @Override public void onOutput(String output, Object... inlineStrings) { FormattingTuple result = MessageFormatter.arrayFormat(output, inlineStrings); System.out.println(result.getMessage()); } @Override public void onError(String error, Object... inlineErrors) { onOutput(error, inlineErrors); } @Override public void onOutput(String output, Located l, Object... inlineStrings) { onOutput(output, inlineStrings); } @Override public void onError(String error, Located l, Object... inlineErrors) { onError(error, inlineErrors); } }