2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.netconf.cli.io;
10 import java.io.IOException;
13 * Definition of IO interface
15 public interface ConsoleIO {
17 String read() throws IOException;
19 String read(Character mask) throws IOException;
21 void write(CharSequence data) throws IOException;
23 void writeLn(CharSequence data) throws IOException;
25 void formatLn(String format, Object... args) throws IOException;
27 void enterContext(ConsoleContext consoleContext);
29 void enterRootContext(ConsoleContext consoleContext);
33 void leaveRootContext();