Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for WriterUtil (0.03 sec)

  1. src/main/java/org/codelibs/core/io/WriterUtil.java

    import org.codelibs.core.exception.IORuntimeException;
    
    /**
     * Utility class for {@link Writer} operations.
     *
     * @author koichik
     */
    public abstract class WriterUtil {
    
        /**
         * Do not instantiate.
         */
        protected WriterUtil() {
        }
    
        /**
         * Creates a {@link Writer} to output to a stream with the specified encoding.
         *
         * @param os the stream (must not be {@literal null})
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/CopyUtil.java

            assertArgumentNotNull("in", in);
            assertArgumentNotNull("out", out);
            assertArgumentNotEmpty("encoding", encoding);
    
            final Writer os = WriterUtil.create(wrap(out), encoding);
            return copyInternal(wrap(in), os);
        }
    
        // ////////////////////////////////////////////////////////////////
        // from Reader to Writer
        //
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/io/PropertiesUtilTest.java

            final Properties outProperties = new Properties();
            outProperties.setProperty("a", "A");
            final File file = tempFolder.newFile("hoge.properties");
            final Writer writer = WriterUtil.create(file);
            PropertiesUtil.store(outProperties, writer, "comments");
            CloseableUtil.close(writer);
            final Properties properties = new Properties();
            PropertiesUtil.load(properties, file);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/PropertiesUtil.java

            assertArgumentNotNull("props", props);
            assertArgumentNotNull("file", file);
            assertArgumentNotEmpty("encoding", encoding);
    
            final Writer writer = WriterUtil.create(file, encoding);
            try {
                props.store(writer, comments);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            } finally {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top