Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 89 for getResource (0.48 sec)

  1. src/test/java/org/codelibs/core/io/PropertiesUtilTest.java

    import org.junit.Test;
    import org.junit.rules.ExpectedException;
    import org.junit.rules.TemporaryFolder;
    
    /**
     * @author wyukawa
     *
     */
    public class PropertiesUtilTest {
    
        URL url = ResourceUtil.getResource(getClass().getName().replace('.', '/') + ".txt");
    
        File inputFile = URLUtil.toFile(url);
    
        /**
         *
         */
        @Rule
        public TemporaryFolder tempFolder = new TemporaryFolder();
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  2. maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

                throws FileNotFoundException, URISyntaxException {
            ClassLoader cloader = Thread.currentThread().getContextClassLoader();
    
            URL resourceUrl = cloader.getResource(resource);
    
            if (resourceUrl == null) {
                throw new FileNotFoundException("Unable to find: " + resource);
            }
    
            return new File(resourceUrl.toURI());
        }
    
    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. src/test/java/org/codelibs/core/io/CopyUtilTest.java

        Reader reader = new StringReader(srcString);
    
        StringWriter writer = new StringWriter();
    
        StringBuilder builder = new StringBuilder();
    
        URL url = ResourceUtil.getResource(getClass().getName().replace('.', '/') + ".txt");
    
        File inputFile = URLUtil.toFile(url);
    
        File outputFile = new File(inputFile.getParentFile(), ".out");
    
        /**
         * @throws Exception
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  4. maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java

            this(wagon, TRANSFER_ERROR, requestType, artifact);
    
            this.exception = exception;
        }
    
        public ArtifactTransferResource getResource() {
            return artifact;
        }
    
        /**
         * @return Returns the exception.
         */
        public Exception getException() {
            return exception;
        }
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  5. maven-compat/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java

            request.setProcessPlugins(false);
            request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL);
    
            ModelSource modelSource = new UrlModelSource(getClass().getResource("standalone.xml"));
    
            MavenProject project = projectBuilder.build(modelSource, request).getProject();
            project.setExecutionRoot(true);
            return project;
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Jun 15 14:24:56 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/ClassPath.java

        /**
         * Returns the url identifying the resource.
         *
         * <p>See {@link ClassLoader#getResource}
         *
         * @throws NoSuchElementException if the resource cannot be loaded through the class loader,
         *     despite physically existing in the class path.
         */
        public final URL url() {
          URL url = loader.getResource(resourceName);
          if (url == null) {
            throw new NoSuchElementException(resourceName);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 24.9K bytes
    - Viewed (1)
  7. src/main/java/org/codelibs/core/io/PropertiesUtil.java

         */
        public static void load(final Properties props, final String path) {
            assertArgumentNotNull("props", props);
            assertArgumentNotEmpty("path", path);
    
            load(props, ResourceUtil.getResource(path));
        }
    
        /**
         * {@link Properties#store(OutputStream, String)}の例外処理をラップします。
         *
         * <p>
         * 出力ストリームはクローズされません。
         * </p>
         *
         * @param props
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/FinalizableReferenceQueue.java

        URL getBaseUrl() throws IOException {
          // Find URL pointing to Finalizer.class file.
          String finalizerPath = FINALIZER_CLASS_NAME.replace('.', '/') + ".class";
          URL finalizerUrl = getClass().getClassLoader().getResource(finalizerPath);
          if (finalizerUrl == null) {
            throw new FileNotFoundException(finalizerPath);
          }
    
          // Find URL pointing to base of class path.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

        URL getBaseUrl() throws IOException {
          // Find URL pointing to Finalizer.class file.
          String finalizerPath = FINALIZER_CLASS_NAME.replace('.', '/') + ".class";
          URL finalizerUrl = getClass().getClassLoader().getResource(finalizerPath);
          if (finalizerUrl == null) {
            throw new FileNotFoundException(finalizerPath);
          }
    
          // Find URL pointing to base of class path.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

          JarOutputStream jarOut = closer.register(new JarOutputStream(fileOut, manifest));
          for (String entry : entries) {
            jarOut.putNextEntry(new ZipEntry(entry));
            Resources.copy(ClassPathTest.class.getResource(entry), jarOut);
            jarOut.closeEntry();
          }
        } catch (Throwable e) {
          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 26 14:02:27 GMT 2024
    - 24.9K bytes
    - Viewed (0)
Back to top