Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 701 - 710 of 1,041 for jstream (0.05 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyJvmTest.kt

          }
        assertFailsWith<IOException> {
          body.bytes()
        }.also { expected ->
          assertThat(expected.message).isEqualTo(
            "Content-Length (10) and stream length (5) disagree",
          )
        }
      }
    
      @Test
      fun bytesThrowsMoreThanIntMaxValue() {
        val body: ResponseBody =
          object : ResponseBody() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 12.4K bytes
    - Click Count (0)
  2. okcurl/src/main/kotlin/okhttp3/curl/internal/-MainCommon.kt

        if (showHeaders) {
          println(StatusLine.get(response))
          val headers = response.headers
          for ((name, value) in headers) {
            println("$name: $value")
          }
          println()
        }
    
        // Stream the response to the System.out as it is returned from the server.
        val out = System.out.sink()
        val source = response.body.source()
        while (!source.exhausted()) {
          out.write(source.buffer, source.buffer.size)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DeprecatedCoreExpressionValidator.java

                ExpressionEvaluator expressionEvaluator) {
            if (mojoDescriptor.getParameters() == null) {
                return;
            }
    
            mojoDescriptor.getParameters().stream()
                    .filter(this::isDeprecated)
                    .map(this::formatParameter)
                    .forEach(m -> pluginValidationManager.reportPluginMojoValidationIssue(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.5K bytes
    - Click Count (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/gcs/Handler.java

                    throw new IOException("Failed to create GCS client.", e);
                }
            }
    
            /**
             * Gets an input stream to read from the GCS object.
             *
             * @return An input stream for reading the object content
             * @throws IOException If the object cannot be accessed
             */
            @Override
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Thu Dec 11 08:38:29 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/s3/Handler.java

                    throw new IOException("Failed to create S3Client.", e);
                }
            }
    
            /**
             * Gets an input stream to read from the S3 object.
             *
             * @return An input stream for reading the object content
             * @throws IOException If the object cannot be accessed
             */
            @Override
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Thu Dec 11 07:57:44 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verifyNoInteractions;
    import static org.mockito.Mockito.when;
    
    import java.lang.reflect.Field;
    import java.lang.reflect.Method;
    import java.util.stream.Stream;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.params.ParameterizedTest;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 32.5K bytes
    - Click Count (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientCreator.java

         * @param crawlerClientFactory The CrawlerClientFactory to register.
         */
        public synchronized void register(final CrawlerClientFactory crawlerClientFactory) {
            clientMap.entrySet().stream().forEach(e -> load(crawlerClientFactory, e.getKey(), e.getValue()));
            clientFactoryList.add(crawlerClientFactory);
            if (clientFactoryList.size() > maxClientFactorySize) {
                clientFactoryList.remove(0);
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sun Jul 06 02:13:03 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/LayeredMavenOptions.java

    public class LayeredMavenOptions<O extends MavenOptions> extends LayeredOptions<O> implements MavenOptions {
        public static MavenOptions layerMavenOptions(Collection<MavenOptions> options) {
            List<MavenOptions> o = options.stream().filter(Objects::nonNull).toList();
            if (o.isEmpty()) {
                throw new IllegalArgumentException("No options specified (or all were null)");
            } else if (o.size() == 1) {
                return o.get(0);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  9. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

        if (path.endsWith(".gif")) return "image/gif";
        if (path.endsWith(".html")) return "text/html; charset=utf-8";
        if (path.endsWith(".txt")) return "text/plain; charset=utf-8";
        return "application/octet-stream";
      }
    
      public static void main(String[] args) throws Exception {
        if (args.length != 4) {
          System.out.println("Usage: SampleServer <keystore> <password> <root file> <port>");
          return;
        }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Jan 02 02:50:44 GMT 2019
    - 4.7K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/DefaultMetadataReader.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.artifact.repository.metadata.io;
    
    import javax.inject.Named;
    import javax.inject.Singleton;
    import javax.xml.stream.XMLStreamException;
    
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.Reader;
    import java.nio.file.Files;
    import java.util.Map;
    import java.util.Objects;
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.9K bytes
    - Click Count (0)
Back to Top