public static boolean isAbsolutePath ( String uri ) { boolean absolute = false ; if ( uri != null ) { if ( uri . indexOf ( ":/" ) != - 1 ) { absolute = true ; } else if ( uri . indexOf ( ":\\" ) != - 1 ) { absolute = true ; } } return absolute ; }
Checks to see if URI is absolute or relative .