|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.admin.cli.Pager
class Pager
Pager.java
| Field Summary | |
|---|---|
private java.io.BufferedReader |
in
|
private java.lang.String |
line
|
private java.io.BufferedWriter |
out
|
private int |
pageLength
|
| Constructor Summary | |
|---|---|
Pager(int lines,
java.io.Reader in,
java.io.Writer out)
Construct an object which will copy one pages worth of lines at a time from the input to the the output. |
|
| Method Summary | |
|---|---|
(package private) boolean |
hasNext()
Indicate if there are lines left to be copied |
private void |
nextLine()
Get the next line and copy it inot the internal buffer so's we can answer the hasNext() question |
(package private) void |
nextPage()
Copy the next page worth of lines from input to output |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.io.BufferedReader in
private java.io.BufferedWriter out
private int pageLength
private java.lang.String line
| Constructor Detail |
|---|
Pager(int lines,
java.io.Reader in,
java.io.Writer out)
throws java.io.IOException
lines - the number of lines in a page. A number less
than 0 means copy all the input to the output.in - the source of the copy operationout - the destination of the copy operation
java.io.IOException - if there's a problem reading from, or
writing to, the source or destination| Method Detail |
|---|
void nextPage()
throws java.io.IOException
java.io.IOExceptionboolean hasNext()
private void nextLine()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||