public static URL buildOpaque ( final String scheme ) throws GalimatiasParseException { if ( URLUtils . isRelativeScheme ( scheme ) ) { throw new GalimatiasParseException ( "Scheme is relative: " + scheme ) ; } return new URLParser ( scheme + ":" ) . parse ( ) ; }
Gets a URL object from a non - relative scheme .