Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 125 for serializeTo (0.36 seconds)

  1. src/main/java/org/codelibs/fess/crawler/serializer/DataSerializer.java

    import com.esotericsoftware.kryo.serializers.CollectionSerializer;
    import com.esotericsoftware.kryo.serializers.MapSerializer;
    
    /**
     * A serializer class for handling object serialization and deserialization.
     * <p>
     * This class provides serialization capabilities using different serializers,
     * currently supporting Kryo and JavaBin serialization formats. The serializer
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Jan 10 01:54:09 GMT 2026
    - 10.5K bytes
    - Click Count (3)
  2. src/test/java/org/codelibs/fess/crawler/serializer/DataSerializerTest.java

            String original = "Hello, World!";
    
            byte[] serialized = serializer.fromObjectToBinary(original);
            assertNotNull(serialized, "Serialized data should not be null");
            assertTrue("Serialized data should not be empty", serialized.length > 0);
    
            Object deserialized = serializer.fromBinaryToObject(serialized);
            assertNotNull(deserialized, "Deserialized object should not be null");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 21.6K bytes
    - Click Count (0)
  3. architecture/standards/0002-avoid-using-java-serialization.md

    * Existing usages of Serializer outside of this infrastructure should be migrated to use it.
    * Existing usages of Java serialization should be migrated to use it.
    * It is ok for Serializer to be used as a replacement for Java serialization as a migration step.
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 05 14:05:45 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  4. docs/en/docs/advanced/response-directly.md

    /// tip
    
    You will normally have much better performance using a [Response Model](../tutorial/response-model.md) than returning a `JSONResponse` directly, as that way it serializes the data using Pydantic, in Rust.
    
    ///
    
    ## Return a `Response` { #return-a-response }
    
    You can return a `Response` or any sub-class of it.
    
    /// info
    
    `JSONResponse` itself is a sub-class of `Response`.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/io/SerializeUtil.java

            return ObjectInputFilter.Status.REJECTED;
        };
    
        /**
         * Tests if the object can be serialized.
         *
         * @param obj the object to be serialized (must not be {@literal null})
         * @return the deserialized object
         */
        public static Object serialize(final Object obj) {
            assertArgumentNotNull("obj", obj);
    
            final byte[] binary = fromObjectToBinary(obj);
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  6. fastapi/responses.py

        category=FastAPIDeprecationWarning,
        stacklevel=2,
    )
    class UJSONResponse(JSONResponse):
        """JSON response using the ujson library to serialize data to JSON.
    
        **Deprecated**: `UJSONResponse` is deprecated. FastAPI now serializes data
        directly to JSON bytes via Pydantic when a return type or response model is
        set, which is faster and doesn't need a custom response class.
    
        Read more in the
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  7. fastapi/routing.py

                raise ResponseValidationError(
                    errors=errors,
                    body=response_content,
                    endpoint_ctx=ctx,
                )
            serializer = field.serialize_json if dump_json else field.serialize
            return serializer(
                value,
                include=include,
                exclude=exclude,
                by_alias=by_alias,
                exclude_unset=exclude_unset,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/Serialization.java

       * concurrent maps whose content may change while the method is running.
       *
       * <p>The serialized output consists of the number of entries, first key, first value, second key,
       * second value, and so on.
       */
      static <K extends @Nullable Object, V extends @Nullable Object> void writeMap(
          Map<K, V> map, ObjectOutputStream stream) throws IOException {
        stream.writeInt(map.size());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/Serialization.java

       * concurrent maps whose content may change while the method is running.
       *
       * <p>The serialized output consists of the number of entries, first key, first value, second key,
       * second value, and so on.
       */
      static <K extends @Nullable Object, V extends @Nullable Object> void writeMap(
          Map<K, V> map, ObjectOutputStream stream) throws IOException {
        stream.writeInt(map.size());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/server-sent-events.md

    If you declare the return type as `AsyncIterable[Item]`, FastAPI will use it to **validate**, **document**, and **serialize** the data using Pydantic.
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[10:12,23] *}
    
    /// tip
    
    As Pydantic will serialize it in the **Rust** side, you will get much higher **performance** than if you don't declare a return type.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.6K bytes
    - Click Count (0)
Back to Top