Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for InputStreamReader (0.31 sec)

  1. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

    import assertk.assertions.isNotEqualTo
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import java.io.BufferedReader
    import java.io.Closeable
    import java.io.IOException
    import java.io.InputStreamReader
    import java.net.ConnectException
    import java.net.HttpURLConnection
    import java.net.ProtocolException
    import java.net.SocketTimeoutException
    import java.nio.charset.StandardCharsets.UTF_8
    import java.time.Duration
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/TestReader.java

    import static com.google.common.base.Preconditions.checkNotNull;
    
    import java.io.ByteArrayInputStream;
    import java.io.FilterReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    
    /** @author Colin Decker */
    public class TestReader extends FilterReader {
    
      private final TestInputStream in;
    
      public TestReader(TestOption... options) throws IOException {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.3K bytes
    - Viewed (0)
  3. 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);
            assertThat(properties.getProperty("hoge"), is("ほげ"));
        }
    
        /**
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

          }
        },
        USING_CHARSTREAMS_COPY {
          @Override
          String read(ByteSource byteSource, Charset cs) throws IOException {
            StringBuilder sb = new StringBuilder();
            try (InputStreamReader reader = new InputStreamReader(byteSource.openStream(), cs)) {
              CharStreams.copy(reader, sb);
            }
            return sb.toString();
          }
        },
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

          }
        },
        USING_CHARSTREAMS_COPY {
          @Override
          String read(ByteSource byteSource, Charset cs) throws IOException {
            StringBuilder sb = new StringBuilder();
            try (InputStreamReader reader = new InputStreamReader(byteSource.openStream(), cs)) {
              CharStreams.copy(reader, sb);
            }
            return sb.toString();
          }
        },
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/ReaderUtil.java

         * @return ファイルかへ出力する{@link Reader}
         */
        public static InputStreamReader create(final InputStream is, final String encoding) {
            assertArgumentNotNull("is", is);
            assertArgumentNotEmpty("encoding", encoding);
    
            try {
                return new InputStreamReader(is, encoding);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/TestCharSource.java

     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import static com.google.common.base.Charsets.UTF_8;
    
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.Reader;
    
    /**
     * A char source for testing that has configurable options.
     *
     * @author Colin Decker
     */
    public class TestCharSource extends CharSource implements TestStreamSupplier {
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 1.4K bytes
    - Viewed (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/RenderMarkdown.java

            File destination = getDestinationFile().get().getAsFile();
            Charset outputEncoding = Charset.forName(getOutputEncoding().get());
            try (InputStreamReader inputStream = new InputStreamReader(new FileInputStream(markdownFile), inputEncoding);
                 OutputStreamWriter outputStream = new OutputStreamWriter(new FileOutputStream(destination), outputEncoding)) {
    Java
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 3.2K bytes
    - Viewed (0)
  9. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import assertk.assertions.isTrue
    import java.io.BufferedReader
    import java.io.Closeable
    import java.io.IOException
    import java.io.InputStreamReader
    import java.net.ConnectException
    import java.net.HttpURLConnection
    import java.net.ProtocolException
    import java.net.SocketTimeoutException
    import java.nio.charset.StandardCharsets
    import java.util.Arrays
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/TestCharSource.java

     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import static com.google.common.base.Charsets.UTF_8;
    
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.Reader;
    
    /**
     * A char source for testing that has configurable options.
     *
     * @author Colin Decker
     */
    public class TestCharSource extends CharSource implements TestStreamSupplier {
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Nov 09 21:39:24 GMT 2012
    - 1.4K bytes
    - Viewed (0)
Back to top