e.g. Calendar Search Help
You must enter a value before pressing Search
Search Results OK to copy? Examples 1 through 10 of 47 (0.037 seconds)
Class: org.springframework.core.io.UrlResource  ©, Rating: 0% of 0, C1

76 77 public String getFilename() { 78 return new File(this.url.getFile()).getName(); 79 } 80

Class: org.springframework.metadata.commons.CommonsAttributeCompilerUtils  ©, Rating: 0% of 0, C1

061 062 URL markerUrl = CommonsAttributeCompilerUtils.class.getResource(MARKER_FILE); 063 File markerFile = new File(markerUrl.getFile()); 064 // we know marker is in /target/test-classes 065 File root = markerFile.getParentFile().getParentFile().getParentFile();

Class: org.springframework.core.io.ResourceTests  ©, Rating: 0% of 0, C1

078 Resource relative3 = resource.createRelative("../SpringVersion.class"); 079 assertEquals("SpringVersion.class", relative3.getFilename()); 080 assertTrue(relative3.getURL().getFile().endsWith("SpringVersion.class")); 081 assertTrue(relative3.exists()); 082 }

Class: org.springframework.core.io.ResourceTests  ©, Rating: 0% of 0, C1

073 Resource relative2 = resource.createRelative("support/ResourcePatternResolver.class"); 074 assertEquals("ResourcePatternResolver.class", relative2.getFilename()); 075 assertTrue(relative2.getURL().getFile().endsWith("ResourcePatternResolver.class")); 076 assertTrue(relative2.exists()); 077

Class: org.springframework.core.io.ResourceTests  ©, Rating: 0% of 0, C1

068 Resource relative1 = resource.createRelative("ClassPathResource.class"); 069 assertEquals("ClassPathResource.class", relative1.getFilename()); 070 assertTrue(relative1.getURL().getFile().endsWith("ClassPathResource.class")); 071 assertTrue(relative1.exists()); 072

Class: org.springframework.core.io.ResourceTests  ©, Rating: 0% of 0, C1

064 private void doTestResource(Resource resource) throws IOException { 065 assertEquals("Resource.class", resource.getFilename()); 066 assertTrue(resource.getURL().getFile().endsWith("Resource.class")); 067 068 Resource relative1 = resource.createRelative("ClassPathResource.class");

Class: org.springframework.core.io.ResourceTests  ©, Rating: 0% of 0, C1

047 048 public void testFileSystemResource() throws IOException { 049 Resource resource = new FileSystemResource(getClass().getResource("Resource.class").getFile()); 050 doTestResource(resource); 051 }

Class: org.springframework.util.ResourceUtils  ©, Rating: 100% of 1, C1

174 "because it does not reside in the file system: " + resourceUrl); 175 } 176 return new File(URLDecoder.decode(resourceUrl.getFile())); 177 } 178

Class: org.apache.axis.utils.URLHashSet  ©, Rating: 0% of 0, C1

106 if (url.getProtocol().equals("file")) { 107 try { 108 File f = new File(cleanup(url.getFile())); 109 if(f.exists()) 110 return f.toURL();

Class: org.apache.axis.transport.local.LocalSender  ©, Rating: 0% of 0, C3

155 try { 156 URL url = new URL(transURL); 157 String file = url.getFile(); 158 if (file.length()>0 && file.charAt(0)=='/') file = file.substring(1); 159 serverContext.setProperty(Constants.MC_REALPATH, file);

Result Page:  1.0  |  2.0  |  3.0  |  4.0  |  5.0   Next