mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-30 19:20:07 +00:00
AMF3 refactorings
AMF3 editor in GUI for PlaceObject4
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.jpexs.decompiler.flash;
|
||||
|
||||
import com.jpexs.decompiler.flash.amf.amf3.Amf3OutputStream;
|
||||
import com.jpexs.decompiler.flash.amf.amf3.Amf3Value;
|
||||
import com.jpexs.decompiler.flash.amf.amf3.NoSerializerExistsException;
|
||||
import com.jpexs.decompiler.flash.amf.amf3.ObjectTypeSerializeHandler;
|
||||
import com.jpexs.decompiler.flash.configuration.Configuration;
|
||||
@@ -1962,9 +1963,9 @@ public class SWFOutputStream extends OutputStream {
|
||||
* @throws IOException
|
||||
* @throws NoSerializerExistsException
|
||||
*/
|
||||
public void writeAmf3Object(Object value, Map<String, ObjectTypeSerializeHandler> serializers) throws IOException, NoSerializerExistsException {
|
||||
public void writeAmf3Object(Amf3Value value, Map<String, ObjectTypeSerializeHandler> serializers) throws IOException, NoSerializerExistsException {
|
||||
Amf3OutputStream ao = new Amf3OutputStream(os);
|
||||
ao.writeValue(value, serializers);
|
||||
ao.writeValue(value.getValue(), serializers);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1975,7 +1976,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* @throws IOException
|
||||
* @throws NoSerializerExistsException
|
||||
*/
|
||||
public void writeAmf3Object(Object value) throws IOException, NoSerializerExistsException {
|
||||
public void writeAmf3Object(Amf3Value value) throws IOException, NoSerializerExistsException {
|
||||
writeAmf3Object(value, new HashMap<>());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user