Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for deserialize (0.22 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ModelProcessor.java

         * returns.
         *
         * @param request The reader request to deserialize the model, must not be {@code null}.
         * @return The deserialized model, never {@code null}.
         * @throws IOException If the model could not be deserialized.
         * @throws XmlReaderException If the input format could not be parsed.
         */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  2. samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java

        Request request = new Request.Builder()
            .url(ENDPOINT)
            .build();
    
        // Execute the request and retrieve the response.
        try (Response response = client.newCall(request).execute()) {
          // Deserialize HTTP response to concrete type.
          ResponseBody body = response.body();
          List<Contributor> contributors = CONTRIBUTORS_JSON_ADAPTER.fromJson(body.source());
    
          // Sort list by the most contributions.
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  3. cmd/xl-storage-meta-inline.go

    		if err != nil {
    			return keys, err
    		}
    	}
    	return keys, nil
    }
    
    // serialize will serialize the provided keys and values.
    // The function will panic if keys/value slices aren't of equal length.
    // Payload size can give an indication of expected payload size.
    // If plSize is <= 0 it will be calculated.
    func (x *xlMetaInlineData) serialize(plSize int, keys [][]byte, vals [][]byte) {
    	if len(keys) != len(vals) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/cni-watcher_test.go

    		types.MergePatchType, labelsPatch, metav1.PatchOptions{})
    	assert.NoError(t, err)
    
    	client.RunAndWait(ctx.Done())
    
    	payload, _ := json.Marshal(valid)
    
    	// serialize our fake plugin event
    	addEvent, err := processAddEvent(payload)
    	assert.Equal(t, err, nil)
    
    	// Push it thru the handler
    	pluginServer.ReconcileCNIAddEvent(ctx, addEvent)
    
    	waitForMockCalls()
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 21:29:40 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/io/SerializeUtilTest.java

        /**
         * @throws Exception
         */
        public void testSerialize() throws Exception {
            final String[] a = new String[] { "1", "2" };
            final String[] b = (String[]) SerializeUtil.serialize(a);
            assertEquals("1", b.length, a.length);
            assertEquals("2", "1", b[0]);
            assertEquals("3", "2", b[1]);
        }
    
        /**
         * @throws Exception
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableEnumSet.java

      private void readObject(ObjectInputStream stream) throws InvalidObjectException {
        throw new InvalidObjectException("Use SerializedForm");
      }
    
      /*
       * This class is used to serialize ImmutableEnumSet instances.
       */
      @J2ktIncompatible // serialization
      private static class EnumSerializedForm<E extends Enum<E>> implements Serializable {
        final EnumSet<E> delegate;
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/io/SerializeUtil.java

        /**
         * オブジェクトをシリアライズできるかテストします。
         *
         * @param obj
         *            シリアライズ対象のオブジェクト。{@literal null}であってはいけません
         * @return シリアライズして復元したオブジェクト
         */
        public static Object serialize(final Object obj) {
            assertArgumentNotNull("obj", obj);
    
            final byte[] binary = fromObjectToBinary(obj);
            return fromBinaryToObject(binary);
        }
    
        /**
         * オブジェクトをbyteの配列に変換します。
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableEnumSet.java

      private void readObject(ObjectInputStream stream) throws InvalidObjectException {
        throw new InvalidObjectException("Use SerializedForm");
      }
    
      /*
       * This class is used to serialize ImmutableEnumSet instances.
       */
      @J2ktIncompatible // serialization
      private static class EnumSerializedForm<E extends Enum<E>> implements Serializable {
        final EnumSet<E> delegate;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  9. common-protos/k8s.io/apimachinery/pkg/runtime/generated.proto

      optional bytes raw = 2;
    
      // ContentEncoding is encoding used to encode 'Raw' data.
      // Unspecified means no encoding.
      optional string contentEncoding = 3;
    
      // ContentType  is serialization method used to serialize 'Raw'.
      // Unspecified means ContentTypeJSON.
      optional string contentType = 4;
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

         * @throws Exception
         */
        @Test
        public void testSerialize() throws Exception {
            list.addLast("1");
            list.addLast("2");
            list.addLast("3");
            assertThat(SerializeUtil.serialize(list), is(notNullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testSet() throws Exception {
            list.addLast("1");
            list.addLast("2");
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.3K bytes
    - Viewed (0)
Back to top