Code example for RandomAccessFile

Methods: getFilePointer, length

0
		return raf;
	} 
	 
	@Override 
	public int available() throws IOException{ 
		return (int)(raf.length() - raf.getFilePointer());
	} 
	 
	@Override 
	public int read() throws IOException{ 
		return raf.read();
	} 
	 
	@Override 
	public int read(byte[] b) throws IOException{
		return raf.read(b);
	} 
	 
	@Override 
	public int read(byte[] b, int off, int len) throws IOException{
		return raf.read(b, off, len);