MCPcopy Create free account
hub / github.com/apache/orc / KeyTool

Method KeyTool

java/tools/src/java/org/apache/orc/tools/KeyTool.java:69–80  ·  view source on GitHub ↗
(Configuration conf,
                 String[] args)

Source from the content-addressed store, hash-verified

67 private final Configuration conf;
68
69 public KeyTool(Configuration conf,
70 String[] args) throws IOException, ParseException {
71 CommandLine opts = parseOptions(args);
72 PrintStream stream;
73 if (opts.hasOption('o')) {
74 stream = new PrintStream(opts.getOptionValue('o'), "UTF-8");
75 } else {
76 stream = System.out;
77 }
78 writer = new OutputStreamWriter(stream, "UTF-8");
79 this.conf = conf;
80 }
81
82 void run() throws IOException {
83 KeyProvider provider =

Callers

nothing calls this directly

Calls 1

parseOptionsMethod · 0.95

Tested by

no test coverage detected