Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 221 - 230 of 530 for IOException (0.08 seconds)

  1. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/PomBuilder.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.internal.transformation.impl;
    
    import javax.xml.stream.XMLStreamException;
    
    import java.io.IOException;
    
    import org.apache.maven.api.model.Model;
    import org.apache.maven.api.services.ModelBuilderException;
    import org.apache.maven.api.services.ModelSource;
    import org.apache.maven.project.MavenProject;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Nov 06 18:32:25 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformedArtifact.java

                    return null;
                }
                return target.toFile();
            } catch (IOException | XMLStreamException | ModelBuilderException e) {
                throw new TransformationFailedException(e);
            }
        }
    
        private String mayUpdate() throws IOException, XMLStreamException, ModelBuilderException {
            String result;
            ModelSource src = sourcePathProvider.get();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Nov 06 18:32:25 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  3. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

      }
    
      private MockResponse fileToResponse(String path, File file) throws IOException {
        return new MockResponse()
            .setStatus("HTTP/1.1 200")
            .setBody(fileToBytes(file))
            .addHeader("content-type: " + contentType(path));
      }
    
      private Buffer fileToBytes(File file) throws IOException {
        Buffer result = new Buffer();
        result.writeAll(Okio.source(file));
        return result;
      }
    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)
  4. compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilderTest.java

                        e.getMessage());
            }
        }
    
        @Test
        void testIOException() throws Exception {
            Source src = mock(Source.class);
            IOException ioException = new IOException("MESSAGE");
            doThrow(ioException).when(src).getInputStream();
            doReturn("LOCATION").when(src).getLocation();
    
            ToolchainsBuildingRequest request = new DefaultToolchainsBuildingRequest();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 14K bytes
    - Click Count (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/Source.java

         * The caller is responsible for closing the returned stream.
         *
         * @return a new input stream positioned at the start of the content
         * @throws IOException if the stream cannot be created or opened
         */
        @Nonnull
        InputStream openStream() throws IOException;
    
        /**
         * Returns a human-readable description of where this source came from,
         * used primarily for error messages and debugging.
         * <p>
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jan 29 09:46:53 GMT 2025
    - 4K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/testing/Platform.java

    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import org.jspecify.annotations.NullMarked;
    
    /**
     * Methods factored out so that they can be emulated differently in GWT.
     *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  7. samples/guide/src/main/java/okhttp3/recipes/AccessHeaders.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.recipes;
    
    import java.io.IOException;
    import okhttp3.OkHttpClient;
    import okhttp3.Request;
    import okhttp3.Response;
    
    public final class AccessHeaders {
      private final OkHttpClient client = new OkHttpClient();
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun May 22 01:29:42 GMT 2016
    - 1.6K bytes
    - Click Count (0)
  8. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/PluginEntry.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.kotlin.dsl.internal.sharedruntime.codegen
    
    import java.io.File
    import java.io.IOException
    import java.util.Properties
    import java.util.jar.JarEntry
    import java.util.jar.JarFile
    
    
    data class PluginEntry(val pluginId: String, val implementationClass: String)
    
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Jun 28 08:29:28 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/io/SourceSinkTester.java

        try {
          return new CharSource() {
            @Override
            public Reader openStream() throws IOException {
              return new StringReader(string);
            }
          }.readLines();
        } catch (IOException e) {
          throw new AssertionError();
        }
      }
    
      @Override
      public void tearDown() throws IOException {
        factory.tearDown();
      }
    
    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)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnection.kt

      internal fun incrementSuccessCount() {
        withLock {
          successCount++
        }
      }
    
      @Throws(IOException::class)
      fun start() {
        idleAtNs = System.nanoTime()
        if (protocol == Protocol.HTTP_2 || protocol == Protocol.H2_PRIOR_KNOWLEDGE) {
          startHttp2()
        }
      }
    
      @Throws(IOException::class)
      private fun startHttp2() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Oct 07 21:55:03 GMT 2025
    - 14.6K bytes
    - Click Count (0)
Back to Top