AMF3 refactorings

AMF3 editor in GUI for PlaceObject4
This commit is contained in:
Jindra Petřík
2016-07-20 22:16:45 +02:00
parent 0d8e621a17
commit 1c9e485dca
23 changed files with 334 additions and 17 deletions

View File

@@ -119,6 +119,7 @@ import com.jpexs.decompiler.flash.action.swf7.ActionImplementsOp;
import com.jpexs.decompiler.flash.action.swf7.ActionThrow;
import com.jpexs.decompiler.flash.action.swf7.ActionTry;
import com.jpexs.decompiler.flash.amf.amf3.Amf3InputStream;
import com.jpexs.decompiler.flash.amf.amf3.Amf3Value;
import com.jpexs.decompiler.flash.amf.amf3.NoSerializerExistsException;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.dumpview.DumpInfo;
@@ -767,13 +768,13 @@ public class SWFInputStream implements AutoCloseable {
* @return
* @throws IOException
*/
public Object readAmf3Object(String name) throws IOException {
public Amf3Value readAmf3Object(String name) throws IOException {
Amf3InputStream ai = new Amf3InputStream(is);
ai.dumpInfo = this.dumpInfo;
try {
return ai.readValue("amfData");
return new Amf3Value(ai.readValue("amfData"));
} catch (NoSerializerExistsException nse) {
return nse.getIncompleteData();
return new Amf3Value(nse.getIncompleteData());
}
}