com.sun.enterprise.admin.cli
Class More
java.lang.Object
com.sun.enterprise.admin.cli.More
public class More
- extends java.lang.Object
More.java
- Author:
- Toby H Ferguson
This class provides a primitive more(1) functionality, paging
through the given file, with an optional pagelength.
|
Field Summary |
private java.io.BufferedReader |
in
|
private java.io.BufferedWriter |
out
|
private java.lang.String |
prompt
|
private java.lang.String |
quit
|
|
Constructor Summary |
More(int linesPerPage,
java.io.Reader src,
java.io.Writer dest,
java.io.Reader fromUser,
java.io.Writer toUser,
java.lang.String quitPrefix,
java.lang.String prompt)
|
|
Method Summary |
(package private) boolean |
wantsToContinue()
Return false iff the line read from the user starts with the
quit character. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
in
private java.io.BufferedReader in
out
private java.io.BufferedWriter out
quit
private java.lang.String quit
prompt
private java.lang.String prompt
More
public More(int linesPerPage,
java.io.Reader src,
java.io.Writer dest,
java.io.Reader fromUser,
java.io.Writer toUser,
java.lang.String quitPrefix,
java.lang.String prompt)
throws java.io.IOException
- Throws:
java.io.IOException
wantsToContinue
boolean wantsToContinue()
throws java.io.IOException
- Return false iff the line read from the user starts with the
quit character. This is a blocking call, waiting on input
from the user
- Throws:
java.io.IOException
Copyright © 2012 GlassFish Community. All Rights Reserved.