public static boolean isAbsoluteURI(String systemId){
  if (isWindowsAbsolutePath(systemId)) {
    return false;
  }
  final int fragmentIndex=systemId.indexOf('#');
  final int queryIndex=systemId.indexOf('?');
  final int slashIndex=systemId.indexOf('/');
  final int colonIndex=systemId.indexOf(':');
  int index=systemId.length() - 1;
  if (fragmentIndex > 0)   index=fragmentIndex;
  if ((queryIndex > 0) && (queryIndex < index))   index=queryIndex;
  if ((slashIndex > 0) && (slashIndex < index))   index=slashIndex;
  return ((colonIndex > 0) && (colonIndex < index));
}

public static boolean isAbsoluteURI ( String systemId ) { if ( isWindowsAbsolutePath ( systemId ) ) { return false ; } final int fragmentIndex = systemId . indexOf ( '#' ) ; final int queryIndex = systemId . indexOf ( '?' ) ; final int slashIndex = systemId . indexOf ( '/' ) ; final int colonIndex = systemId . indexOf ( ':' ) ; int index = systemId . length ( ) - 1 ; if ( fragmentIndex > 0 ) index = fragmentIndex ; if ( ( queryIndex > 0 ) && ( queryIndex < index ) ) index = queryIndex ; if ( ( slashIndex > 0 ) && ( slashIndex < index ) ) index = slashIndex ; return ( ( colonIndex > 0 ) && ( colonIndex < index ) ) ; }
return true if the systemid denotes an absolute uri .
