ResourceTokenizer { protected static String doRemoveWWWPart( String resource ) { resource = resource.replaceFirst( "http: resource = resource.replaceFirst( "https: return resource; }  static String webTokenize( String resource ); static String safeTokenize( String resource ); static String safeTokenize( String resource, int level ); static boolean empty( String v ); static String tokenize2( String resource ); static String tokenize3( String resource ); static String tokenize4( String resource ); static String doRemoveSessionIDs( String resource ); static String tokenize( String resource ); static String tokenizeRemoveNamedAnchors( String resource ); static String tokenizeRemoveQueryData( String resource ); static String doRemoveIndexPart( String resource ); static String domainTokenize( String resource ); static String domainTokenize( String resource, boolean stripHTTP ); static String rootDomainTokenize( String resource ); static String rootDomainTokenize( String resource, boolean stripHTTP ); static String domainTokenizeByLevel( String resource, int level ); static String domainNameTokenize( String resource ); static String expandResource( String resource ); static String getHostName( String resource ); static byte[] getAddress( String input ); static boolean isNetworkAddressable( String resource ); static boolean isSecureScheme( String resource ); static boolean hasSafeCharacters(String resource); static boolean onlyHasScheme(String resource); static String truncate( URL resource, int displayResourceLength ); static String truncate( String resource, int displayResourceLength ); static Logger log; static boolean TOKENIZE_HTML_QUERY_ENABLE; static int TOKENIZE_HTML_QUERY_WIDTH; static boolean TOKENIZE_REMOVE_REDIRECT_ENABLE; }
@Test public void testDoRemoveWWWPart() throws Exception { assertEquals( "http: assertEquals( "http: assertEquals( "https: }