org.hyperic.sigar.shell
Class FileCompleter

java.lang.Object
  extended by org.hyperic.sigar.shell.CollectionCompleter
      extended by org.hyperic.sigar.shell.FileCompleter
All Implemented Interfaces:
java.io.FilenameFilter, GetlineCompleter

public class FileCompleter
extends CollectionCompleter
implements java.io.FilenameFilter


Constructor Summary
FileCompleter()
           
FileCompleter(ShellBase shell)
           
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
           
 java.lang.String complete(java.lang.String line)
           
static java.lang.String expand(java.lang.String name)
           
 java.util.Iterator getIterator()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.hyperic.sigar.shell.CollectionCompleter
displayPossible, displayPossible, getCollection, getPartialCompletion, setCollection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCompleter

public FileCompleter()

FileCompleter

public FileCompleter(ShellBase shell)
Method Detail

expand

public static java.lang.String expand(java.lang.String name)

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Specified by:
accept in interface java.io.FilenameFilter

getIterator

public java.util.Iterator getIterator()
Overrides:
getIterator in class CollectionCompleter

complete

public java.lang.String complete(java.lang.String line)
Specified by:
complete in interface GetlineCompleter
Overrides:
complete in class CollectionCompleter

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright ? 2004-2009 Hyperic. All Rights Reserved.