
org.cyclopsgroup.jmxterm.io.CommandInput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmxterm Show documentation
Show all versions of jmxterm Show documentation
Command line based interactive JMX client
The newest version!
package org.cyclopsgroup.jmxterm.io;
import java.io.Closeable;
import java.io.IOException;
/**
* An abstract class that provides command line input line by line
*
* @author Jiaqi Guo
*/
public abstract class CommandInput implements Closeable {
@Override
public void close() throws IOException {}
/**
* Reads a single line from input.
*
* @return The line it reads.
* @throws IOException allows any communication error.
*/
public abstract String readLine() throws IOException;
/**
* Reads input without echoing back keyboard input.
*
* @param prompt The full or partial input that user types.
* @return The string it reads.
* @throws IOException allows any communication error.
*/
public abstract String readMaskedString(String prompt) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy