Constructor and Description |
---|
TrevniMetadataTool() |
Modifier and Type | Method and Description |
---|---|
void |
dump(Input input,
PrintStream out,
boolean pretty)
Read a Trevni file and print each row as a JSON object.
|
String |
getName()
Name of tool, to be used in listings.
|
String |
getShortDescription()
1-line description to be used in command listings.
|
int |
run(InputStream stdin,
PrintStream out,
PrintStream err,
List<String> args)
Runs the tool with supplied arguments.
|
public String getName()
Tool
public String getShortDescription()
Tool
getShortDescription
in interface Tool
public int run(InputStream stdin, PrintStream out, PrintStream err, List<String> args) throws Exception
Tool
run
in interface Tool
stdin
- Input stream to read data (typically System.in).out
- Output of tool (typically System.out).err
- Error stream (typically System.err).args
- Non-null list of arguments.Exception
- Just like main(), tools may throw Exception.public void dump(Input input, PrintStream out, boolean pretty) throws IOException
IOException
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.