本文整理汇总了Java中org.herac.tuxguitar.util.TGLibraryLoader类的典型用法代码示例。如果您正苦于以下问题:Java TGLibraryLoader类的具体用法?Java TGLibraryLoader怎么用?Java TGLibraryLoader使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TGLibraryLoader类属于org.herac.tuxguitar.util包,在下文中一共展示了TGLibraryLoader类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadLibraries
import org.herac.tuxguitar.util.TGLibraryLoader; //导入依赖的package包/类
public static void loadLibraries(TGContext context){
String libraryPath = System.getProperty(TG_LIBRARY_PATH);
if(libraryPath != null){
String[] libraryPaths = libraryPath.split(File.pathSeparator);
String libraryPrefix = System.getProperty(TG_LIBRARY_PREFIX);
String libraryExtension = System.getProperty(TG_LIBRARY_EXTENSION);
for(int i = 0; i < libraryPaths.length; i++){
TGLibraryLoader.getInstance(context).loadLibraries(new File(libraryPaths[i]),libraryPrefix,libraryExtension);
}
}
}
示例2: loadLibraries
import org.herac.tuxguitar.util.TGLibraryLoader; //导入依赖的package包/类
public static void loadLibraries(){
String libraryPath = System.getProperty(TG_LIBRARY_PATH);
if(libraryPath != null){
String[] libraryPaths = libraryPath.split(File.pathSeparator);
String libraryPrefix = System.getProperty(TG_LIBRARY_PREFIX);
String libraryExtension = System.getProperty(TG_LIBRARY_EXTENSION);
for(int i = 0; i < libraryPaths.length; i++){
TGLibraryLoader.instance().loadLibraries(new File(libraryPaths[i]),libraryPrefix,libraryExtension);
}
}
}