if ( out2 != null ) { in = new FileInputStream( source ).getChannel( ); long size = in.size( ); MappedByteBuffer buf = in.map( FileChannel.MapMode.READ_ONLY, 0, size ); out2.write( buf ); }
	public void copyJarToODADir( )	{		File source = new File( filePath );		File odaDir = getDriverLocation( );		File viewDir = getViewerDriverLocation( );		File dest1 = null, dest2 = null;		if ( odaDir != null )		{			dest1 = new File( odaDir.getAbsolutePath( )					+ File.separator					+ source.getName( ) );		}		if ( viewDir != null )		{			dest2 = new File( viewDir.getAbsolutePath( )					+ File.separator					+ source.getName( ) );		}		if ( source.exists( ) )		{			FileChannel in = null, out1 = null, out2 = null;			try			{				if ( dest1 != null )				{					try					{						out1 = new FileOutputStream( dest1 ).getChannel( );					}					catch ( FileNotFoundException e )					{						//does nothing.					}				}				if ( dest2 != null )				{					try					{						out2 = new FileOutputStream( dest2 ).getChannel( );					}					catch ( FileNotFoundException e )					{						//does nothing.					}				}				if ( out1 != null )				{					in = new FileInputStream( source ).getChannel( );					long size = in.size( );					MappedByteBuffer buf = in.map( FileChannel.MapMode.READ_ONLY,							0,							size );					out1.write( buf );				}								try				{					if ( in != null )					{						in.close( );					}				}				catch ( IOException e1 )				{					//does nothing.				}								if ( out2 != null )				{					in = new FileInputStream( source ).getChannel( );					long size = in.size( );					MappedByteBuffer buf = in.map( FileChannel.MapMode.READ_ONLY,							0,							size );					out2.write( buf );				}			}			catch ( FileNotFoundException e )			{				//does nothing.			}			catch ( IOException e )			{				//does nothing.			}			finally			{				try				{					if ( in != null )					{						in.close( );					}					if ( out1 != null )					{						out1.close( );					}					if ( out2 != null )					{						out2.close( );					}				}				catch ( IOException e1 )				{					//does nothing.				}			}		}	}