Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for AsCharSource (0.18 sec)

  1. android/guava/src/com/google/common/io/Files.java

       * @throws IOException if an I/O error occurs
       * @deprecated Prefer {@code asCharSource(file, charset).read()}.
       */
      @Deprecated
      @InlineMe(
          replacement = "Files.asCharSource(file, charset).read()",
          imports = "com.google.common.io.Files")
      public static String toString(File file, Charset charset) throws IOException {
        return asCharSource(file, charset).read();
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

        checkNotNull(factory);
        return new CharSourceFactory() {
          @Override
          public CharSource createSource(String string) throws IOException {
            return factory.createSource(string.getBytes(Charsets.UTF_8)).asCharSource(Charsets.UTF_8);
          }
    
          @Override
          public String getExpected(String data) {
            return new String(factory.getExpected(data.getBytes(Charsets.UTF_8)), Charsets.UTF_8);
          }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/ByteSource.java

       * returned, rather than round-trip encoding. Subclasses that override this method should behave
       * the same way.
       */
      public CharSource asCharSource(Charset charset) {
        return new AsCharSource(charset);
      }
    
      /**
       * Opens a new {@link InputStream} for reading from this source. This method returns a new,
       * independent stream each time it is called.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/CharSource.java

        AsByteSource(Charset charset) {
          this.charset = checkNotNull(charset);
        }
    
        @Override
        public CharSource asCharSource(Charset charset) {
          if (charset.equals(this.charset)) {
            return CharSource.this;
          }
          return super.asCharSource(charset);
        }
    
        @Override
        public InputStream openStream() throws IOException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

      public static TestSuite suite() {
        TestSuite suite = new TestSuite();
        for (boolean asCharSource : new boolean[] {false, true}) {
          suite.addTest(
              ByteSourceTester.tests(
                  "ByteSource.wrap[byte[]]",
                  SourceSinkFactories.byteArraySourceFactory(),
                  asCharSource));
          suite.addTest(
              ByteSourceTester.tests(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/SourceSinkFactories.java

        checkNotNull(factory);
        return new CharSourceFactory() {
          @Override
          public CharSource createSource(String string) throws IOException {
            return factory.createSource(string.getBytes(Charsets.UTF_8)).asCharSource(Charsets.UTF_8);
          }
    
          @Override
          public String getExpected(String data) {
            return new String(factory.getExpected(data.getBytes(Charsets.UTF_8)), Charsets.UTF_8);
          }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Sep 09 17:57:59 GMT 2021
    - 17.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/ByteSourceTest.java

      public static TestSuite suite() {
        TestSuite suite = new TestSuite();
        for (boolean asCharSource : new boolean[] {false, true}) {
          suite.addTest(
              ByteSourceTester.tests(
                  "ByteSource.wrap[byte[]]",
                  SourceSinkFactories.byteArraySourceFactory(),
                  asCharSource));
          suite.addTest(
              ByteSourceTester.tests(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/FilesTest.java

        suite.addTest(
            ByteSinkTester.tests(
                "Files.asByteSink[File, APPEND]", SourceSinkFactories.appendingFileByteSinkFactory()));
        suite.addTest(
            CharSourceTester.tests(
                "Files.asCharSource[File, Charset]",
                SourceSinkFactories.fileCharSourceFactory(),
                false));
        suite.addTest(
            CharSinkTester.tests(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/FilesTest.java

        suite.addTest(
            ByteSinkTester.tests(
                "Files.asByteSink[File, APPEND]", SourceSinkFactories.appendingFileByteSinkFactory()));
        suite.addTest(
            CharSourceTester.tests(
                "Files.asCharSource[File, Charset]",
                SourceSinkFactories.fileCharSourceFactory(),
                false));
        suite.addTest(
            CharSinkTester.tests(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/reflect/ClassPath.java

         *     despite physically existing in the class path.
         * @since 20.0
         */
        public final CharSource asCharSource(Charset charset) {
          return Resources.asCharSource(url(), charset);
        }
    
        /** Returns the fully qualified name of the resource. Such as "com/mycomp/foo/bar.txt". */
        public final String getResourceName() {
    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)
Back to top