Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for contents (0.42 sec)

  1. src/main/java/org/codelibs/core/xml/DomUtil.java

         * プラットフォームのデフォルトエンコーディングでXMLの内容を {@link InputStream}として取得します。
         *
         * @param contents
         *            コンテンツ。{@literal null}であってはいけません
         * @return {@link InputStream}
         */
        public static InputStream getContentsAsStream(final String contents) {
            assertArgumentNotNull("contents", contents);
            return getContentsAsStream(contents, null);
        }
    
        /**
         * 指定のエンコーディングでXMLの内容を {@link InputStream}として取得します。
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/xml/DomUtilTest.java

        /**
         * @throws Exception
         */
        public void testGetContentsAsStream() throws Exception {
            final String contents = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><foo/>";
            assertNotNull("1", DomUtil.getContentsAsStream(contents, "UTF-8"));
        }
    
        /**
         * @throws Exception
         */
        public void testToString() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/CoreLibConstants.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core;
    
    import java.nio.charset.Charset;
    
    /**
     * Constants class.
     *
     * @author shinsuke
     *
     */
    public class CoreLibConstants {
    
        /**
         * UTF-8
         */
        public static final String UTF_8 = "UTF-8";
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/io/PropertiesUtilTest.java

            final File file = tempFolder.newFile("hoge.properties");
            final FileOutputStream outputStream = OutputStreamUtil.create(file);
            PropertiesUtil.store(outProperties, outputStream, "comments");
            CloseableUtil.close(outputStream);
            final Properties properties = new Properties();
            PropertiesUtil.load(properties, file);
            assertThat(properties.getProperty("a"), is("A"));
        }
    
    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)
  5. src/main/java/org/codelibs/core/io/PropertiesUtil.java

         *            出力ストリーム。{@literal null}であってはいけません
         * @param comments
         *            コメント
         */
        public static void store(final Properties props, final OutputStream out, final String comments) {
            assertArgumentNotNull("props", props);
            assertArgumentNotNull("out", out);
    
            try {
                props.store(out, comments);
            } catch (final IOException e) {
    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)
  6. src/main/java/org/codelibs/core/misc/DynamicProperties.java

        }
    
        @Override
        public void store(final OutputStream out, final String comments) throws IOException {
            getProperties().store(out, comments);
        }
    
        @Override
        public void store(final Writer writer, final String comments) throws IOException {
            getProperties().store(writer, comments);
        }
    
        @Override
    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