本文整理汇总了Java中de.schlichtherle.truezip.socket.sl.IOPoolLocator类的典型用法代码示例。如果您正苦于以下问题:Java IOPoolLocator类的具体用法?Java IOPoolLocator怎么用?Java IOPoolLocator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IOPoolLocator类属于de.schlichtherle.truezip.socket.sl包,在下文中一共展示了IOPoolLocator类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ModuleManagementTool
import de.schlichtherle.truezip.socket.sl.IOPoolLocator; //导入依赖的package包/类
/**
* Constructor
*/
public ModuleManagementTool()
{
TConfig config = TConfig.get();
config.setArchiveDetector(new TArchiveDetector("war|amp", new JarDriver(IOPoolLocator.SINGLETON)));
// Load the default file mapping properties
this.defaultFileMappingProperties = new Properties();
InputStream is = this.getClass().getClassLoader().getResourceAsStream(DEFAULT_FILE_MAPPING_PROPERTIES);
try
{
this.defaultFileMappingProperties.load(is);
}
catch (IOException exception)
{
throw new ModuleManagementToolException("Unable to load default extension file mapping properties.", exception);
}
}
示例2: WarHelperImplTest
import de.schlichtherle.truezip.socket.sl.IOPoolLocator; //导入依赖的package包/类
public WarHelperImplTest()
{
super(new LogOutput()
{
@Override
public void info(Object message)
{
System.out.println(message);
}
});
TConfig config = TConfig.get();
config.setArchiveDetector(new TArchiveDetector("war|amp", new ZipDriver(IOPoolLocator.SINGLETON)));
}