Searched defs:file (Results 101 - 125 of 182) sorted by relevance

12345678

/libcore/ojluni/src/main/java/java/nio/file/attribute/
H A DPosixFilePermission.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
26 package java.nio.file.attribute;
H A DUserDefinedFileAttributeView.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
26 package java.nio.file.attribute;
33 * A file attribute view that provides a view of a file's user-defined
35 * file attributes are used to store metadata with a file that is not meaningful
36 * to the file system. It is primarily intended for file syste
[all...]
H A DPosixFilePermissions.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
26 package java.nio.file.attribute;
28 import static java.nio.file.attribute.PosixFilePermission.*;
143 * Creates a {@link FileAttribute}, encapsulating a copy of the given file
144 * permissions, suitable for passing to the {@link java.nio.file.Files#createFile
145 * createFile} or {@link java.nio.file.Files#createDirectory createDirectory}
151 * @return an attribute encapsulating the given file permissions with
H A DAclEntry.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
26 package java.nio.file.attribute;
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DAbstractFileTypeDetector.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
28 import java.nio.file.Path;
29 import java.nio.file.spi.FileTypeDetector;
45 * Invokes the appropriate probe method to guess a file's content type,
49 public final String probeContentType(Path file) throws IOException { argument
50 if (file == null)
51 throw new NullPointerException("'file' is null");
52 String result = implProbeContentType(file);
59 implProbeContentType(Path file) argument
[all...]
H A DAbstractUserDefinedFileAttributeView.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
29 import java.nio.file.attribute.UserDefinedFileAttributeView;
42 protected void checkAccess(String file, argument
50 sm.checkRead(file);
52 sm.checkWrite(file);
H A DLinuxFileStore.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
28 import java.nio.file.attribute.*;
43 LinuxFileStore(UnixPath file) throws IOException { argument
44 super(file);
52 * Finds, and returns, the mount entry for the file system where the file
57 LinuxFileSystem fs = (LinuxFileSystem)file().getFileSystem();
62 byte[] rp = UnixNativeDispatcher.realpath(file());
[all...]
H A DLinuxFileSystemProvider.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
28 import java.nio.file.*;
29 import java.nio.file.attribute.*;
30 import java.nio.file.spi.FileTypeDetector;
49 // Android-changed: Complete information about file systems is neither available to regular
63 // "user" file attribute views which are not supported.
83 // "user" file attribute views which are not supported.
99 public <A extends BasicFileAttributes> A readAttributes(Path file, argument
[all...]
H A DUnixException.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
28 import java.nio.file.*;
77 private IOException translateToIOException(String file, String other) { argument
84 return new AccessDeniedException(file, other, null);
86 return new NoSuchFileException(file, other, null);
88 return new FileAlreadyExistsException(file, other, null);
91 return new FileSystemException(file, other, errorString());
94 void rethrowAsIOException(String file) throw argument
99 rethrowAsIOException(UnixPath file, UnixPath other) argument
106 rethrowAsIOException(UnixPath file) argument
110 asIOException(UnixPath file) argument
[all...]
H A DAbstractFileSystemProvider.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
28 import java.nio.file.*;
29 import java.nio.file.spi.FileSystemProvider;
62 abstract DynamicFileAttributeView getFileAttributeView(Path file, argument
67 public final void setAttribute(Path file, argument
76 DynamicFileAttributeView view = getFileAttributeView(file, s[0], options);
83 public final Map<String,Object> readAttributes(Path file, String attributes, LinkOption... options) argument
89 DynamicFileAttributeView view = getFileAttributeView(file,
99 implDelete(Path file, boolean failIfNotExists) argument
102 delete(Path file) argument
107 deleteIfExists(Path file) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
H A DFileURLConnection.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
27 * Open an file input stream given a URL.
32 package sun.net.www.protocol.file;
58 File file; field in class:FileURLConnection
67 protected FileURLConnection(URL u, File file) { argument
69 this.file = file;
81 filename = file
[all...]
/libcore/dalvik/src/main/java/dalvik/system/profiler/
H A DHprofBinaryToAscii.java5 * you may not use this file except in compliance with the License.
45 * Reads single file from arguments and attempts to read it as
46 * either a binary hprof file or a version with a text header.
51 usage("binary hprof file argument expected");
54 File file = new File(args[0]);
55 if (!file.exists()) {
56 usage("file " + file + " does not exist");
60 if (startsWithMagic(file)) {
63 hprofData = readHprof(file);
88 startsWithMagic(File file) argument
103 readHprof(File file) argument
117 readSnapshot(File file) argument
[all...]
/libcore/luni/src/test/java/libcore/java/io/
H A DRandomAccessFileTest.java5 * you may not use this file except in compliance with the License.
34 private File file; field in class:RandomAccessFileTest
37 file = File.createTempFile("RandomAccessFileTest", "tmp");
41 file.delete();
45 try (RandomAccessFile raf = new RandomAccessFile(file, "rw")) {
55 try (RandomAccessFile raf = new RandomAccessFile(file, "rw")) {
65 try (RandomAccessFile raf = new RandomAccessFile(file, "rw")) {
67 assertEquals(0, file.length());
70 assertEquals(moreThanFourGig, file.length());
76 File file
136 createRandomAccessFile(File file) argument
[all...]
H A DFileInputStreamTest.java5 * you may not use this file except in compliance with the License.
219 File file = new File("/dev/zero");
220 try (FileInputStream input = new FileInputStream(file)) {
224 try (FileInputStream input = new FileInputStream(file)) {
228 assertEquals("FIONREAD should have returned ENOTTY for the file. If it doesn't return"
250 // Required space is 3.1 GB: 3GB for file plus 100M headroom.
268 // Proactively cleanup - it's a pretty large file.
274 * Allocates a file to the specified size using fallocate, falling back to ftruncate.
276 private static void allocateEmptyFile(File file, long fileSize) argument
279 try (FileOutputStream fos = new FileOutputStream(file)) {
[all...]
/libcore/luni/src/test/java/libcore/java/nio/file/
H A DLinuxFileSystemTest.java5 * you may not use this file except in compliance with the License.
17 package libcore.java.nio.file;
25 import java.nio.file.FileStore;
26 import java.nio.file.FileSystem;
27 import java.nio.file.FileSystems;
28 import java.nio.file.Path;
29 import java.nio.file.PathMatcher;
30 import java.nio.file.Paths;
43 import static libcore.java.nio.file.LinuxFileSystemTestData.getPathExceptionTestData;
44 import static libcore.java.nio.file
[all...]
H A DFileSystemsTest.java5 * you may not use this file except in compliance with the License.
17 package libcore.java.nio.file;
29 import java.nio.file.FileSystem;
30 import java.nio.file.FileSystemAlreadyExistsException;
31 import java.nio.file.FileSystems;
32 import java.nio.file.Path;
33 import java.nio.file.Paths;
34 import java.nio.file.ProviderNotFoundException;
129 // The file system configured in filesystemstest.jar is for scheme "stubScheme://
H A DWatchServiceTest.java5 * you may not use this file except in compliance with the License.
16 package libcore.java.nio.file;
27 import java.nio.file.FileStore;
28 import java.nio.file.FileSystems;
29 import java.nio.file.Files;
30 import java.nio.file.Path;
31 import java.nio.file.Paths;
32 import java.nio.file.WatchEvent;
33 import java.nio.file.WatchKey;
34 import java.nio.file
[all...]
/libcore/ojluni/src/main/java/java/nio/file/
H A DFileSystem.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
26 package java.nio.file;
28 import java.nio.file.attribute.*;
29 import java.nio.file.spi.FileSystemProvider;
35 * Provides an interface to a file system and is the factory for objects to
36 * access files and other objects in the file system.
38 * <p> The default file system, obtained by invoking the {@link FileSystems#getDefault
39 * FileSystems.getDefault} method, provides access to the file syste
[all...]
H A DSecureDirectoryStream.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
25 package java.nio.file;
27 import java.nio.file.attribute.*;
36 * traverse file trees or otherwise operate on directories in a race-free manner.
37 * Race conditions can arise when a sequence of file operations cannot be
38 * carried out in isolation. Each of the file operations defined by this
39 * interface specify a relative path. All access to the file is relative
50 * <p> In the case of the default {@link java.nio.file
[all...]
H A DTempFileHelper.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
26 package java.nio.file;
33 import java.nio.file.attribute.FileAttribute;
34 import java.nio.file.attribute.PosixFilePermission;
35 import java.nio.file.attribute.PosixFilePermissions;
36 import static java.nio.file.attribute.PosixFilePermission.*;
55 // file name generation, same as java.io.File for now
61 // the generated name should be a simple file nam
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DOutputStreamTesterTest.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
78 private File file; field in class:OutputStreamTesterTest.FileOutputStreamSinkTester
85 file = File.createTempFile("FileOutputStreamSinkTester", "tmp");
86 file.deleteOnExit();
87 return new FileOutputStream(file, append);
91 return Streams.streamToBytes(new FileInputStream(file));
H A DWriterTesterTest.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 private File file; field in class:WriterTesterTest.FileWriterCharSinkTester
81 file = File.createTempFile("FileOutputStreamSinkTester", "tmp");
82 file.deleteOnExit();
83 return new FileWriter(file, append);
88 return Streams.streamToString(new FileReader(file)).toCharArray();
/libcore/luni/src/main/java/libcore/io/
H A DNioBufferIterator.java5 * you may not use this file except in compliance with the License.
27 private final MemoryMappedFile file; field in class:NioBufferIterator
34 NioBufferIterator(MemoryMappedFile file, long address, int length, boolean swap) { argument
35 file.checkNotClosed();
37 this.file = file;
68 file.checkNotClosed();
75 file.checkNotClosed();
83 file.checkNotClosed();
92 file
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DFileOutputStream.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
38 * A file output stream is an output stream for writing data to a
40 * a file is available or may be created depends upon the underlying
41 * platform. Some platforms, in particular, allow a file to be opened
43 * file-writing object) at a time. In such situations the constructors in
44 * this class will fail if the file involved is already open.
54 * @see java.nio.file.Files#newOutputStream
61 * The system dependent file descripto
170 FileOutputStream(File file) argument
203 FileOutputStream(File file, boolean append) argument
[all...]
/libcore/ojluni/src/main/java/java/nio/channels/
H A DAsynchronousFileChannel.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
28 import java.nio.file.*;
29 import java.nio.file.attribute.FileAttribute;
30 import java.nio.file.spi.*;
40 * An asynchronous channel for reading, writing, and manipulating a file.
42 * <p> An asynchronous file channel is created when a file is opened by invoking
43 * one of the {@link #open open} methods defined by this class. The file contain
241 open(Path file, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs) argument
296 open(Path file, OpenOption... options) argument
[all...]

Completed in 821 milliseconds

12345678