当前位置: 首页>>代码示例>>Java>>正文


Java PlatformManagerException类代码示例

本文整理汇总了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());
		}
	}
}
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:25,代码来源:PlatformManagerImpl.java

示例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 );
}
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:21,代码来源:PlatformManagerImpl.java

示例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 );
}
	}
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:26,代码来源:PlatformManagerImpl.java

示例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 ));
	}		
}
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:19,代码来源:PlatformManagerImpl.java

示例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);
    }
}
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:26,代码来源:PlatformManagerImpl.java

示例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 ));
	}
}
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:20,代码来源:PlatformManagerImpl.java

示例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 ));
	}	
}
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:22,代码来源:PlatformManagerImpl.java

示例8: getLocation

import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
public File
getLocation(
	long	location_id )

	throws PlatformManagerException
{
    return( null );
}
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:9,代码来源:PlatformManagerImpl.java

示例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");
}
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:10,代码来源:PlatformManagerImpl.java

示例10: PlatformManagerException

import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
public String[]
  	getExplicitVMOptions()
          	
  		throws PlatformManagerException
{
       throw new PlatformManagerException("Unsupported capability called on platform manager");
}
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:8,代码来源:PlatformManagerImpl.java

示例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");		
}
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:11,代码来源:PlatformManagerImpl.java

示例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");
}
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:10,代码来源:PlatformManagerImpl.java

示例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");
}
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:10,代码来源:PlatformManagerImpl.java

示例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");
}
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:12,代码来源:PlatformManagerImpl.java

示例15: traceRoute

import org.gudy.azureus2.plugins.platform.PlatformManagerException; //导入依赖的package包/类
public void
traceRoute(
	InetAddress						interface_address,
	InetAddress						target,
	PlatformManagerPingCallback		callback )

	throws PlatformManagerException;
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:8,代码来源:PlatformManager.java


注:本文中的org.gudy.azureus2.plugins.platform.PlatformManagerException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。