Searched defs:file (Results 26 - 50 of 54) sorted by relevance

123

/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DDOMTestCase.java64 // build a URL for a test file in the JAR
103 String host, String file, String name, String query,
164 if (file != null || name != null) {
169 if (file != null) {
170 assertEquals(assertID, file, actualFile);
185 // Jar URL's will have any actual path like file:/c:/somedrive...
188 || actualPath.startsWith("file:/"));
102 assertURIEquals(String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual) argument
/libcore/ojluni/src/main/java/java/lang/
H A DProcessBuilder.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
52 * external program file to be invoked and its arguments, if any.
381 * <li>a redirection to read from a file, created by an invocation of
383 * <li>a redirection to write to a file, created by an invocation of
385 * <li>a redirection to append to a file, created by an invocation of
444 * Redirect.PIPE.file() == null &&
459 * Redirect.INHERIT.file() == null &&
469 * with this redirect, or {@code null} if there is no such file
474 public File file() { return null; } method in class:ProcessBuilder.Redirect
496 from(final File file) argument
522 to(final File file) argument
552 appendTo(final File file) argument
728 redirectInput(File file) argument
747 redirectOutput(File file) argument
766 redirectError(File file) argument
[all...]
H A DSecurityManager.java9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
139 public void checkRead(String file) { } argument
141 public void checkRead(String file, Object context) { } argument
145 public void checkWrite(String file) { } argument
147 public void checkDelete(String file) { } argument
/libcore/ojluni/src/main/java/java/net/
H A DURLStreamHandler.java9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
262 // Parse the file path if any
368 * fragment in the same file.
374 // sameFile compares the protocol, file, port & host components of
399 * Compare two urls to see whether they refer to the same file,
406 * @return true if u1 and u2 refer to the same file
557 * @param file the file
565 setURL(URL u, String protocol, String host, int port, String file, String ref) argument
[all...]
H A DURL.java9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
41 * Wide Web. A resource can be something as simple as a file or a
58 * a file, but it could be generated on the fly. This component of
110 * inherited from the fully specified URL. The file component must be
173 * The specified file name on that host. <code>file</code> is
177 private String file; field in class:URL
228 * number, and <code>file</cod
303 URL(String protocol, String host, int port, String file) argument
327 URL(String protocol, String host, String file) argument
371 URL(String protocol, String host, int port, String file, URLStreamHandler handler) argument
667 set(String protocol, String host, int port, String file, String ref) argument
1318 Parts(String file, String host) argument
[all...]
/libcore/support/src/test/java/tests/support/resource/
H A DSupport_Resources.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
38 // If we have the resources packaged up in our jar file, get them that way.
73 String urlSpec = "file:/" + resPath + "/" + fileName;
97 public static File copyFile(File root, String folder, String file) { argument
109 File dest = new File(f.toString() + "/" + file);
111 String resourceName = (folder == null ? file : folder + "/" + file);
117 "Unable to copy file fro
[all...]
/libcore/tzdata/update/src/test/libcore/tzdata/update/
H A DFileUtilsTest.java5 * you may not use this file except in compliance with the License.
118 File actualSubFile = FileUtils.createSubFile(dir1, "file");
119 assertEquals(new File(dir1, "file"), actualSubFile);
121 File existingSubFile = createRegularFile(dir1, "file");
122 actualSubFile = FileUtils.createSubFile(dir1, "file");
129 assertCreateSubFileThrows(dir1, "../file");
130 assertCreateSubFileThrows(dir1, "../../file");
131 assertCreateSubFileThrows(dir1, "../otherdir/file");
244 File file = createTextFile("One\nTwo\nThree\n");
246 List<String> lines = FileUtils.readLines(file);
262 createSymlink(File file, File symlinkDir, String symlinkName) argument
[all...]
/libcore/dalvik/src/main/java/dalvik/system/
H A DDexFile.java5 * you may not use this file except in compliance with the License.
33 * Note we don't directly open and read the DEX file here. They're memory-mapped
47 * Opens a DEX file from a given File object. This will usually be a ZIP/JAR
48 * file with a "classes.dex" inside.
50 * The VM will generate the name of the corresponding file in
53 * a file in /data/dalvik-cache, as the named file is expected to be
56 * @param file
57 * the File object referencing the actual DEX file
60 * if an I/O error occurs, such as the file no
63 DexFile(File file) argument
76 DexFile(File file, ClassLoader loader, DexPathList.Element[] elements) argument
[all...]
H A DDexPathList.java5 * you may not use this file except in compliance with the License.
42 * a {@code .jar} or {@code .zip} file containing an optional
43 * top-level {@code classes.dex} file as well as arbitrary resources,
44 * or a plain {@code .dex} file (with no possibility of associated
226 * Splits the given path strings into file elements using the path
229 * file or a directory (as specified). Either string may be empty
294 for (File file : files) {
298 String path = file.getPath();
299 String name = file.getName();
305 } else if (file
355 loadDexFile(File file, File optimizedDirectory, ClassLoader loader, Element[] elements) argument
[all...]
/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMTestCase.java647 * Expected scheme, for example, "file". If null, scheme is
655 * @param file
656 * Expected file, for example, "staff.xml". If null, file is
675 String file,
740 if (file != null || name != null) {
745 if (file != null) {
746 assertEquals(assertID, file, actualFile);
761 // Jar URL's will have any actual path like file:/c:/somedrive...
765 actualPath.startsWith("/") || actualPath.startsWith("file
670 assertURIEquals( String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual) argument
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DOldURLStreamHandlerTest.java2 * contributor license agreements. See the NOTICE file distributed with
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
216 String file,
218 super.setURL(u, protocol, host, port, file, ref);
212 setURL(URL u, String protocol, String host, int port, String file, String ref) argument
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DFileIOInterruptTest.java5 * you may not use this file except in compliance with the License.
36 * A test for file interrupt behavior. Because forcing a real file to block on read or write is
47 * <li>FIFOs are not supported on some file systems. e.g. VFAT, so the test has to be particular
63 // This test relies on a FIFO file. The file system must support FIFOs, so we check the path.
67 // Vogar execution on device runs in /sdcard. Unfortunately the file system used does not
83 // Create the fifo. This will throw an exception if the file system does not support it.
414 // file has been closed. Android is actually doing a wrong thing by always throwing the
638 private final File file; field in class:FileIOInterruptTest.FifoWriter
641 FifoWriter(File file) argument
665 private final File file; field in class:FileIOInterruptTest.FifoReader
668 FifoReader(File file) argument
[all...]
H A DOldFileChannelTest.java2 * contributor license agreements. See the NOTICE file distributed with
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
170 * Initializes test file.
172 * @param file
176 private void writeDataToFile(File file) throws FileNotFoundException, argument
178 FileOutputStream fos = new FileOutputStream(file);
187 * Initializes large test file.
189 * @param file the file t
194 writeLargeDataToFile(File file, int size) argument
[all...]
/libcore/luni/src/test/java/libcore/xml/
H A DXsltXPathConformanceTestSuite.java5 * you may not use this file except in compliance with the License.
72 * suite zip file from the OASIS project site.</li>
77 * suite's <code>catalog.xml</code> file as an argument.
84 * "Couldn't open file" errors due to a mismatch in file name casing.
130 System.out.println(" catalog-xml: an XML file describing an OASIS test suite");
190 * <file-path>attribset</file-path>
196 * <input-file role="principal-data">attribset01.xml</input-file>
446 fileToResultNode(File file) argument
580 fileToString(File file) argument
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DPrintStream.java9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
181 * specified file name. This convenience constructor creates
188 * The name of the file to use as the destination of this print
189 * stream. If the file exists, then it will be truncated to
190 * zero size; otherwise, a new file will be created. The output
191 * will be written to the file and is buffered.
194 * If the given file object does not denote an existing, writable
195 * regular file an
277 PrintStream(File file) argument
314 PrintStream(File file, String csn) argument
[all...]
H A DPrintWriter.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
158 * specified file name. This convenience constructor creates the necessary
165 * The name of the file to use as the destination of this writer.
166 * If the file exists then it will be truncated to zero size;
167 * otherwise, a new file will be created. The output will be
168 * written to the file and is buffered.
172 * regular file and a new regular file o
189 PrintWriter(Charset charset, File file) argument
262 PrintWriter(File file) argument
300 PrintWriter(File file, String csn) argument
[all...]
H A DRandomAccessFile.java9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
41 * random access file. A random access file behaves like a large
42 * array of bytes stored in the file system. There is a kind of cursor,
43 * or index into the implied array, called the <em>file pointer</em>;
44 * input operations read bytes starting at the file pointer and advance
45 * the file pointer past the bytes read. If the random access file i
207 RandomAccessFile(File file, String mode) argument
[all...]
/libcore/ojluni/src/main/java/java/util/jar/
H A DJarFile.java9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
46 * The <code>JarFile</code> class is used to read the contents of a jar file
47 * from any file that can be opened with <code>java.io.RandomAccessFile</code>.
51 * jar file and its entries.
84 * The JAR manifest file name.
90 * file <code>name</code>. The <code>JarFile</code> will be verified if
92 * @param name the name of the jar file to be opened for reading
94 * @throws SecurityException if access to the file i
124 JarFile(File file) argument
139 JarFile(File file, boolean verify) argument
160 JarFile(File file, boolean verify, int mode) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/www/
H A DMimeTable.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
43 /** Keyed by file extension (with the .), returns MimeEntries */
47 // Will be reset if in the platform-specific data file
55 System.getProperty("content.types.temp.file.template",
98 * table from a data file.
171 * Locate a MimeEntry by the file extension that has been associated
172 * with it. Parses general file names, and URLs.
196 * Locate a MimeEntry by the file extensio
410 saveAsProperties(File file) argument
[all...]
H A DParseUtil.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
229 public String canonizeString(String file) { argument
231 int lim = file.length();
234 while ((i = file.indexOf("/../")) >= 0) {
235 if ((lim = file.lastIndexOf('/', i - 1)) >= 0) {
236 file = file.substring(0, lim) + file
261 fileToEncodedURL(File file) argument
[all...]
/libcore/ojluni/src/main/native/
H A DUnixFileSystem_md.c8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
122 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {*/
138 jobject file, jint a)
157 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
168 jobject file,
175 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
215 jobject file)
219 WITH_FIELD_PLATFORM_STRING(env, file, id
137 Java_java_io_UnixFileSystem_checkAccess0(JNIEnv *env, jobject this, jobject file, jint a) argument
167 Java_java_io_UnixFileSystem_setPermission0(JNIEnv *env, jobject this, jobject file, jint access, jboolean enable, jboolean owneronly) argument
214 Java_java_io_UnixFileSystem_getLastModifiedTime0(JNIEnv *env, jobject this, jobject file) argument
230 Java_java_io_UnixFileSystem_getLength0(JNIEnv *env, jobject this, jobject file) argument
275 Java_java_io_UnixFileSystem_delete0(JNIEnv *env, jobject this, jobject file) argument
290 Java_java_io_UnixFileSystem_list0(JNIEnv *env, jobject this, jobject file) argument
361 Java_java_io_UnixFileSystem_createDirectory0(JNIEnv *env, jobject this, jobject file) argument
392 Java_java_io_UnixFileSystem_setLastModifiedTime0(JNIEnv *env, jobject this, jobject file, jlong time) argument
421 Java_java_io_UnixFileSystem_setReadOnly0(JNIEnv *env, jobject this, jobject file) argument
438 Java_java_io_UnixFileSystem_getSpace0(JNIEnv *env, jobject this, jobject file, jint t) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DURLTest.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
73 assertEquals("u returns a wrong file",
77 // test for no file
82 assertTrue("u1 returns a wrong file", u1.getFile().equals(""));
91 assertEquals("u2 returns a wrong file",
96 URL u2a = new URL("file://www.yahoo3.com/dir1/dir2/test.cgi#anchor1");
97 assertEquals("u2a returns a wrong protocol", "file", u2a.getProtocol());
101 assertEquals("u2a returns a wrong file", "/dir
1092 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String file, String query, String ref) argument
[all...]
/libcore/ojluni/src/main/java/java/security/
H A DKeyStore.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
113 * // get user password and file input stream
224 * Constant to lookup in the Security properties file to determine
226 * In the Security properties file, the default keystore type is given as:
744 * properties file, or the string
747 * The Java security properties file is located in the file named
759 * file) t
1543 newInstance(String type, Provider provider, File file, ProtectionParameter protection) argument
1567 private final File file; field in class:KeyStore.Builder.FileBuilder
1576 FileBuilder(String type, Provider provider, File file, ProtectionParameter protection, AccessControlContext context) argument
[all...]
/libcore/ojluni/src/main/java/java/util/zip/
H A DZipFile.java9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
53 * This class is used to read entries from a zip file.
64 private final String name; // zip file name
66 private final boolean locsig; // if zip file starts with LOCSIG (usually true)
72 // that doesn't use unlink before closing the file.
79 * Mode flag to open a zip file for reading.
84 * Mode flag to open a zip file and mark it for deletion. The file wil
146 ZipFile(File file, int mode) argument
160 ZipFile(File file) argument
198 ZipFile(File file, int mode, Charset charset) argument
277 ZipFile(File file, Charset charset) argument
[all...]
/libcore/dex/src/main/java/com/android/dex/
H A DDex.java5 * you may not use this file except in compliance with the License.
48 * The bytes of a dex file in memory for reading and writing. All int offsets
100 * Creates a new dex buffer from the dex file {@code file}.
102 public Dex(File file) throws IOException { argument
103 if (FileUtils.hasArchiveSuffix(file.getName())) {
104 ZipFile zipFile = new ZipFile(file);
110 throw new DexException("Expected " + DexFormat.DEX_IN_JAR_NAME + " in " + file);
112 } else if (file.getName().endsWith(".dex")) {
113 loadFrom(new FileInputStream(file));
[all...]

Completed in 1687 milliseconds

123