本文整理汇总了Java中org.jf.util.ConsoleUtil类的典型用法代码示例。如果您正苦于以下问题:Java ConsoleUtil类的具体用法?Java ConsoleUtil怎么用?Java ConsoleUtil使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ConsoleUtil类属于org.jf.util包,在下文中一共展示了ConsoleUtil类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: usage
import org.jf.util.ConsoleUtil; //导入依赖的package包/类
/**
* Prints the usage message.
*/
private static void usage(boolean printDebugOptions) {
smaliHelpFormatter formatter = new smaliHelpFormatter();
formatter.setWidth(ConsoleUtil.getConsoleWidth());
formatter.printHelp("java -jar smali.jar [options] [--] [<smali-file>|folder]*",
"assembles a set of smali files into a dex file", basicOptions, "");
if (printDebugOptions) {
System.out.println();
System.out.println("Debug Options:");
StringBuffer sb = new StringBuffer();
formatter.renderOptions(sb, debugOptions);
System.out.println(sb.toString());
}
}
开发者ID:DocGerd,项目名称:DalvikSSA,代码行数:20,代码来源:main.java
示例2: usage
import org.jf.util.ConsoleUtil; //导入依赖的package包/类
/**
* Prints the usage message.
*/
private static void usage(boolean printDebugOptions) {
smaliHelpFormatter formatter = new smaliHelpFormatter();
formatter.setWidth(ConsoleUtil.getConsoleWidth());
formatter.printHelp("java -jar baksmali.jar [options] <dex-file>",
"disassembles and/or dumps a dex file", basicOptions, "");
if (printDebugOptions) {
System.out.println();
System.out.println("Debug Options:");
StringBuffer sb = new StringBuffer();
formatter.renderOptions(sb, debugOptions);
System.out.println(sb.toString());
}
}
开发者ID:DocGerd,项目名称:DalvikSSA,代码行数:20,代码来源:main.java
示例3: usage
import org.jf.util.ConsoleUtil; //导入依赖的package包/类
/**
* Prints the usage message.
*/
private static void usage() {
int consoleWidth = ConsoleUtil.getConsoleWidth();
if (consoleWidth <= 0) {
consoleWidth = 80;
}
System.out.println("java -cp baksmali.jar org.jf.dexlib2.analysis.DumpFields -d path/to/framework/jar/files <dex-file>");
}
开发者ID:CvvT,项目名称:andbg,代码行数:12,代码来源:DumpFields.java
示例4: usage
import org.jf.util.ConsoleUtil; //导入依赖的package包/类
/**
* Prints the usage message.
*/
private static void usage() {
int consoleWidth = ConsoleUtil.getConsoleWidth();
if (consoleWidth <= 0) {
consoleWidth = 80;
}
System.out.println("java -cp baksmali.jar org.jf.dexlib2.analysis.DumpVtables -d path/to/framework/jar/files <dex-file>");
}
开发者ID:CvvT,项目名称:andbg,代码行数:12,代码来源:DumpVtables.java
示例5: usage
import org.jf.util.ConsoleUtil; //导入依赖的package包/类
/**
* Prints the usage message.
*/
private static void usage(boolean printDebugOptions) {
SmaliHelpFormatter formatter = new SmaliHelpFormatter();
int consoleWidth = ConsoleUtil.getConsoleWidth();
if (consoleWidth <= 0) {
consoleWidth = 80;
}
formatter.setWidth(consoleWidth);
formatter.printHelp("java -jar smali.jar [options] [--] [<smali-file>|folder]*",
"assembles a set of smali files into a dex file", basicOptions, printDebugOptions?debugOptions:null);
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:17,代码来源:main.java
示例6: usage
import org.jf.util.ConsoleUtil; //导入依赖的package包/类
/**
* Prints the usage message.
*/
private static void usage(boolean printDebugOptions) {
SmaliHelpFormatter formatter = new SmaliHelpFormatter();
int consoleWidth = ConsoleUtil.getConsoleWidth();
if (consoleWidth <= 0) {
consoleWidth = 80;
}
formatter.setWidth(consoleWidth);
formatter.printHelp("java -jar baksmali.jar [options] <dex-file>",
"disassembles and/or dumps a dex file", basicOptions, printDebugOptions?debugOptions:null);
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:16,代码来源:main.java
示例7: usage
import org.jf.util.ConsoleUtil; //导入依赖的package包/类
public void usage() {
System.out.println(new HelpFormatter()
.width(ConsoleUtil.getConsoleWidth())
.format(getCommandHierarchy()));
}
开发者ID:AndreJCL,项目名称:JCL,代码行数:6,代码来源:Command.java
注:本文中的org.jf.util.ConsoleUtil类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论