Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 192 for Serialize (0.06 seconds)

  1. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

                    new RuntimeException("cause"), SmbOperationException.RetryPolicy.AGGRESSIVE, context);
    
            // When - Serialize
            java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();
            java.io.ObjectOutputStream oos = new java.io.ObjectOutputStream(baos);
            oos.writeObject(exception);
            oos.close();
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 16.1K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/base/SuppliersTest.java

        Object unused = memoizedSupplier.get();
        assertThat(memoizedSupplier.toString())
            .isEqualTo("Suppliers.memoize(<supplier that returned 10>)");
    
        // Should get an exception when we try to serialize.
        RuntimeException ex = assertThrows(RuntimeException.class, () -> reserialize(memoizedSupplier));
        assertThat(ex).hasCauseThat().isInstanceOf(NotSerializableException.class);
      }
    
      @J2ktIncompatible
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        Object unused = memoizedSupplier.get();
        assertThat(memoizedSupplier.toString())
            .isEqualTo("Suppliers.memoize(<supplier that returned 10>)");
    
        // Should get an exception when we try to serialize.
        RuntimeException ex = assertThrows(RuntimeException.class, () -> reserialize(memoizedSupplier));
        assertThat(ex).hasCauseThat().isInstanceOf(NotSerializableException.class);
      }
    
      @J2ktIncompatible
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  4. fastapi/applications.py

                        show it as the response (JSON Schema).
                    * Serialization: you could return an arbitrary object and the
                        `response_model` would be used to serialize that object into the
                        corresponding JSON.
                    * Filtering: the JSON sent to the client will only contain the data
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 176.3K bytes
    - Click Count (0)
  5. cmd/admin-handlers-pools.go

    	if objectAPI == nil {
    		return
    	}
    
    	// NB rebalance-start admin API is always coordinated from first pool's
    	// first node. The following is required to serialize (the effects of)
    	// concurrent rebalance-start commands.
    	if ep := globalEndpoints[0].Endpoints[0]; !ep.IsLocal {
    		for nodeIdx, proxyEp := range globalProxyEndpoints {
    			if proxyEp.Host == ep.Host {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java

            TestResponseProcessor processor = new TestResponseProcessor();
            testRule.setRuleId("serializeRule");
            testRule.setResponseProcessor(processor);
            testRule.setMatchResult(false);
    
            // Serialize
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            ObjectOutputStream oos = new ObjectOutputStream(baos);
            oos.writeObject(testRule);
            oos.close();
    
            // Deserialize
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Wed Sep 03 14:42:53 GMT 2025
    - 21.9K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/ImmutableRangeMap.java

        }
        return false;
      }
    
      @Override
      public String toString() {
        return asMapOfRanges().toString();
      }
    
      /**
       * This class is used to serialize ImmutableRangeMap instances. Serializes the {@link
       * #asMapOfRanges()} form.
       */
      private static final class SerializedForm<K extends Comparable<?>, V> implements Serializable {
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 14.8K bytes
    - Click Count (0)
  8. fastapi/_compat/v2.py

                )
            except ValidationError as exc:
                return None, _regenerate_error_with_loc(
                    errors=exc.errors(include_url=False), loc_prefix=loc
                )
    
        def serialize(
            self,
            value: Any,
            *,
            mode: Literal["json", "python"] = "json",
            include: Union[IncEx, None] = None,
            exclude: Union[IncEx, None] = None,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 19.1K bytes
    - Click Count (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java

        public void test_serialization() throws Exception {
            // Test each enum value
            CrawlerStatus[] statuses = CrawlerStatus.values();
    
            for (CrawlerStatus original : statuses) {
                // Serialize
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                ObjectOutputStream oos = new ObjectOutputStream(baos);
                oos.writeObject(original);
                oos.close();
    
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Wed Sep 03 14:42:53 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

                        + ((ByteArrayOutputStream) out2).toString(CoreLibConstants.UTF_8);
            } catch (final IOException e) {
                throw new SuggesterException("Failed to serialize SuggestItem to bulk line format: itemId=" + item.getId(), e);
            }
        }
    
        private static OutputStream getXContentOutputStream(final Map<String, Object> firstLineMap) throws IOException {
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Sun Nov 23 11:21:40 GMT 2025
    - 17.5K bytes
    - Click Count (1)
Back to Top