Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,668 for file (0.13 sec)

  1. guava-tests/test/com/google/common/io/FilesFileTraverserTest.java

        File dir2 = newFile("dir-1/dir-2");
    
        assertThat(Files.fileTraverser().breadthFirst(rootDir))
            .containsExactly(rootDir, fileA, fileB, dir1, dir2);
      }
    
      @CanIgnoreReturnValue
      private File newDir(String name) {
        File file = new File(rootDir, name);
        file.mkdir();
        return file;
      }
    
      @CanIgnoreReturnValue
      private File newFile(String name) throws IOException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Apr 21 20:17:27 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  2. maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

        }
    
        public File createFile(File dir, String filename, String contents, String encoding) throws IOException {
            File file = new File(dir, filename);
    
            file.getParentFile().mkdirs();
    
            FileUtils.fileWrite(file.getPath(), encoding, contents);
    
            markForDeletion(file);
    
            return file;
        }
    
        public String getFileContents(File file, String encoding) throws IOException {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/FileUtil.java

            }
        }
    
        /**
         * この抽象パス名を<code>file:</code> URLに変換します。
         *
         * @param file
         *            ファイル。{@literal null}であってはいけません
         * @return ファイルURLを表すURLオブジェクト
         */
        public static URL toURL(final File file) {
            assertArgumentNotNull("file", file);
    
            try {
                return file.toURI().toURL();
            } catch (final IOException e) {
                throw new IORuntimeException(e);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/MoreFilesFileTraverserTest.java

        Path file = rootDir.resolve("file-that-doesnt-exist");
    
        assertThat(MoreFiles.fileTraverser().breadthFirst(file)).containsExactly(file);
      }
    
      public void testFileTraverser_file() throws Exception {
        Path file = newFile("some-file");
    
        assertThat(MoreFiles.fileTraverser().breadthFirst(file)).containsExactly(file);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 09 19:30:52 GMT 2018
    - 3.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

     * the smb URL syntax.
     *
     * @param file An <code>SmbFile</code> specifying the file to read from
     */
    
        public SmbFileInputStream( SmbFile file ) throws SmbException, MalformedURLException, UnknownHostException {
            this( file, SmbFile.O_RDONLY );
        }
    
        SmbFileInputStream( SmbFile file, int openFlags ) throws SmbException, MalformedURLException, UnknownHostException {
            this.file = file;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/FileBackedOutputStream.java

     * user or, in the case of Android, the current app. If that is not possible (as is the case under
     * the very old Android Ice Cream Sandwich release), then this stream throws an exception instead of
     * creating a file that would be more accessible. (This behavior is new in Guava 32.0.0. Previous
     * versions would create a file that is more accessible, as discussed in <a
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/curl/io/ContentCache.java

        private final File file;
    
        public ContentCache(final byte[] data) {
            this.data = data;
            this.file = null;
        }
    
        public ContentCache(final File file) {
            this.data = null;
            this.file = file;
        }
    
        @Override
        public void close() throws IOException {
            if (file != null) {
                Files.delete(file.toPath());
            }
        }
    
    Java
    - Registered: Thu May 09 15:34:10 GMT 2024
    - Last Modified: Mon Nov 14 21:05:19 GMT 2022
    - 1.6K bytes
    - Viewed (1)
  8. maven-core/src/test/java/org/apache/maven/configuration/DefaultBeanConfiguratorPathTest.java

    /*
     * Licensed to the Apache Software Foundation (ASF) under one
     * or more contributor license agreements.  See the NOTICE file
     * distributed with this work for additional information
     * regarding copyright ownership.  The ASF licenses this file
     * to you under the Apache License, Version 2.0 (the
     * "License"); you may not use this file except in compliance
     * with the License.  You may obtain a copy of the License at
     *
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/project/DuplicateProjectException.java

         */
        @Deprecated
        public DuplicateProjectException(String message) {
            this(null, null, null, message);
        }
    
        /**
         * @deprecated use {@link #DuplicateProjectException(String, File, File, String)}
         */
        @Deprecated
        public DuplicateProjectException(String message, Exception e) {
            super(message, e);
            this.projectId = null;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  10. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/ExtractGradleApiInfoTask.java

    import org.gradle.api.tasks.OutputFile;
    import org.gradle.api.tasks.TaskAction;
    
    import java.io.File;
    import java.io.IOException;
    import java.io.UncheckedIOException;
    import java.net.URI;
    import java.nio.file.FileSystem;
    import java.nio.file.FileSystems;
    import java.nio.file.Files;
    import java.nio.file.Path;
    import java.nio.file.StandardCopyOption;
    import java.util.Collections;
    
    /**
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Nov 22 22:15:41 GMT 2023
    - 3.4K bytes
    - Viewed (0)
Back to top