public class ServerCmd extends Object
Constructor and Description |
---|
ServerCmd() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Main method to initialize the class.
|
void |
print(Map<String,Collection<String>> map,
PrintStream out) |
void |
print(String[] data,
PrintStream out)
Print data to an output stream.
|
public static void main(String[] args) throws IOException, InterruptedException, org.apache.commons.cli.ParseException
args
- Command-line arguments.IOException
InterruptedException
org.apache.commons.cli.ParseException
public void print(String[] data, PrintStream out)
data
- The data to print, each element representing a line.out
- The output stream to which printing should occur.public void print(Map<String,Collection<String>> map, PrintStream out)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.