- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 140 for readLine (0.05 seconds)
-
compat/maven-compat/src/main/java/org/apache/maven/internal/compat/interactivity/LegacyPlexusInteractivity.java
} } @Override public List<String> readMultipleLines() throws IOException { List<String> lines = new ArrayList<>(); for (String line = readLine(); line != null && !line.isEmpty(); line = readLine()) { lines.add(line); } return lines; } @Override public void write(String line) throws IOException { try {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Apr 03 13:48:41 GMT 2025 - 5.2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/HeadersReader.kt
/** Read a single line counted against the header size limit. */ fun readLine(): String { val line = source.readUtf8LineStrict(headerLimit) headerLimit -= line.length.toLong() return line } /** Reads headers or trailers. */ fun readHeaders(): Headers { val result = Headers.Builder() while (true) { val line = readLine() if (line.isEmpty()) break result.addLenient(line) }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.4K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Decrypt.java
super(messageBuilderFactory, secDispatcher); } @Override protected int doExecute(EncryptContext 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 {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Dec 17 09:50:45 GMT 2024 - 2.1K bytes - Click Count (0) -
android/guava/src/com/google/common/io/LineReader.java
import java.io.Reader; import java.nio.CharBuffer; import java.util.ArrayDeque; import java.util.Queue; import org.jspecify.annotations.Nullable; /** * A class for reading lines of text. Provides the same functionality as {@link * java.io.BufferedReader#readLine()} but for all {@link Readable} objects, not just instances of * {@link Reader}. * * @author Chris Nokleberg * @since 1.0 */ @J2ktIncompatible @GwtIncompatibleCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java
DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data)); UnsupportedOperationException expected = assertThrows(UnsupportedOperationException.class, () -> in.readLine()); assertThat(expected).hasMessageThat().isEqualTo("readLine is not supported"); } public void testReadLittleEndian() throws IOException { DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data));
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4.9K bytes - Click Count (0) -
android/guava/src/com/google/common/io/LittleEndianDataInputStream.java
@CanIgnoreReturnValue // to skip a line @Override @DoNotCall("Always throws UnsupportedOperationException") public String readLine() { throw new UnsupportedOperationException("readLine is not supported"); } @Override public void readFully(byte[] b) throws IOException { ByteStreams.readFully(this, b); } @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 12 03:49:18 GMT 2025 - 7.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/LineBufferTest.java
BufferedReader r = new BufferedReader(getChunkedReader(input, chunk)); List<String> lines = new ArrayList<>(); 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 {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 4.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/LineBufferTest.java
BufferedReader r = new BufferedReader(getChunkedReader(input, chunk)); List<String> lines = new ArrayList<>(); 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 {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 4.9K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Encrypt.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Dec 17 09:50:45 GMT 2024 - 1.8K bytes - Click Count (0) -
android/guava/src/com/google/common/io/ByteArrayDataInput.java
@Override int readInt(); @CanIgnoreReturnValue // to skip some bytes @Override long readLong(); @CanIgnoreReturnValue // to skip some bytes @Override float readFloat(); @CanIgnoreReturnValue // to skip some bytes @Override double readDouble(); @CanIgnoreReturnValue // to skip a line @Override @Nullable String readLine();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 27 20:25:25 GMT 2024 - 2.7K bytes - Click Count (0)