Code example for FileChannel

Methods: position

0
	} 
 
	@Override 
	public void seek(long pos) throws IOException
	{ 
		mChannel.position(pos);
		mRemaining = mLength - pos;
	} 
 
	@Override 
	public long size() 
	  throws IllegalStateException 
	{ 
		if (mLength < 0)
			throw new IllegalStateException("Length not set after open()");
 
		return mLength;
	} 
 
	@Override 
	public int read() throws IOException