@Override
	public int available() throws IOException {
		synchronized(file) {
			long len=file.getLength();
			return len>Integer.MAX_VALUE?Integer.MAX_VALUE:(int)len;
		}
	}
@ Override public int available ( ) throws IOException { synchronized ( file ) { long len = file . getLength ( ) ; return len > Integer . MAX_VALUE ? Integer . MAX_VALUE : ( int ) len ; } }
Determines the number of bytes that may be read without blocking.