FileDocCategorySizeDatePackage
More.javaAPI DocGlassfish v2 API3036Fri May 04 22:25:22 BST 2007com.sun.enterprise.cli.framework

More

public class More extends Object
More.java
author
Toby H Ferguson
version
$Revision: 1.4 $ This class provides a primitive more(1) functionality, paging through the given file, with an optional pagelength.

Fields Summary
Constructors Summary
public More(int linesPerPage, Reader src, Writer dest, Reader fromUser, Writer toUser, String promptChar, String prompt)


	loopUntilQuit(new User(fromUser, toUser, promptChar, prompt),
				  new Pager(linesPerPage, src, dest));
  
Methods Summary
private voidloopUntilQuit(User user, Pager pager)

	do {
	  pager.nextPage();
	} while (pager.hasNext() && user.wantsToContinue());