org.apache.karaf.shell.commands
Class SortAction

java.lang.Object
  extended by org.apache.karaf.shell.console.AbstractAction
      extended by org.apache.karaf.shell.commands.SortAction
All Implemented Interfaces:
Action

public class SortAction
extends AbstractAction

Sort lines of text

Version:
$Rev: 722776 $ $Date: 2008-12-03 05:59:59 +0100 (Wed, 03 Dec 2008) $

Nested Class Summary
static class SortAction.SortComparator
           
 
Field Summary
 
Fields inherited from class org.apache.karaf.shell.console.AbstractAction
log, session
 
Constructor Summary
SortAction()
           
 
Method Summary
 java.lang.Object doExecute()
           
protected  void read(java.io.BufferedReader r, java.util.List<java.lang.String> lines)
           
protected  void sort(java.io.InputStream input, java.io.PrintStream out)
           
protected  void sort(java.util.List<java.lang.String> strings, java.io.PrintStream out)
           
 
Methods inherited from class org.apache.karaf.shell.console.AbstractAction
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortAction

public SortAction()
Method Detail

doExecute

public java.lang.Object doExecute()
                           throws Exception
Specified by:
doExecute in class AbstractAction
Throws:
Exception

read

protected void read(java.io.BufferedReader r,
                    java.util.List<java.lang.String> lines)
             throws Exception
Throws:
Exception

sort

protected void sort(java.io.InputStream input,
                    java.io.PrintStream out)
             throws Exception
Throws:
Exception

sort

protected void sort(java.util.List<java.lang.String> strings,
                    java.io.PrintStream out)
             throws Exception
Throws:
Exception


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.