本文整理了Java中org.apache.hadoop.hbase.util.Base64.usage()
方法的一些代码示例,展示了Base64.usage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Base64.usage()
方法的具体详情如下:
包路径:org.apache.hadoop.hbase.util.Base64
类名称:Base64
方法名:usage
[英]Prints command line usage.
[中]打印命令行用法。
代码示例来源:origin: com.aliyun.hbase/alihbase-common
/**
* Main program. Used for testing.
*
* Encodes or decodes two files from the command line
*
* @param args command arguments
*/
public static void main(String[] args) {
if (args.length < 3) {
usage("Not enough arguments.");
} else {
String flag = args[0];
String infile = args[1];
String outfile = args[2];
if (flag.equals("-e")) { // encode
encodeFileToFile(infile, outfile);
} else if (flag.equals("-d")) { // decode
decodeFileToFile(infile, outfile);
} else {
usage("Unknown flag: " + flag);
}
}
} // end main
代码示例来源:origin: co.cask.hbase/hbase
/**
* Main program. Used for testing.
*
* Encodes or decodes two files from the command line
*
* @param args command arguments
*/
public static void main(String[] args) {
if (args.length < 3) {
usage("Not enough arguments.");
} else {
String flag = args[0];
String infile = args[1];
String outfile = args[2];
if (flag.equals("-e")) { // encode
encodeFileToFile(infile, outfile);
} else if (flag.equals("-d")) { // decode
decodeFileToFile(infile, outfile);
} else {
usage("Unknown flag: " + flag);
}
}
} // end main
代码示例来源:origin: harbby/presto-connectors
/**
* Main program. Used for testing.
*
* Encodes or decodes two files from the command line
*
* @param args command arguments
*/
public static void main(String[] args) {
if (args.length < 3) {
usage("Not enough arguments.");
} else {
String flag = args[0];
String infile = args[1];
String outfile = args[2];
if (flag.equals("-e")) { // encode
encodeFileToFile(infile, outfile);
} else if (flag.equals("-d")) { // decode
decodeFileToFile(infile, outfile);
} else {
usage("Unknown flag: " + flag);
}
}
} // end main
内容来源于网络,如有侵权,请联系作者删除!