Merge "Distributed Datastore integration with config subsystem Updated with the usage...
[controller.git] / opendaylight / netconf / netconf-cli / src / main / java / org / opendaylight / controller / netconf / cli / io / ConsoleIO.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.netconf.cli.io;
9
10 import java.io.IOException;
11
12 /**
13  * Definition of IO interface
14  */
15 public interface ConsoleIO {
16
17     String read() throws IOException;
18
19     String read(Character mask) throws IOException;
20
21     void write(CharSequence data) throws IOException;
22
23     void writeLn(CharSequence data) throws IOException;
24
25     void formatLn(String format, Object... args) throws IOException;
26
27     void enterContext(ConsoleContext consoleContext);
28
29     void enterRootContext(ConsoleContext consoleContext);
30
31     void leaveContext();
32
33     void leaveRootContext();
34
35     void complete();
36
37 }