package de.uxnr.amf.v0.type;

import java.io.DataInputStream;
import java.io.IOException;

import de.uxnr.amf.AMF_Context;
import de.uxnr.amf.AMF_Type;
import de.uxnr.amf.v3.AMF3_Type;

public class AVMPlusObject extends EmptyType {
	@Override
	public AMF_Type read(AMF_Context context, DataInputStream input) throws IOException {
		return AMF3_Type.readType(context, input);
	}
}

@@ -55,16 +55,49 @@
 Stream;%0A
+import java.io.DataOutputStream;%0A
 import j
@@ -178,16 +178,49 @@
 F_Type;%0A
+import de.uxnr.amf.v0.AMF0_Type;%0A
 import d
@@ -284,19 +284,206 @@
 nds 
-EmptyType %7B
+AMF0_Type %7B%0A%09private AMF3_Type value = null;%0A%0A%09@Override%0A%09public void write(AMF_Context context, DataOutputStream output) throws IOException %7B%0A%09%09AMF3_Type.writeType(context, output, this.value);%0A%09%7D%0A
 %0A%09@O
@@ -583,14 +583,20 @@
 %7B%0A%09%09
-return
+this.value =
  AMF
@@ -627,14 +627,143 @@
  input);
+%0A%0A%09%09return this;%0A%09%7D%0A%0A%09public void set(AMF3_Type value) %7B%0A%09%09this.value = value;%0A%09%7D%0A%0A%09public AMF3_Type get() %7B%0A%09%09return this.value;
 %0A%09%7D%0A%7D%0A

Store AMF3_Type inside AVMPlusObject to keep complete object tree valid