Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1231 - 1240 of 2,742 for throws (0.05 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataTreeNode.java

            return md == null ? "no metadata" : md.toString();
        }
    
        // ------------------------------------------------------------------
        public String graphHash() throws MetadataResolutionException {
            if (md == null) {
                throw new MetadataResolutionException(
                        "treenode without metadata, parent: " + (parent == null ? "null" : parent.toString()));
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. README.md

    
    Get a URL
    ---------
    
    This program downloads a URL and prints its contents as a string. [Full source][get_example].
    
    ```java
    OkHttpClient client = new OkHttpClient();
    
    String run(String url) throws IOException {
      Request request = new Request.Builder()
          .url(url)
          .build();
    
      try (Response response = client.newCall(request).execute()) {
        return response.body().string();
      }
    }
    ```
    
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponse.java

            return 0;
        }
    
    
        @Override
        protected int readDataWireFormat ( byte[] buffer, int bufferIndex, int len ) throws SMBProtocolDecodingException {
            if ( len > this.outputBuffer.length ) {
                throw new SMBProtocolDecodingException("Payload exceeds buffer size");
            }
            System.arraycopy(buffer, bufferIndex, this.outputBuffer, 0, len);
            return len;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Apr 13 17:05:22 UTC 2020
    - 2.5K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImplTest.java

        private StandardCrawlerContainer container;
    
        @Override
        protected void setUp() throws Exception {
            super.setUp();
            container = new StandardCrawlerContainer().singleton("mimeTypeHelper", MimeTypeHelperImpl.class);
        }
    
        public void test_getContentType_filenameFirst() throws IOException {
            final MimeTypeHelperImpl mimeTypeHelper = container.getComponent("mimeTypeHelper");
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Streams.java

        }
      }
    
      /** Throws an undeclared checked exception. */
      private static void sneakyThrow(Throwable t) {
        class SneakyThrower<T extends Throwable> {
          @SuppressWarnings("unchecked") // not really safe, but that's the point
          void throwIt(Throwable t) throws T {
            throw (T) t;
          }
        }
        new SneakyThrower<Error>().throwIt(t);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  6. compat/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java

     */
    class PluginDescriptorBuilderTest {
    
        private PluginDescriptor build(String resource) throws IOException, PlexusConfigurationException {
            try (InputStream is = getClass().getResourceAsStream(resource)) {
                return new PluginDescriptorBuilder().build(is, null);
            }
        }
    
        @Test
        void testBuildReader() throws Exception {
            PluginDescriptor pd = build("/plugin.xml");
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

      /**
       * Creates a table with the specified data.
       *
       * @param data the table data, repeating the sequence row key, column key, value once per mapping
       * @throws IllegalArgumentException if the size of {@code data} isn't a multiple of 3
       * @throws ClassCastException if a data element has the wrong type
       */
      protected abstract Table<String, Integer, C> create(@Nullable Object... data);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/ImmutableGraph.java

         * silently {@link #addNode(Object) add} each missing endpoint to the graph.
         *
         * @return this {@code Builder} object
         * @throws IllegalArgumentException if the introduction of the edge would violate {@link
         *     #allowsSelfLoops()}
         * @throws IllegalArgumentException if the endpoints are unordered and the graph is directed
         */
        @CanIgnoreReturnValue
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/netbios/SessionRetargetResponsePacket.java

        }
        int readTrailerWireFormat( InputStream in,
                                byte[] buffer,
                                int bufferIndex )
                                throws IOException {
            if( in.read( buffer, bufferIndex, length ) != length ) {
                throw new IOException( "unexpected EOF reading netbios retarget session response" );
            }
            int addr = readInt4( buffer, bufferIndex );
            bufferIndex += 4;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 1.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/io/Smb2FlushResponse.java

         */
        @Override
        protected int readBytesWireFormat ( byte[] buffer, int bufferIndex ) throws SMBProtocolDecodingException {
            int start = bufferIndex;
            int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if ( structureSize != 4 ) {
                throw new SMBProtocolDecodingException("Expected structureSize = 4");
            }
            bufferIndex += 4;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2K bytes
    - Viewed (0)
Back to top