Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1591 - 1600 of 3,054 for throws (0.03 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/FaultHidingSink.kt

     * limitations under the License.
     */
    package okhttp3.internal.cache
    
    import java.io.IOException
    import okio.Buffer
    import okio.ForwardingSink
    import okio.Sink
    
    /** A sink that never throws IOExceptions, even if the underlying sink does. */
    internal open class FaultHidingSink(
      delegate: Sink,
      val onException: (IOException) -> Unit,
    ) : ForwardingSink(delegate) {
      private var hasErrors = false
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/HeadersReader.kt

     * limitations under the License.
     */
    package okhttp3.internal.http1
    
    import okhttp3.Headers
    import okio.BufferedSource
    
    /**
     * Parse all headers delimited by "\r\n" until an empty line. This throws if headers exceed 256 KiB.
     */
    class HeadersReader(
      val source: BufferedSource,
    ) {
      private var headerLimit = HEADER_LIMIT.toLong()
    
      /** Read a single line counted against the header size limit. */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/config/BaseConfiguration.java

         *
         * @throws CIFSException if there is an error during initialization
         */
        protected void initDefaults() throws CIFSException {
    
            try {
                "".getBytes(SmbConstants.DEFAULT_OEM_ENCODING);
            } catch (final UnsupportedEncodingException uee) {
                throw new CIFSException(
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 36.5K bytes
    - Viewed (0)
  4. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/entity/OpenSearchAccessResult.java

         * @param params Additional parameters for the conversion.
         * @return The XContentBuilder with the access result data.
         * @throws IOException if the conversion fails.
         */
        @Override
        public XContentBuilder toXContent(final XContentBuilder builder, final Params params) throws IOException {
            builder.startObject();
            if (sessionId != null) {
                builder.field(SESSION_ID, sessionId);
            }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  5. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchDataServiceTest.java

        protected String prepareConfigFile() {
            return "app.xml";
        }
    
        @Override
        protected boolean isUseOneTimeContainer() {
            return true;
        }
    
        @Override
        public void setUp() throws Exception {
            // create runner instance
            runner = new OpenSearchRunner();
            // create ES nodes
            final String clusterName = UUID.randomUUID().toString();
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

         * @param url the URL to process
         * @return a map containing the processed document data
         * @throws CrawlingAccessException if crawling fails or configuration is invalid
         * @throws ChildUrlsException if the URL redirects to another location
         * @throws CrawlerSystemException if data deserialization fails
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

                    this.exception = e;
                }
    
                @Override
                public int decode(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
                    if (buffer == null || buffer.length < bufferIndex + 4) {
                        throw new SMBProtocolDecodingException("Buffer too small");
                    }
                    return 4;
                }
    
                @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/query/BoostQueryCommandTest.java

            // Test that execute throws InvalidQueryException when query is not a BoostQuery
            TermQuery termQuery = new TermQuery(new Term("field", "value"));
            QueryContext context = new QueryContext("test", false);
    
            try {
                boostQueryCommand.execute(context, termQuery, 1.0f);
                fail("Should have thrown InvalidQueryException");
            } catch (InvalidQueryException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt

            override fun source(): BufferedSource {
              val source = Buffer().writeUtf8("hello")
              return object : ForwardingSource(source) {
                @Throws(IOException::class)
                override fun close(): Unit = throw IOException("Broken!")
              }.buffer()
            }
          }
        assertThat(body.source().readUtf8()).isEqualTo("hello")
        body.close()
      }
    
      @Test
      fun unicodeText() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            assertEquals(-128, response.getServerData().serverTimeZone);
            assertEquals(8, response.getServerData().encryptionKeyLength);
        }
    
        @Test
        public void testReadBytesWireFormatWithoutExtendedSecurity() throws UnsupportedEncodingException {
            response.getServerData().scapabilities = 0;
            response.getServerData().encryptionKeyLength = 8;
            // Domain name in OEM encoding (ASCII) with null terminator
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top