|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.CommandLineParser
io.DataStreamConvert
public class DataStreamConvert
Reads a java binary data stream and converts it into ascii data. It is\ essential to state the '-format' command line switch. This switch regulates which and how many primitive data types should be read from the binary file and put into a single line in the ascii file. Known primitive identifier are
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.CommandLineParser |
|---|
CommandLineParser.Test |
| Field Summary | |
|---|---|
private static String |
FOOT
A footer message. |
private static String |
SWITCHES
Switches with one argument. |
private static Map<String,String> |
USE
Detailed use of switches. |
| Constructor Summary | |
|---|---|
DataStreamConvert()
Sets up the data stream converter. |
|
| Method Summary | |
|---|---|
static void |
main(String[] arg)
Parses the command line and prints output to standard out. |
private void |
process(String[] arg)
Processes the command line if no file or no format is given, a usage message is displayed and nothing else is changed. |
| Methods inherited from class util.CommandLineParser |
|---|
getArguments, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String SWITCHES
private static final Map<String,String> USE
private static final String FOOT
| Constructor Detail |
|---|
public DataStreamConvert()
| Method Detail |
|---|
private void process(String[] arg)
throws ParseException,
IOException
ParseException
IOException
public static void main(String[] arg)
throws ParseException,
IOException
ParseException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||