Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for berate (0.14 sec)

  1. src/main/java/org/codelibs/core/net/URLUtil.java

        /**
         * 文字列表現から<code>URL</code>オブジェクトを作成します。
         *
         * @param spec
         *            <code>URL</code>として構文解析される文字列。{@literal null}や空文字列であってはいけません
         * @return <code>URL</code>
         */
        public static URL create(final String spec) {
            assertArgumentNotEmpty("spec", spec);
    
            try {
                return new URL(spec);
            } 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
    - 7.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/PropertiesUtil.java

            assertArgumentNotNull("props", props);
            assertArgumentNotNull("file", file);
            assertArgumentNotEmpty("encoding", encoding);
    
            final Reader reader = ReaderUtil.create(file, encoding);
    
            try {
                props.load(reader);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            } finally {
                CloseableUtil.close(reader);
    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)
  3. src/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testPackagePrivateBean() throws Exception {
            final MogeBean moge = MogeBeanFactory.create("moge");
            final BeanDesc beanDesc = new BeanDescImpl(moge.getClass());
            final PropertyDesc propDesc = beanDesc.getPropertyDesc("name");
            assertThat(propDesc, is(notNullValue()));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/FileUtil.java

            assertArgumentNotNull("file", file);
            assertArgumentNotEmpty("encoding", encoding);
    
            final FileInputStream is = InputStreamUtil.create(file);
            try {
                final Reader reader = ReaderUtil.create(new BufferedInputStream(is, DEFAULT_BUF_SIZE), encoding);
                return read(reader, (int) ChannelUtil.size(is.getChannel()));
            } finally {
                CloseableUtil.close(is);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/TraversalUtil.java

            addTraverserFactory("zip", (url, rootPackage,
                    rootDir) -> new JarFileTraverser(JarFileUtil.create(new File(ZipFileUtil.toZipFilePath(url))), rootPackage, rootDir));
            addTraverserFactory("code-source",
                    (url, rootPackage, rootDir) -> new JarFileTraverser(URLUtil.create("jar:file:" + url.getPath()), rootPackage, rootDir));
            addTraverserFactory("vfszip", VfsZipTraverser::new);
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/impl/sub/MogeBeanFactory.java

     */
    package org.codelibs.core.beans.impl.sub;
    
    /**
     * @author koichik
     */
    public class MogeBeanFactory {
    
        /**
         * @param name
         * @return MogeBean
         */
        public static MogeBean create(final String name) {
            return new MogeBeanImpl(name);
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 885 bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/jar/JarInputStreamUtil.java

         * @return {@link JarInputStream}
         * @throws IORuntimeException
         *             {@link IOException}が発生した場合
         * @see JarInputStream#JarInputStream(InputStream)
         */
        public static JarInputStream create(final InputStream is) throws IORuntimeException {
            assertArgumentNotNull("is", is);
    
            try {
                return new JarInputStream(is);
            } catch (final IOException e) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/CopyUtil.java

            assertArgumentNotNull("in", in);
            assertArgumentNotNull("out", out);
    
            final FileInputStream is = InputStreamUtil.create(in);
            try {
                final FileOutputStream os = OutputStreamUtil.create(out);
                try {
                    return copyInternal(is, os);
                } finally {
                    CloseableUtil.close(os);
                }
            } finally {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 52.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/jar/JarFileUtil.java

         *
         * @param file
         *            ファイルパス。{@literal null}であってはいけません
         * @return 指定されたJarファイルを読み取るための<code>JarFile</code>
         */
        public static JarFile create(final String file) {
            assertArgumentNotNull("file", file);
    
            try {
                return new JarFile(file);
            } 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
    - 5.4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/io/PropertiesUtilTest.java

         * .
         */
        @Test
        public void testLoadPropertiesReader() {
            final InputStreamReader inputStreamReader =
                    ReaderUtil.create(ResourceUtil.getResourceAsStream("org/codelibs/core/io/test.properties"), "UTF-8");
            final Properties properties = new Properties();
            PropertiesUtil.load(properties, inputStreamReader);
    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)
Back to top