Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for readLine (0.07 sec)

  1. guava/src/com/google/common/io/CharSource.java

       *
       * @throws IOException if an I/O error occurs while reading from this source
       */
      public ImmutableList<String> readLines() throws IOException {
        Closer closer = Closer.create();
        try {
          BufferedReader reader = closer.register(openBufferedStream());
          List<String> result = Lists.newArrayList();
          String line;
          while ((line = reader.readLine()) != null) {
            result.add(line);
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    	}
    
    	line, isPrefix, err := l.ReadLine()
    	if err != io.EOF {
    		t.Errorf("expected EOF from ReadLine, got '%s' %t %s", line, isPrefix, err)
    	}
    }
    
    func TestReadLineNonNilLineOrError(t *testing.T) {
    	r := NewReader(strings.NewReader("line 1\n"))
    	for i := 0; i < 2; i++ {
    		l, _, err := r.ReadLine()
    		if l != nil && err != nil {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Encrypt.java

            super(messageBuilderFactory, secDispatcher);
        }
    
        @Override
        protected int doExecute(DefaultEncryptInvoker.LocalContext context) throws Exception {
            String cleartext = context.reader.readLine("Enter the password to encrypt: ", '*');
            context.terminal.writer().println(secDispatcher.encrypt(cleartext, null));
            return OK;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Decrypt.java

            super(messageBuilderFactory, secDispatcher);
        }
    
        @Override
        protected int doExecute(DefaultEncryptInvoker.LocalContext context) throws Exception {
            String encrypted = context.reader.readLine("Enter the password to decrypt: ");
            if (secDispatcher.isAnyEncryptedString(encrypted)) {
                context.terminal.writer().println(secDispatcher.decrypt(encrypted));
                return OK;
            } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/LineBufferTest.java

        BufferedReader r = new BufferedReader(getChunkedReader(input, chunk));
        List<String> lines = Lists.newArrayList();
        String line;
        while ((line = r.readLine()) != null) {
          lines.add(line);
        }
        r.close();
        return lines;
      }
    
      private static List<String> readUsingReader(String input, int chunk, boolean asReader)
          throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/LineBufferTest.java

        BufferedReader r = new BufferedReader(getChunkedReader(input, chunk));
        List<String> lines = Lists.newArrayList();
        String line;
        while ((line = r.readLine()) != null) {
          lines.add(line);
        }
        r.close();
        return lines;
      }
    
      private static List<String> readUsingReader(String input, int chunk, boolean asReader)
          throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/ByteStreams.java

            return input.readDouble();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        @CheckForNull
        public String readLine() {
          try {
            return input.readLine();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public String readUTF() {
          try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

                commentLines.clear();
                valueLines.clear();
                StringBuilder buffer = new StringBuilder();
    
                while (true) {
                    String line = readLine();
                    if (line == null) {
                        // EOF
                        return null;
                    }
    
                    if (isCommentLine(line)) {
                        commentLines.add(line);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  9. go.sum

    github.com/chromedp/sysutil v1.0.0/go.mod h1:kgWmDdq8fTzXYcKIBqIYvRRTnYb9aNS9moAV0xufSww=
    github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ=
    github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk=
    github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8=
    github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Nov 06 06:23:25 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  10. CHANGELOG/CHANGELOG-1.31.md

    - github.com/cespare/xxhash/v2: [v2.2.0 → v2.3.0](https://github.com/cespare/xxhash/compare/v2.2.0...v2.3.0)
    - github.com/chzyer/readline: [2972be2 → v1.5.1](https://github.com/chzyer/readline/compare/2972be2...v1.5.1)
    - github.com/cncf/udpa/go: [c52dc94 → 269d4d4](https://github.com/cncf/udpa/compare/c52dc94...269d4d4)
    Registered: Fri Nov 01 09:05:11 UTC 2024
    - Last Modified: Wed Oct 23 12:18:32 UTC 2024
    - 315.4K bytes
    - Viewed (0)
Back to top