Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 21 for bufferedReader (0.08 seconds)

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

     *
     * BufferedReader reader = ...;
     * for (String line : iterable(reader)) {
     *     ...
     * }
     * </pre>
     *
     * @author koichik
     */
    public class LineIterator implements Iterator<String> {
    
        /** String object indicating that {@link #line} is empty */
        protected static final String EMPTY = new String();
    
        /** {@link BufferedReader} */
        protected final BufferedReader reader;
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/io/ReaderUtil.java

        /**
         * Reads a single line from the given {@link BufferedReader}.
         *
         * @param reader
         *            the {@link BufferedReader} (must not be {@literal null})
         * @return a line of text, or {@literal null} if the end of the stream has been reached
         * @see BufferedReader#readLine()
         */
        public static String readLine(final BufferedReader reader) {
            assertArgumentNotNull("reader", reader);
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  3. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/info/ParallelDetector.java

                    Map<String, Integer> socketToCore = new HashMap<>();
                    String currentID = "";
    
                    try (BufferedReader reader = new BufferedReader(new FileReader(cpuInfoFile))) {
                        for (String line = reader.readLine(); line != null; line = reader.readLine()) {
                            if (line.contains(":")) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Aug 09 07:39:30 GMT 2021
    - 3.6K bytes
    - Click Count (0)
  4. src/main/java/jcifs/netbios/Lmhosts.java

            }
            return result;
        }
    
        void populate(final Reader r, final CIFSContext tc) throws IOException {
            String line;
            final BufferedReader br = new BufferedReader(r);
    
            while ((line = br.readLine()) != null) {
                line = line.toUpperCase().trim();
                if (line.length() == 0) {
                    continue;
                }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/sereq/AdminSereqAction.java

            verifyTokenKeep(() -> asListHtml(this::saveToken));
    
            String header = null;
            final StringBuilder buf = new StringBuilder(1000);
            try (final BufferedReader reader = new BufferedReader(new InputStreamReader(form.requestFile.getInputStream(), Constants.UTF_8))) {
                header = ReaderUtil.readLine(reader);
                if (header == null) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/suggest/settings/BadWordSettings.java

         */
        protected static void updateDefaultBadwords() {
            if (defaultWords != null) {
                return;
            }
    
            final List<String> list = new ArrayList<>();
            try (BufferedReader br = new BufferedReader(new InputStreamReader(
                    Thread.currentThread().getContextClassLoader().getResourceAsStream("suggest_settings/default-badwords.txt")))) {
    
                String line;
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Nov 23 03:02:17 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/util/InputStreamThread.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.util;
    
    import java.io.BufferedReader;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.nio.charset.Charset;
    import java.util.LinkedList;
    import java.util.List;
    import java.util.function.Consumer;
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb1/netbios/Lmhosts.java

                    ioe.printStackTrace(log);
                }
            }
            return result;
        }
    
        static void populate(final Reader r) throws IOException {
            String line;
            final BufferedReader br = new BufferedReader(r);
    
            while ((line = br.readLine()) != null) {
                line = line.toUpperCase().trim();
                if (line.length() == 0) {
                    continue;
                }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/io/LineBufferTest.java

          off += len;
        }
        lineBuf.finish();
        return lines;
      }
    
      private static List<String> readUsingJava(String input, int chunk) throws IOException {
        BufferedReader r = new BufferedReader(getChunkedReader(input, chunk));
        List<String> lines = new ArrayList<>();
        String line;
        while ((line = r.readLine()) != null) {
          lines.add(line);
        }
        r.close();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/suggest/util/SettingsResourceLoader.java

                if (is == null) {
                    throw new IOException("Resource not found: " + resourcePath);
                }
                try (BufferedReader br = new BufferedReader(new InputStreamReader(is))) {
                    String line;
                    while ((line = br.readLine()) != null) {
                        sb.append(line);
                    }
                }
            }
    
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 5.7K bytes
    - Click Count (0)
Back to Top