當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。