/** * Copyright (c) 2014-2017 by the respective copyright holders. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org.eclipse.smarthome.io.console.rfc147.internal; import org.eclipse.smarthome.io.console.Console; /** * * @author Markus Rathgeb - Initial contribution and API * */ public class OSGiConsole implements Console { private final String base; public OSGiConsole(final String base) { this.base = base; } public String getBase() { return base; } @Override public void print(final String s) { System.out.print(s); } @Override public void println(final String s) { System.out.println(s); } @Override public void printUsage(final String s) { System.out.println(String.format("Usage: %s %s", base, s)); } }