Package com.biglybt.ui.console
Class CommandReader
- java.lang.Object
-
- java.io.Reader
-
- com.biglybt.ui.console.CommandReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
public class CommandReader extends java.io.Reader
-
-
Constructor Summary
Constructors Constructor Description CommandReader(java.io.Reader _in)
Creates a new instance of CommandReader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
private void
ensureOpen()
java.util.List
parseCommandLine(java.lang.String commandLine)
int
read()
int
read(char[] cbuf, int off, int len)
java.lang.String
readLine()
-
-
-
Field Detail
-
ENTER
private static final int ENTER
- See Also:
- Constant Field Values
-
TAB
private static final int TAB
- See Also:
- Constant Field Values
-
QUOTE
private static final int QUOTE
- See Also:
- Constant Field Values
-
ESCAPE
private static final int ESCAPE
- See Also:
- Constant Field Values
-
NONQUOTEDESCAPE
private static final int NONQUOTEDESCAPE
- See Also:
- Constant Field Values
-
in
private java.io.Reader in
-
-
Method Detail
-
ensureOpen
private void ensureOpen() throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classjava.io.Reader
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Overrides:
read
in classjava.io.Reader
- Throws:
java.io.IOException
-
read
public int read(char[] cbuf, int off, int len) throws java.io.IOException
- Specified by:
read
in classjava.io.Reader
- Throws:
java.io.IOException
-
readLine
public java.lang.String readLine() throws java.io.IOException
- Throws:
java.io.IOException
-
parseCommandLine
public java.util.List parseCommandLine(java.lang.String commandLine)
-
-