本文整理汇总了Java中org.gudy.azureus2.plugins.platform.PlatformManagerException类的典型用法代码示例。如果您正苦于以下问题:Java PlatformManagerException类的具体用法?Java PlatformManagerException怎么用?Java PlatformManagerException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PlatformManagerException类属于org.gudy.azureus2.plugins.platform包,在下文中一共展示了PlatformManagerException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: fixPermissions
import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
protected void
fixPermissions(
File parent,
File dir )
throws PlatformManagerException
{
File[] files = dir.listFiles();
if ( files == null ){
return;
}
for (int i=0;i<files.length;i++){
File file = files[i];
if ( file.isFile()){
copyFilePermissions( parent.getAbsolutePath(), file.getAbsolutePath());
}
}
}
示例2: getVMOptionFile
import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
public File
getVMOptionFile()
throws PlatformManagerException
{
checkCapability( PlatformManagerCapabilities.AccessExplicitVMOptions );
File local_options = checkAndGetLocalVMOptionFile();
if ( !local_options.exists()){
try{
local_options.createNewFile();
}catch( Throwable e ){
}
}
return( local_options );
}
示例3: getApplicationEXELocation
import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
public boolean
getRunAtLogin()
throws PlatformManagerException
{
File exe = getApplicationEXELocation();
if ( exe != null && exe.exists()){
try{
String value = access.readStringValue(
AEWin32Access.HKEY_CURRENT_USER,
"Software\\Microsoft\\Windows\\CurrentVersion\\Run", app_name );
return( value.equals( exe.getAbsolutePath()));
}catch( Throwable e ){
return( false );
}
}else{
return( false );
}
}
示例4: setTCPTOSEnabled
import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
public void
setTCPTOSEnabled(
boolean enabled )
throws PlatformManagerException
{
try{
access.writeWordValue(
AEWin32Access.HKEY_LOCAL_MACHINE,
"System\\CurrentControlSet\\Services\\Tcpip\\Parameters",
"DisableUserTOSSetting",
enabled?0:1);
}catch( Throwable e ){
throw( new PlatformManagerException( "Failed to write registry details", e ));
}
}
示例5: showFile
import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void showFile(String file_name)
throws PlatformManagerException
{
try
{
File file = new File(file_name);
access.createProcess( "explorer.exe " + ( file.isDirectory() ? "/e," : "/e,/select," ) + "\"" + file_name + "\"", false );
/*
Runtime.getRuntime().exec(
new String[] { "explorer.exe",
file.isDirectory() ? "/e," : "/e,/select,",
"\"" + file_name + "\"" });
*/
}
catch (Throwable e)
{
throw new PlatformManagerException("Failed to show file " + file_name, e);
}
}
示例6: testNativeAvailability
import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
public boolean
testNativeAvailability(
String name )
throws PlatformManagerException
{
if ( !hasCapability( PlatformManagerCapabilities.TestNativeAvailability )){
throw new PlatformManagerException("Unsupported capability called on platform manager");
}
try{
return( access.testNativeAvailability( name ));
}catch( Throwable e ){
throw( new PlatformManagerException( "Failed to test availability", e ));
}
}
示例7: traceRoute
import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
public void
traceRoute(
InetAddress interface_address,
InetAddress target,
PlatformManagerPingCallback callback )
throws PlatformManagerException
{
if ( !hasCapability( PlatformManagerCapabilities.TraceRouteAvailability )){
throw new PlatformManagerException("Unsupported capability called on platform manager");
}
try{
access.traceRoute( interface_address, target, callback );
}catch( Throwable e ){
throw( new PlatformManagerException( "Failed to trace route", e ));
}
}
示例8: getLocation
import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
public File
getLocation(
long location_id )
throws PlatformManagerException
{
return( null );
}
示例9: isApplicationRegistered
import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public boolean isApplicationRegistered()
throws PlatformManagerException
{
throw new PlatformManagerException("Unsupported capability called on platform manager");
}
示例10: PlatformManagerException
import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
public String[]
getExplicitVMOptions()
throws PlatformManagerException
{
throw new PlatformManagerException("Unsupported capability called on platform manager");
}
示例11: traceRoute
import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
public void
traceRoute(
InetAddress interface_address,
InetAddress target,
PlatformManagerPingCallback callback )
throws PlatformManagerException
{
throw new PlatformManagerException("Unsupported capability called on platform manager");
}
示例12: registerApplication
import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void registerApplication()
throws PlatformManagerException
{
throw new PlatformManagerException("Unsupported capability called on platform manager");
}
示例13: getVersion
import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public String getVersion()
throws PlatformManagerException
{
throw new PlatformManagerException("Unsupported capability called on platform manager");
}
示例14: registerAdditionalFileType
import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
public void
registerAdditionalFileType(
String name, // e.g. "BitTorrent"
String description, // e.g. "BitTorrent File"
String type, // e.g. ".torrent"
String content_type ) // e.g. "application/x-bittorrent"
throws PlatformManagerException
{
throw new PlatformManagerException("Unsupported capability called on platform manager");
}
示例15: traceRoute
import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
public void
traceRoute(
InetAddress interface_address,
InetAddress target,
PlatformManagerPingCallback callback )
throws PlatformManagerException;