Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for FileNotFoundException (0.31 sec)

  1. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

        String path = request.getPath();
        try {
          if (!path.startsWith("/") || path.contains("..")) throw new FileNotFoundException();
    
          File file = new File(root + path);
          return file.isDirectory()
              ? directoryToResponse(path, file)
              : fileToResponse(path, file);
        } catch (FileNotFoundException e) {
          return new MockResponse()
              .setStatus("HTTP/1.1 404")
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Jan 02 02:50:44 GMT 2019
    - 4.7K bytes
    - Viewed (0)
  2. maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

        protected File getLocalRepositoryPath() throws FileNotFoundException, URISyntaxException {
            File markerFile = getFileForClasspathResource("local-repo/marker.txt");
    
            return markerFile.getAbsoluteFile().getParentFile();
        }
    
        protected static File getFileForClasspathResource(String resource)
                throws FileNotFoundException, URISyntaxException {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  3. maven-compat/src/test/java/org/apache/maven/project/ClasspathArtifactResolver.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.project;
    
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.io.FileNotFoundException;
    import java.net.URISyntaxException;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.List;
    
    import org.eclipse.aether.RepositorySystemSession;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  4. maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

        protected File getLocalRepositoryPath() throws FileNotFoundException, URISyntaxException {
            File markerFile = getFileForClasspathResource("local-repo/marker.txt");
    
            return markerFile.getAbsoluteFile().getParentFile();
        }
    
        protected static File getFileForClasspathResource(String resource)
                throws FileNotFoundException, URISyntaxException {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/internal/aether/LoggingRepositoryListener.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.internal.aether;
    
    import java.io.FileNotFoundException;
    
    import org.eclipse.aether.AbstractRepositoryListener;
    import org.eclipse.aether.RepositoryEvent;
    import org.eclipse.aether.transfer.MetadataNotFoundException;
    import org.slf4j.Logger;
    
    /**
     */
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Sep 22 09:07:17 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/Files.java

    import com.google.j2objc.annotations.J2ObjCIncompatible;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.io.OutputStreamWriter;
    import java.io.RandomAccessFile;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/netbios/Lmhosts.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.smb1.netbios;
    
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.InputStreamReader;
    import java.io.Reader;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.util.Hashtable;
    
    import jcifs.smb1.Config;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 5.8K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/upgrades/UpgradedProperties.java

    import japicmp.model.JApiMethod;
    import me.champeau.gradle.japicmp.report.Violation;
    import me.champeau.gradle.japicmp.report.ViolationCheckContext;
    
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.UncheckedIOException;
    import java.util.Collections;
    import java.util.List;
    import java.util.Map;
    import java.util.Optional;
    import java.util.regex.Pattern;
    
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Apr 23 08:40:36 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  9. maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

    import javax.inject.Inject;
    import javax.inject.Named;
    import javax.inject.Singleton;
    import javax.xml.stream.XMLStreamException;
    
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.nio.file.Files;
    import java.util.Date;
    import java.util.HashMap;
    import java.util.List;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

    import okhttp3.internal.isCivilized
    import okhttp3.internal.okHttpName
    import okhttp3.internal.platform.Platform
    import okhttp3.internal.platform.Platform.Companion.WARN
    import okio.BufferedSink
    import okio.FileNotFoundException
    import okio.FileSystem
    import okio.ForwardingFileSystem
    import okio.ForwardingSource
    import okio.Path
    import okio.Sink
    import okio.Source
    import okio.blackholeSink
    import okio.buffer
    
    /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
Back to top