Home | History | Annotate | Download | only in io

Lines Matching full:files

43  * Provides utility methods for working with files.
50 public final class Files {
55 private Files() {}
187 // Some special files are length 0 but have content nonetheless.
364 * Returns true if the files contains the same bytes.
374 * Some operating systems may return zero as the length for files
397 * files are to be written into the directory.
460 * Deletes all the files within a directory. Does not delete the
480 File[] files = directory.listFiles();
481 if (files == null) {
482 throw new IOException("Error listing files for " + directory);
484 files) {
521 return CharStreams.readFirstLine(Files.newReaderSupplier(file, charset));
536 return CharStreams.readLines(Files.newReaderSupplier(file, charset));
551 return CharStreams.readLines(Files.newReaderSupplier(file, charset),
605 * <p>Files are mapped from offset 0 to its length.
607 * <p>This only works for files <= {@link Integer#MAX_VALUE} bytes.
626 * <p>Files are mapped from offset 0 to its length.
628 * <p>This only works for files <= {@link Integer#MAX_VALUE} bytes.
652 * <p>Files are mapped from offset 0 to {@code size}.
656 * useful for creating memory mapped files which do not yet exist.
658 * <p>This only works for files <= {@link Integer#MAX_VALUE} bytes.