private static void checkSchemeConsistency ( URI u ) throws IOException { String scheme = u . getScheme ( ) ; // the URI should have a proper scheme if ( scheme == null ) { throw new IOException ( "Undefined scheme for " + u ) ; } }
Checks the consistency of a URI in particular if the scheme is specified