question: public static MediaLocator createMediaLocator ( String url ) { MediaLocator ml ; if ( url . indexOf ( ":" ) > 0 && ( ml = new MediaLocator ( url ) ) != null ) return ml ; if ( url . startsWith ( File . separator ) ) { if ( ( ml = new MediaLocator ( "file:" + url ) ) != null ) return ml ; } else { String file = "file:" + System . getProperty ( "user.dir" ) + File . separator + url ; if ( ( ml = new MediaLocator ( file ) ) != null ) return ml ; } return null ; }
target:  Create a media locator from the given location.