FileDocCategorySizeDatePackage
FMFileUnlimited.javaAPI DocAzureus 3.0.3.43356Tue Dec 05 22:48:40 GMT 2006com.aelitis.azureus.core.diskmanager.file.impl

FMFileUnlimited

public class FMFileUnlimited extends FMFileImpl
author
parg

Fields Summary
Constructors Summary
protected FMFileUnlimited(FMFileOwner _owner, FMFileManagerImpl _manager, File _file, int _type)

		super( _owner, _manager, _file, _type );
	
Methods Summary
public voidclose()

		try{
			this_mon.enter();

			closeSupport( true );
			
		}finally{
			
			this_mon.exit();
		}
	
public longgetLength()

		try{
			this_mon.enter();
		
			ensureOpen( "FMFileUnlimited:getLength" );
		
			return( getLengthSupport());
			
		}finally{
			
			this_mon.exit();
		}
	
public voidread(org.gudy.azureus2.core3.util.DirectByteBuffer buffer, long offset)

		try{
			this_mon.enter();

			ensureOpen( "FMFileUnlimited:read" );
		
			readSupport( buffer, offset );
			
		}finally{
			
			this_mon.exit();
		}
	
public voidread(org.gudy.azureus2.core3.util.DirectByteBuffer[] buffers, long offset)

		try{
			this_mon.enter();

			ensureOpen( "FMFileUnlimited:read" );
		
			readSupport( buffers, offset );
			
		}finally{
			
			this_mon.exit();
		}
	
public voidsetAccessMode(int mode)

		try{
			this_mon.enter();
		
			if ( mode == getAccessMode() && isOpen()){
				
				return;
			}
			
			setAccessModeSupport( mode );
			
			if ( isOpen()){
				
				closeSupport( false );
			}
			
			openSupport( "FMFileUnlimited:setAccessMode" );
			
		}finally{
			
			this_mon.exit();
		}
	
public voidsetLength(long length)

		try{
			this_mon.enter();

			ensureOpen( "FMFileUnlimited:setLength" );
		
			setLengthSupport( length );
			
		}finally{
			
			this_mon.exit();
		}
	
public voidwrite(org.gudy.azureus2.core3.util.DirectByteBuffer buffer, long position)

		try{
			this_mon.enter();

			ensureOpen( "FMFileUnlimited:write" );
		
			writeSupport( buffer, position );
			
		}finally{
			
			this_mon.exit();
		}
	
public voidwrite(org.gudy.azureus2.core3.util.DirectByteBuffer[] buffers, long position)

		try{
			this_mon.enter();

			ensureOpen( "FMFileUnlimited:write" );
		
			writeSupport( buffers, position );
			
		}finally{
			
			this_mon.exit();
		}