/usr/share/doc/libjcifs-java/examples/URLTest.java is in libjcifs-java-doc 1.3.19-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | import java.net.*;
import java.util.*;
public class URLTest {
public static void main( String[] argv ) throws Exception {
URL url;
jcifs.Config.registerSmbURLHandler();
if( argv.length > 2 ) {
url = new URL( new URL( new URL( argv[0] ), argv[1] ), argv[2] );
} else if( argv.length > 1 ) {
url = new URL( new URL( argv[0] ), argv[1] );
} else {
url = new URL( argv[0] );
}
System.out.println( " authority: " + url.getAuthority() );
System.out.println( " file: " + url.getFile() );
System.out.println( " host: " + url.getHost() );
System.out.println( " port: " + url.getPort() );
System.out.println( " path: " + url.getPath() );
System.out.println( " query: " + url.getQuery() );
System.out.println( " ref: " + url.getRef() );
System.out.println( " userinfo: " + url.getUserInfo() );
System.out.println( "externalform: " + url.toExternalForm() );
System.out.println( " string: " + url.toString() );
System.exit( 0 );
}
}
|