Home
last modified time | relevance | path

Searched refs:getFile (Results 1 – 25 of 31) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURLTest.java74 "/dir1/dir2/test.cgi?point1.html", u.getFile()); in test_ConstructorLjava_lang_String()
82 assertTrue("u1 returns a wrong file", u1.getFile().equals("")); in test_ConstructorLjava_lang_String()
92 "/dir1/dir2/test.cgi?point1.html", u2.getFile()); in test_ConstructorLjava_lang_String()
102 .getFile()); in test_ConstructorLjava_lang_String()
110 assertEquals("u3 returns a wrong file", "/", u3.getFile()); in test_ConstructorLjava_lang_String()
119 assertEquals("u3a returns a wrong file", "/", u3a.getFile()); in test_ConstructorLjava_lang_String()
128 assertTrue("u3b returns a wrong file", u3b.getFile().equals("")); in test_ConstructorLjava_lang_String()
138 "/di!@$%^&*()_+r1/di:::r2/test.cgi?point1.html", u4.getFile()); in test_ConstructorLjava_lang_String()
145 assertEquals("u5 returns a wrong file", "/testing.tst", u5.getFile()); in test_ConstructorLjava_lang_String()
152 assertEquals("u5a returns a wrong file", "testing.tst", u5a.getFile()); in test_ConstructorLjava_lang_String()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DURLTest.java52 assertEquals("/directory/file?query", url.getFile()); in testUrlParts()
265 url.getFile())); in assertFields()
299 assertEquals("/path", url.getFile()); in testOmittedHost()
311 assertEquals("/path", url.getFile()); in testNoHost()
320 assertEquals("", url.getFile()); in testNoPath()
332 assertEquals("", url.getFile()); in testEmptyHostAndNoPath()
346 assertEquals("", url.getFile()); in testNoHostAndNoPath()
401 assertEquals("/path", url.getFile()); in testPathOnly()
407 assertEquals("?query", url.getFile()); in testQueryOnly()
414 assertEquals("", url.getFile()); in testFragmentOnly()
[all …]
DOldURLTest.java73 assertEquals("Assert 3: wrong file", "/test.html", testURL.getFile()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
424 assertEquals(sampleFile.getPath(),fileURL.getFile()); in testGetFile()
661 assertEquals("SSISH1 returns a wrong file", "/test.html", u.getFile()); in test_ConstructorLjava_lang_StringLjava_lang_StringILjava_lang_StringLjava_net_URLStreamHandler()
671 assertEquals("SSISH2 returns a wrong file", "/test.html", u.getFile()); in test_ConstructorLjava_lang_StringLjava_lang_StringILjava_lang_StringLjava_net_URLStreamHandler()
735 assertEquals("1 returns a wrong file", "/file.java", u1.getFile()); in testURLURLStringURLStreamHandler()
744 .getFile()); in testURLURLStringURLStreamHandler()
751 assertEquals("3 returns a wrong file", "/dir1/file.java", u1.getFile()); in testURLURLStringURLStreamHandler()
759 assertTrue("A) returns a wrong file: " + u1.getFile(), u1.getFile() in testURLURLStringURLStreamHandler()
765 u1.getFile()); in testURLURLStringURLStreamHandler()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFileAlreadyExistsExceptionTest.java29 assertEquals("file", exception.getFile()); in test_constructor$String()
39 assertEquals("file", exception.getFile()); in test_constructor$String$String$String()
85 assertEquals("file", exception.getFile()); in test_serialization()
DNotLinkExceptionTest.java29 assertEquals("file", exception.getFile()); in test_constructor$String()
38 assertEquals("file", exception.getFile()); in test_constructor$String$String$String()
81 assertEquals("file", exception.getFile()); in test_serialization()
DNoSuchFileExceptionTest.java29 assertEquals("file", exception.getFile()); in test_constructor$String()
38 assertEquals("file", exception.getFile()); in test_constructor$String$String$String()
83 assertEquals("file", exception.getFile()); in test_serialization()
DAccessDeniedExceptionTest.java30 assertEquals("file", exception.getFile()); in test_constructor$String()
39 assertEquals("file", exception.getFile()); in test_constructor$String$String$String()
84 assertEquals("file", exception.getFile()); in test_serialization()
DFileSystemExceptionTest.java29 assertEquals("file", exception.getFile()); in test_constructor$String()
37 assertEquals("file", exception.getFile()); in test_constructor$String$String$String()
82 assertEquals("file", exception.getFile()); in test_serialization()
DFileSystemLoopExceptionTest.java30 assertEquals("file", exception.getFile()); in test_constructor$String()
73 assertEquals("file", exception.getFile()); in test_serialization()
DNotDirectoryExceptionTest.java29 assertEquals("file", exception.getFile()); in test_constructor$String()
75 assertEquals("file", exception.getFile()); in test_serialization()
DDirectoryNotEmptyExceptionTest.java30 assertEquals("file", exception.getFile()); in test_constructor$String()
76 assertEquals("file", exception.getFile()); in test_serialization()
DAtomicMoveNotSupportedExceptionTest.java31 assertEquals("source", exception.getFile()); in test_constructor$String$String$String()
78 assertEquals("source", exception.getFile()); in test_serialization()
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DHandler.java65 String file1 = u1.getFile(); in sameFile()
66 String file2 = u2.getFile(); in sameFile()
103 String file = u.getFile(); in hashCode()
137 file = url.getFile(); in parseURL()
185 String ctxFile = url.getFile(); in parseContextSpec()
DURLJarFile.java94 super(ParseUtil.decode(url.getFile())); in URLJarFile()
/libcore/ojluni/src/main/java/java/net/
DURLStreamHandler.java417 u.getFile(), in hashCode()
441 if (!(u1.getFile() == u2.getFile() || in sameFile()
442 (u1.getFile() != null && u1.getFile().equals(u2.getFile())))) in sameFile()
534 String fileAndQuery = u.getFile(); in toExternalForm()
DJarURLConnection.java165 String spec = url.getFile(); in parseSpecs()
DURL.java835 public String getFile() { in getFile() method in URL
1413 String file = tempState.getFile(); in setDeserializedFields()
1588 String getFile () {
/libcore/ojluni/src/main/java/sun/net/www/
DURLConnection.java156 if (url.getFile().endsWith("/")) in getContentType()
159 ct = guessContentTypeFromName(url.getFile()); in getContentType()
225 return url.getFile().indexOf('?') < 0 /* && url.postData == null in canCache()
/libcore/ojluni/src/main/java/sun/misc/
DFileURLMapper.java63 path = url.getFile(); in getPath()
DURLClassPath.java576 String file = url.getFile();
841 String fileName = url.getFile();
1260 String path = url.getFile().replace('/', File.separatorChar);
1282 if (url.getFile().startsWith(normalizedBase.getFile()) == false) {
/libcore/ojluni/src/main/java/sun/net/util/
DURLUtil.java72 String file = url.getFile(); in urlNoFragString()
/libcore/ojluni/src/main/java/java/nio/file/
DFileSystemException.java83 public String getFile() { in getFile() method in FileSystemException
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
DHandler.java91 ru = new URL("ftp", host, u.getFile() + in openConnection()
/libcore/ojluni/src/main/java/sun/net/ftp/
DFtpClient.java368 …public abstract FtpClient getFile(String name, OutputStream local) throws FtpProtocolException, IO… in getFile() method in FtpClient
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassTest.java572 absoluteURL.getFile().replaceAll("^.*!/", "")); in test_getResource_withSharpChar()
598 absoluteURL.getFile().replaceAll("^.*!/", "")); in test_getResource_withQueryChar()

12