org.infinispan.cli.io
Class ConsoleIOAdapter
java.lang.Object
org.infinispan.cli.io.ConsoleIOAdapter
- All Implemented Interfaces:
- IOAdapter
public class ConsoleIOAdapter
- extends Object
- implements IOAdapter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleIOAdapter
public ConsoleIOAdapter(org.jboss.aesh.console.Console console)
isInteractive
public boolean isInteractive()
- Specified by:
isInteractive
in interface IOAdapter
readln
public String readln(String prompt)
throws IOException
- Specified by:
readln
in interface IOAdapter
- Throws:
IOException
secureReadln
public String secureReadln(String prompt)
throws IOException
- Specified by:
secureReadln
in interface IOAdapter
- Throws:
IOException
println
public void println(String s)
throws IOException
- Specified by:
println
in interface IOAdapter
- Throws:
IOException
error
public void error(String s)
throws IOException
- Specified by:
error
in interface IOAdapter
- Throws:
IOException
getWidth
public int getWidth()
- Specified by:
getWidth
in interface IOAdapter
close
public void close()
throws IOException
- Specified by:
close
in interface IOAdapter
- Throws:
IOException
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.