mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 13:30:46 +00:00
Fix missing javadoc parameters, throw tags,...
This commit is contained in:
@@ -202,7 +202,7 @@ public class DecompilerPool {
|
||||
* @param src ASM source
|
||||
* @param actions Actions
|
||||
* @return Highlighted text
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public HighlightedText decompile(ASMSource src, ActionList actions) throws InterruptedException {
|
||||
Future<HighlightedText> future = submitTask(src, actions, null);
|
||||
@@ -234,7 +234,7 @@ public class DecompilerPool {
|
||||
* @param abcIndex ABC indexing
|
||||
* @param pack Script pack
|
||||
* @return Highlighted text
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public HighlightedText decompile(AbcIndexing abcIndex, ScriptPack pack) throws InterruptedException {
|
||||
Future<HighlightedText> future = submitTask(abcIndex, pack, null);
|
||||
@@ -264,7 +264,7 @@ public class DecompilerPool {
|
||||
/**
|
||||
* Shuts down the pool.
|
||||
*
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void shutdown() throws InterruptedException {
|
||||
executor.shutdown();
|
||||
|
||||
@@ -212,7 +212,7 @@ public class OpenableSourceInfo {
|
||||
* @param noCheck Whether to check the bundle
|
||||
* @param searchMode Search mode
|
||||
* @return Bundle or null
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public Bundle getBundle(boolean noCheck, SearchMode searchMode) throws IOException {
|
||||
if (!isBundle()) {
|
||||
|
||||
@@ -49,8 +49,8 @@ public class RetryTask {
|
||||
/**
|
||||
* Runs the task.
|
||||
*
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void run() throws IOException, InterruptedException {
|
||||
boolean retry;
|
||||
|
||||
@@ -29,8 +29,8 @@ public interface RunnableIOEx {
|
||||
/**
|
||||
* Run method.
|
||||
*
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void run() throws IOException, InterruptedException;
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ public class SWC extends ZippedBundle {
|
||||
* Constructs SWC from input stream.
|
||||
*
|
||||
* @param is Input stream
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public SWC(InputStream is) throws IOException {
|
||||
super(is);
|
||||
@@ -48,7 +48,7 @@ public class SWC extends ZippedBundle {
|
||||
* Constructs SWC from file.
|
||||
*
|
||||
* @param filename File
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public SWC(File filename) throws IOException {
|
||||
super(filename);
|
||||
@@ -59,7 +59,7 @@ public class SWC extends ZippedBundle {
|
||||
*
|
||||
* @param is Input stream
|
||||
* @param filename File
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
protected void initBundle(InputStream is, File filename) throws IOException {
|
||||
|
||||
@@ -164,7 +164,6 @@ import com.jpexs.decompiler.flash.xfl.FLAVersion;
|
||||
import com.jpexs.decompiler.flash.xfl.XFLConverter;
|
||||
import com.jpexs.decompiler.flash.xfl.XFLExportSettings;
|
||||
import com.jpexs.decompiler.graph.DottedChain;
|
||||
import com.jpexs.decompiler.graph.Graph;
|
||||
import com.jpexs.decompiler.graph.GraphSourceItem;
|
||||
import com.jpexs.decompiler.graph.GraphSourceItemContainer;
|
||||
import com.jpexs.decompiler.graph.GraphTargetItem;
|
||||
@@ -662,7 +661,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
/**
|
||||
* Sets main GFX exporterinfo tag
|
||||
*
|
||||
* @param exporterInfo
|
||||
* @param exporterInfo ExporterInfo
|
||||
*/
|
||||
public void setExporterInfo(ExporterInfo exporterInfo) {
|
||||
this.exporterInfo = exporterInfo;
|
||||
@@ -671,7 +670,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
/**
|
||||
* Gets main GFX exporterinfo tag
|
||||
*
|
||||
* @return
|
||||
* @return ExporterInfo
|
||||
*/
|
||||
public ExporterInfo getExporterInfo() {
|
||||
return exporterInfo;
|
||||
@@ -780,8 +779,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
/**
|
||||
* Init main AbcIndexes of playerGlobal and airGlobal
|
||||
*
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public static void initPlayer() throws IOException, InterruptedException {
|
||||
if (playerGlobalAbcIndex == null) {
|
||||
@@ -1727,7 +1726,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param os OutputStream
|
||||
* @param gfx GFX
|
||||
* @param includeImported Include imported characters
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void saveTo(OutputStream os, boolean gfx, boolean includeImported) throws IOException {
|
||||
checkCharset();
|
||||
@@ -1845,7 +1844,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
*
|
||||
* @param includeImported Include imported characterss
|
||||
* @return Byte array
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private byte[] saveToByteArray(boolean includeImported) throws IOException {
|
||||
return saveToByteArray(gfx, includeImported);
|
||||
@@ -1857,7 +1856,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param gfx GFX
|
||||
* @param includeImported Include imported characterss
|
||||
* @return Byte array
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private byte[] saveToByteArray(boolean gfx, boolean includeImported) throws IOException {
|
||||
byte[] data;
|
||||
@@ -1968,8 +1967,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
*
|
||||
* @param is Stream to read SWF from
|
||||
* @param parallelRead Use parallel threads?
|
||||
* @throws java.io.IOException
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public SWF(InputStream is, boolean parallelRead) throws IOException, InterruptedException {
|
||||
this(is, null, null, null, parallelRead, false, true);
|
||||
@@ -1982,8 +1981,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param parallelRead Use parallel threads?
|
||||
* @param charset Charset for SWFs with version 5 or lower (they do not use
|
||||
* unicode)
|
||||
* @throws java.io.IOException
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public SWF(InputStream is, boolean parallelRead, String charset) throws IOException, InterruptedException {
|
||||
this(is, null, null, null, parallelRead, false, true, charset);
|
||||
@@ -1995,8 +1994,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param is Stream to read SWF from
|
||||
* @param parallelRead Use parallel threads?
|
||||
* @param lazy Do not parse all data, load it as necessary.
|
||||
* @throws java.io.IOException
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public SWF(InputStream is, boolean parallelRead, boolean lazy) throws IOException, InterruptedException {
|
||||
this(is, null, null, null, parallelRead, false, lazy);
|
||||
@@ -2010,8 +2009,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param lazy Do not parse all data, load it as necessary.
|
||||
* @param charset Charset for SWFs with version 5 or lower (they do not use
|
||||
* unicode)
|
||||
* @throws java.io.IOException
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public SWF(InputStream is, boolean parallelRead, boolean lazy, String charset) throws IOException, InterruptedException {
|
||||
this(is, null, null, null, parallelRead, false, lazy, charset);
|
||||
@@ -2024,8 +2023,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param file Path to the file
|
||||
* @param fileTitle Title of the SWF
|
||||
* @param parallelRead Use parallel threads?
|
||||
* @throws java.io.IOException
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public SWF(InputStream is, String file, String fileTitle, boolean parallelRead) throws IOException, InterruptedException {
|
||||
this(is, file, fileTitle, null, parallelRead, false, true);
|
||||
@@ -2040,8 +2039,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param parallelRead Use parallel threads?
|
||||
* @param charset Charset for SWFs with version 5 or lower (they do not use
|
||||
* unicode)
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public SWF(InputStream is, String file, String fileTitle, boolean parallelRead, String charset) throws IOException, InterruptedException {
|
||||
this(is, file, fileTitle, null, parallelRead, false, true, charset);
|
||||
@@ -2066,8 +2065,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param parallelRead Use parallel threads?
|
||||
* @param charset Charset for SWFs with version 5 or lower (they do not use
|
||||
* unicode)
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public SWF(InputStream is, ProgressListener listener, boolean parallelRead, String charset) throws IOException, InterruptedException {
|
||||
this(is, null, null, listener, parallelRead, false, true, charset);
|
||||
@@ -2081,8 +2080,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param fileTitle Title of the SWF
|
||||
* @param listener Progress listener
|
||||
* @param parallelRead Use parallel threads?
|
||||
* @throws java.io.IOException
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public SWF(InputStream is, String file, String fileTitle, ProgressListener listener, boolean parallelRead) throws IOException, InterruptedException {
|
||||
this(is, file, fileTitle, listener, parallelRead, false, true);
|
||||
@@ -2098,8 +2097,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param parallelRead Use parallel threads?
|
||||
* @param charset Charset for SWFs with version 5 or lower (they do not use
|
||||
* unicode)
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public SWF(InputStream is, String file, String fileTitle, ProgressListener listener, boolean parallelRead, String charset) throws IOException, InterruptedException {
|
||||
this(is, file, fileTitle, listener, parallelRead, false, true, charset);
|
||||
@@ -2109,7 +2108,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* Constructs SWF from stream - Faster constructor to check SWF only.
|
||||
*
|
||||
* @param is Stream to read SWF from
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public SWF(InputStream is) throws IOException {
|
||||
decompress(is, new NulStream(), true);
|
||||
@@ -2127,8 +2126,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param lazy Do not parse all data, load it as necessary.
|
||||
* @param charset Charset for SWFs with version 5 or lower (they do not use
|
||||
* unicode)
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public SWF(InputStream is, String file, String fileTitle, ProgressListener listener, boolean parallelRead, boolean checkOnly, boolean lazy, String charset) throws IOException, InterruptedException {
|
||||
this(is, file, fileTitle, listener, parallelRead, checkOnly, lazy, null, charset, true);
|
||||
@@ -2144,8 +2143,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param parallelRead Use parallel threads?
|
||||
* @param checkOnly Check only file validity
|
||||
* @param lazy Do not parse all data, load it as necessary.
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public SWF(InputStream is, String file, String fileTitle, ProgressListener listener, boolean parallelRead, boolean checkOnly, boolean lazy) throws IOException, InterruptedException {
|
||||
this(is, file, fileTitle, listener, parallelRead, checkOnly, lazy, null, Charset.defaultCharset().name(), true);
|
||||
@@ -2162,8 +2161,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param checkOnly Check only file validity
|
||||
* @param lazy Do not parse all data, load it as necessary.
|
||||
* @param resolver URL resolver for importAssets/2 tags
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public SWF(InputStream is, String file, String fileTitle, ProgressListener listener, boolean parallelRead, boolean checkOnly, boolean lazy, UrlResolver resolver) throws IOException, InterruptedException {
|
||||
this(is, file, fileTitle, listener, parallelRead, checkOnly, lazy, resolver, Charset.defaultCharset().name(), true);
|
||||
@@ -2182,8 +2181,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param resolver URL resolver for importAssets/2 tags
|
||||
* @param charset Charset for SWFs with version 5 or lower (they do not use
|
||||
* unicode)
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public SWF(InputStream is, String file, String fileTitle, ProgressListener listener, boolean parallelRead, boolean checkOnly, boolean lazy, UrlResolver resolver, String charset) throws IOException, InterruptedException {
|
||||
this(is, file, fileTitle, listener, parallelRead, checkOnly, lazy, resolver, charset, true);
|
||||
@@ -2718,7 +2717,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param is InputStream
|
||||
* @param os OutputStream
|
||||
* @return True on success
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public static boolean encrypt(InputStream is, OutputStream os) throws IOException {
|
||||
byte[] hdr = new byte[8];
|
||||
@@ -2747,7 +2746,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param is InputStream
|
||||
* @param os OutputStream
|
||||
* @return True on success
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public static boolean decrypt(InputStream is, OutputStream os) throws IOException {
|
||||
byte[] hdr = new byte[8];
|
||||
@@ -2784,7 +2783,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param os OutputStream
|
||||
* @param lzmaProperties LZMA properties
|
||||
* @param fileSize File size
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private static void decodeLZMAStream(InputStream is, OutputStream os, byte[] lzmaProperties, long fileSize) throws IOException {
|
||||
Decoder decoder = new Decoder();
|
||||
@@ -2801,7 +2800,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
*
|
||||
* @param headerData First 8 bytes of the file
|
||||
* @return SWF header
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public static SWFHeader decodeHeader(byte[] headerData) throws IOException {
|
||||
String signature = new String(headerData, 0, 3, Utf8Helper.charset);
|
||||
@@ -2846,7 +2845,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param allowUncompressed When true, it will fail when file is not
|
||||
* compressed.
|
||||
* @return SWF header
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private static SWFHeader decompress(InputStream is, OutputStream os, boolean allowUncompressed) throws IOException {
|
||||
|
||||
@@ -2994,7 +2993,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
*
|
||||
* @param classNames List of class names
|
||||
* @return List of ScriptPacks
|
||||
* @throws Exception
|
||||
* @throws Exception On error
|
||||
*/
|
||||
public List<ScriptPack> getScriptPacksByClassNames(List<String> classNames) throws Exception {
|
||||
Set<ScriptPack> resultSet = new HashSet<>();
|
||||
@@ -3123,7 +3122,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param parallel Use parallel threads?
|
||||
* @param evl Event listener
|
||||
* @return List of exported files
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public List<File> exportActionScript(AbortRetryIgnoreHandler handler, String outdir, ScriptExportSettings exportSettings, boolean parallel, EventListener evl) throws IOException {
|
||||
return exportActionScript(handler, outdir, null, exportSettings, parallel, evl, true, true);
|
||||
@@ -3141,7 +3140,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param as2 Export AS1/2
|
||||
* @param as3 Export AS3
|
||||
* @return List of exported files
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public List<File> exportActionScript(AbortRetryIgnoreHandler handler, String outdir, List<ScriptPack> as3scripts, ScriptExportSettings exportSettings, boolean parallel, EventListener evl, boolean as2, boolean as3) throws IOException {
|
||||
List<File> ret = new ArrayList<>();
|
||||
@@ -3468,7 +3467,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param os OutputStream
|
||||
* @param val Value
|
||||
* @param size Size
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private static void writeLE(OutputStream os, long val, int size) throws IOException {
|
||||
for (int i = 0; i < size; i++) {
|
||||
@@ -3485,7 +3484,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param soundSize True = 16 bit, false = 8b bit.
|
||||
* @param soundType True = stereo, false = mono
|
||||
* @param data PCM data
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public static void createWavFromPcmData(OutputStream fos, int soundRateHz, boolean soundSize, boolean soundType, byte[] data) throws IOException {
|
||||
ByteArrayOutputStream subChunk1Data = new ByteArrayOutputStream();
|
||||
@@ -3557,7 +3556,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param fswf SWF
|
||||
* @param library Set of characterIds
|
||||
* @param fos OutputStream
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public static void libraryToHtmlCanvas(SWF fswf, Set<Integer> library, OutputStream fos) throws IOException {
|
||||
for (int c : library) {
|
||||
@@ -3620,7 +3619,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param visited Visited
|
||||
* @param usageTypes Usage types
|
||||
* @param path Path
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
private static void getVariables(ConstantPool constantPool, BaseLocalData localData, TranslateStack stack, List<GraphTargetItem> output, ActionGraphSource code, int ip, List<MyEntry<DirectValueActionItem, ConstantPool>> variables, List<GraphSourceItem> functions, HashMap<DirectValueActionItem, ConstantPool> strings, List<Integer> visited, HashMap<DirectValueActionItem, String> usageTypes, String path) throws InterruptedException {
|
||||
ActionLocalData aLocalData = (ActionLocalData) localData;
|
||||
@@ -3792,7 +3791,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param code Code
|
||||
* @param addr Address
|
||||
* @param path Path
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
private static void getVariables(boolean insideDoInitAction, List<MyEntry<DirectValueActionItem, ConstantPool>> variables, List<GraphSourceItem> functions, HashMap<DirectValueActionItem, ConstantPool> strings, HashMap<DirectValueActionItem, String> usageTypes, ActionGraphSource code, int addr, String path) throws InterruptedException {
|
||||
ActionLocalData localData = new ActionLocalData(null, insideDoInitAction, new HashMap<>() /*??*/);
|
||||
@@ -3811,7 +3810,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param src Source
|
||||
* @param path Path
|
||||
* @return List of variables
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
private List<MyEntry<DirectValueActionItem, ConstantPool>> getVariables(boolean insideDefineFunction1, List<MyEntry<DirectValueActionItem, ConstantPool>> variables, HashMap<ASMSource, ActionList> actionsMap, List<GraphSourceItem> functions, HashMap<DirectValueActionItem, ConstantPool> strings, HashMap<DirectValueActionItem, String> usageTypes, ASMSource src, String path) throws InterruptedException {
|
||||
List<MyEntry<DirectValueActionItem, ConstantPool>> ret = new ArrayList<>();
|
||||
@@ -3833,7 +3832,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param functions Functions
|
||||
* @param strings Strings
|
||||
* @param usageTypes Usage types
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
private void getVariables(boolean insideDefineFunction1, Iterable<Tag> tags, String path, List<MyEntry<DirectValueActionItem, ConstantPool>> variables, HashMap<ASMSource, ActionList> actionsMap, List<GraphSourceItem> functions, HashMap<DirectValueActionItem, ConstantPool> strings, HashMap<DirectValueActionItem, String> usageTypes) throws InterruptedException {
|
||||
List<String> processed = new ArrayList<>();
|
||||
@@ -3866,7 +3865,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param functions Functions
|
||||
* @param strings Strings
|
||||
* @param usageTypes Usage types
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
private void addVariable(boolean insideDefineFunction1, ASMSource asm, String path, List<String> processed, List<MyEntry<DirectValueActionItem, ConstantPool>> variables, HashMap<ASMSource, ActionList> actionsMap, List<GraphSourceItem> functions, HashMap<DirectValueActionItem, ConstantPool> strings, HashMap<DirectValueActionItem, String> usageTypes) throws InterruptedException {
|
||||
int pos = 1;
|
||||
@@ -3979,7 +3978,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
*
|
||||
* @param renameType Rename type
|
||||
* @return Number of changes
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public int deobfuscateIdentifiers(RenameType renameType) throws InterruptedException {
|
||||
FileAttributesTag fileAttributes = getFileAttributes();
|
||||
@@ -4000,7 +3999,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
*
|
||||
* @param identifier Identifier
|
||||
* @param newname New name
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void renameAS2Identifier(String identifier, String newname) throws InterruptedException {
|
||||
Map<DottedChain, DottedChain> selected = new HashMap<>();
|
||||
@@ -4013,7 +4012,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
*
|
||||
* @param renameType Rename type
|
||||
* @return Number of changes
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
private int deobfuscateAS2Identifiers(RenameType renameType) throws InterruptedException {
|
||||
return renameAS2Identifiers(renameType, null);
|
||||
@@ -4026,7 +4025,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param selected Preselected identifiers map. Can be null when no
|
||||
* preselected.
|
||||
* @return Number of changes
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
private int renameAS2Identifiers(RenameType renameType, Map<DottedChain, DottedChain> selected) throws InterruptedException {
|
||||
boolean wrongConstantIndices = false;
|
||||
@@ -4297,8 +4296,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param parallel Use parallel threads?
|
||||
* @param version FLA version
|
||||
* @param progressListener Progress listener
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void exportFla(AbortRetryIgnoreHandler handler, String outfile, String swfName, String generator, String generatorVerName, String generatorVersion, boolean parallel, FLAVersion version, ProgressListener progressListener) throws IOException, InterruptedException {
|
||||
XFLExportSettings settings = new XFLExportSettings();
|
||||
@@ -4318,8 +4317,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param parallel Use parallel threads?
|
||||
* @param version FLA version
|
||||
* @param progressListener Progress listener
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void exportXfl(AbortRetryIgnoreHandler handler, String outfile, String swfName, String generator, String generatorVerName, String generatorVersion, boolean parallel, FLAVersion version, ProgressListener progressListener) throws IOException, InterruptedException {
|
||||
XFLExportSettings settings = new XFLExportSettings();
|
||||
@@ -4340,8 +4339,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param version FLA version
|
||||
* @param settings Export settings
|
||||
* @param progressListener Progress listener
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void exportXfl(AbortRetryIgnoreHandler handler, String outfile, String swfName, String generator, String generatorVerName, String generatorVersion, boolean parallel, FLAVersion version, XFLExportSettings settings, ProgressListener progressListener) throws IOException, InterruptedException {
|
||||
new XFLConverter().convertSWF(handler, this, swfName, outfile, settings, generator, generatorVerName, generatorVersion, parallel, version, progressListener);
|
||||
@@ -4484,7 +4483,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
/**
|
||||
* Removes ASMSource from cache.
|
||||
*
|
||||
* @param src
|
||||
* @param src ASMSource
|
||||
*/
|
||||
public static void uncache(ASMSource src) {
|
||||
if (src != null) {
|
||||
@@ -4652,7 +4651,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param src ASMSource
|
||||
* @param listeners Disassembly listeners
|
||||
* @return ActionList
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public static ActionList getCachedActionList(ASMSource src, final List<DisassemblyListener> listeners) throws InterruptedException {
|
||||
synchronized (src) {
|
||||
@@ -4700,7 +4699,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param src ASMSource
|
||||
* @param actions ActionList
|
||||
* @return HighlightedText
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public static HighlightedText getCached(ASMSource src, ActionList actions) throws InterruptedException {
|
||||
SWF swf = src.getSwf();
|
||||
@@ -4721,7 +4720,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
*
|
||||
* @param pack ScriptPack
|
||||
* @return HighlightedText
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public static HighlightedText getCached(ScriptPack pack) throws InterruptedException {
|
||||
Openable openable = pack.getOpenable();
|
||||
@@ -4744,7 +4743,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param actions ActionList
|
||||
* @param listener Decompiled listeners
|
||||
* @return Future of HighlightedText
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public static Future<HighlightedText> getCachedFuture(ASMSource src, ActionList actions, ScriptDecompiledListener<HighlightedText> listener) throws InterruptedException {
|
||||
SWF swf = src.getSwf();
|
||||
@@ -4769,7 +4768,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param pack ScriptPack
|
||||
* @param listener Decompiled listeners
|
||||
* @return Future of HighlightedText
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public static Future<HighlightedText> getCachedFuture(ScriptPack pack, ScriptDecompiledListener<HighlightedText> listener) throws InterruptedException {
|
||||
Openable openable = pack.getOpenable();
|
||||
@@ -4829,8 +4828,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param colorTransform Color transform
|
||||
* @param backGroundColor Background color
|
||||
* @param zoom Zoom
|
||||
* @param canUseSmoothing
|
||||
* @return
|
||||
* @param canUseSmoothing Can use smoothing
|
||||
* @return Image
|
||||
*/
|
||||
public static SerializableImage frameToImageGet(Timeline timeline, int frame, int time, Point cursorPosition, int mouseButton, RECT displayRect, Matrix transformation, ColorTransform colorTransform, Color backGroundColor, double zoom, boolean canUseSmoothing) {
|
||||
if (timeline.getFrameCount() == 0) {
|
||||
@@ -4902,7 +4901,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param timeline Timeline
|
||||
* @param dependingChars Depending characters
|
||||
* @param listener Listener to call after removing each of character.
|
||||
* @return
|
||||
* @return True if modified
|
||||
*/
|
||||
private boolean removeTagWithDependenciesFromTimeline(Tag toRemove, Timeline timeline, Set<Integer> dependingChars, TagRemoveListener listener) {
|
||||
Map<Integer, Integer> stage = new HashMap<>();
|
||||
@@ -5317,7 +5316,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* Deobfuscates SWF file.
|
||||
*
|
||||
* @param level Deobfuscation level
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void deobfuscate(DeobfuscationLevel level) throws InterruptedException {
|
||||
List<ABCContainerTag> atags = getAbcList();
|
||||
@@ -5348,7 +5347,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* Injects debugline and debugfile instructions to AS3 P-code (lines of
|
||||
* P-code).
|
||||
*
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void injectAS3PcodeDebugInfo() throws InterruptedException {
|
||||
injectAS3PcodeDebugInfo("main");
|
||||
@@ -5359,7 +5358,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* P-code).
|
||||
*
|
||||
* @param swfHash SWF identifier
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void injectAS3PcodeDebugInfo(String swfHash) throws InterruptedException {
|
||||
List<ScriptPack> packs = getAS3Packs();
|
||||
@@ -5381,7 +5380,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* Injects debugline and debugfile instructions to AS3 code.
|
||||
*
|
||||
* @param decompileDir Directory to set file information paths
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void injectAS3DebugInfo(File decompileDir) throws InterruptedException {
|
||||
injectAS3DebugInfo(decompileDir, "main");
|
||||
@@ -5392,7 +5391,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
*
|
||||
* @param decompileDir Directory to set file information paths
|
||||
* @param swfHash SWF identifier
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void injectAS3DebugInfo(File decompileDir, String swfHash) throws InterruptedException {
|
||||
List<ScriptPack> packs = getAS3Packs();
|
||||
@@ -5420,7 +5419,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param injectAS3Code Modify AS3 code with debugfile / debugline ?
|
||||
* @param decompileDir Directory to virtual decompile (will affect
|
||||
* debugfile)
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void enableDebugging(boolean injectAS3Code, File decompileDir) throws InterruptedException {
|
||||
enableDebugging(injectAS3Code, decompileDir, false);
|
||||
@@ -5429,7 +5428,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
/**
|
||||
* Enables debugging. Adds tags to enable debugging.
|
||||
*
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void enableDebugging() throws InterruptedException {
|
||||
enableDebugging(false, null, false);
|
||||
@@ -5443,7 +5442,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param decompileDir Directory to virtual decompile (will affect
|
||||
* debugfile)
|
||||
* @param telemetry Enable telemetry info?
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void enableDebugging(boolean injectAS3Code, File decompileDir, boolean telemetry) throws InterruptedException {
|
||||
enableDebugging(injectAS3Code, decompileDir, telemetry, false);
|
||||
@@ -5473,7 +5472,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param telemetry Enable telemetry info?
|
||||
* @param pcodeLevel inject Pcode lines instead of decompiled lines
|
||||
* @param swfHash SWF identifier
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void enableDebugging(boolean injectAS3Code, File decompileDir, boolean telemetry, boolean pcodeLevel, String swfHash) throws InterruptedException {
|
||||
|
||||
@@ -5565,8 +5564,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param file SWD file
|
||||
* @param breakpoints Breakpoints - map of script name to list of lines
|
||||
* @return True on success
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public boolean generatePCodeSwdFile(File file, Map<String, Set<Integer>> breakpoints) throws IOException, InterruptedException {
|
||||
return generatePCodeSwdFile(file, breakpoints, "main");
|
||||
@@ -5579,8 +5578,8 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param breakpoints Breakpoints - map of script name to list of lines
|
||||
* @param swfHash SWF identifier
|
||||
* @return True on success
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public boolean generatePCodeSwdFile(File file, Map<String, Set<Integer>> breakpoints, String swfHash) throws IOException, InterruptedException {
|
||||
DebugIDTag dit = getDebugId();
|
||||
@@ -5669,7 +5668,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param file SWD file
|
||||
* @param breakpoints Breakpoints - map of script name to list of lines
|
||||
* @return True on success
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public boolean generateSwdFile(File file, Map<String, Set<Integer>> breakpoints) throws IOException {
|
||||
return generateSwdFile(file, breakpoints, "main");
|
||||
@@ -5682,7 +5681,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
* @param breakpoints Breakpoints - map of script name to list of lines
|
||||
* @param swfHash SWF identifier
|
||||
* @return True on success
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public boolean generateSwdFile(File file, Map<String, Set<Integer>> breakpoints, String swfHash) throws IOException {
|
||||
DebugIDTag dit = getDebugId();
|
||||
|
||||
@@ -433,7 +433,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param data SWF data
|
||||
* @param startingPos Starting position in bytes in the stream
|
||||
* @param limit Maximum limit of reading
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public SWFInputStream(SWF swf, byte[] data, long startingPos, int limit) throws IOException {
|
||||
this.swf = swf;
|
||||
@@ -448,7 +448,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param swf SWF to read
|
||||
* @param data SWF data
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public SWFInputStream(SWF swf, byte[] data) throws IOException {
|
||||
this(swf, data, 0L, data.length);
|
||||
@@ -490,7 +490,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Sets position in bytes in the stream
|
||||
*
|
||||
* @param pos Number of bytes
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void seek(long pos) throws IOException {
|
||||
is.seek(pos - startingPos);
|
||||
@@ -501,7 +501,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @param type Type
|
||||
* @return
|
||||
* @return Dump info
|
||||
*/
|
||||
private DumpInfo newDumpLevel(String name, String type) {
|
||||
return newDumpLevel(name, type, DumpInfoSpecialType.NONE, null);
|
||||
@@ -514,7 +514,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param type Type
|
||||
* @param specialType Special type
|
||||
* @param specialValue Special value
|
||||
* @return
|
||||
* @return Dump info
|
||||
*/
|
||||
private DumpInfo newDumpLevel(String name, String type, DumpInfoSpecialType specialType, Object specialValue) {
|
||||
if (dumpInfo != null) {
|
||||
@@ -574,7 +574,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Reads one byte from the stream.
|
||||
*
|
||||
* @return byte
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private int readEx() throws IOException {
|
||||
bitPos = 0;
|
||||
@@ -592,8 +592,8 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Reads one byte from the stream.
|
||||
*
|
||||
* @return Byte
|
||||
* @throws IOException
|
||||
* @throws EndOfStreamException
|
||||
* @throws IOException On I/O error
|
||||
* @throws EndOfStreamException On end of stream
|
||||
*/
|
||||
private int readNoBitReset() throws IOException, EndOfStreamException {
|
||||
int r = is.read();
|
||||
@@ -610,7 +610,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return UI8 value or -1 on error
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public int readUI8(String name) throws IOException {
|
||||
newDumpLevel(name, "UI8");
|
||||
@@ -624,7 +624,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return String value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public String readString(String name) throws IOException {
|
||||
newDumpLevel(name, "string");
|
||||
@@ -648,7 +648,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return String value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public String readNetString(String name) throws IOException {
|
||||
newDumpLevel(name, "string");
|
||||
@@ -663,7 +663,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return UI32 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public long readUI32(String name) throws IOException {
|
||||
newDumpLevel(name, "UI32");
|
||||
@@ -676,7 +676,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Reads one UI32 (Unsigned 32bit integer) value from the stream.
|
||||
*
|
||||
* @return UI32 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private long readUI32Internal() throws IOException {
|
||||
return (readEx() + (readEx() << 8) + (readEx() << 16) + (readEx() << 24)) & 0xffffffffL;
|
||||
@@ -687,7 +687,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return UI16 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public int readUI16(String name) throws IOException {
|
||||
newDumpLevel(name, "UI16");
|
||||
@@ -700,7 +700,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Reads one UI16 (Unsigned 16bit integer) value from the stream.
|
||||
*
|
||||
* @return UI16 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private int readUI16Internal() throws IOException {
|
||||
return readEx() + (readEx() << 8);
|
||||
@@ -710,8 +710,8 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Reads one UI24 (Unsigned 24bit integer) value from the stream.
|
||||
*
|
||||
* @param name Name
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @return UI24 value
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public int readUI24(String name) throws IOException {
|
||||
newDumpLevel(name, "UI24");
|
||||
@@ -725,7 +725,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return SI32 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public long readSI32(String name) throws IOException {
|
||||
newDumpLevel(name, "SI32");
|
||||
@@ -738,7 +738,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Reads one SI32 (Signed 32bit integer) value from the stream.
|
||||
*
|
||||
* @return SI32 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private long readSI32Internal() throws IOException {
|
||||
long uval = readEx() + (readEx() << 8) + (readEx() << 16) + (readEx() << 24);
|
||||
@@ -753,7 +753,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return SI16 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public int readSI16(String name) throws IOException {
|
||||
newDumpLevel(name, "SI16");
|
||||
@@ -766,7 +766,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Reads one SI16 (Signed 16bit integer) value from the stream.
|
||||
*
|
||||
* @return SI16 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private int readSI16Internal() throws IOException {
|
||||
int uval = readEx() + (readEx() << 8);
|
||||
@@ -781,7 +781,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return SI8 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public int readSI8(String name) throws IOException {
|
||||
newDumpLevel(name, "SI8");
|
||||
@@ -794,7 +794,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Reads one SI8 (Signed 8bit integer) value from the stream.
|
||||
*
|
||||
* @return SI8 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public int readSI8Internal() throws IOException {
|
||||
int uval = readEx();
|
||||
@@ -809,7 +809,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return FIXED value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public double readFIXED(String name) throws IOException {
|
||||
newDumpLevel(name, "FIXED");
|
||||
@@ -824,7 +824,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return FIXED8 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public float readFIXED8(String name) throws IOException {
|
||||
newDumpLevel(name, "FIXED8");
|
||||
@@ -838,7 +838,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Reads long value from the stream.
|
||||
*
|
||||
* @return Long value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private long readLong() throws IOException {
|
||||
byte[] readBuffer = readBytesInternalEx(8);
|
||||
@@ -858,7 +858,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return DOUBLE value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public double readDOUBLE(String name) throws IOException {
|
||||
newDumpLevel(name, "DOUBLE");
|
||||
@@ -874,7 +874,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return FLOAT value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public float readFLOAT(String name) throws IOException {
|
||||
newDumpLevel(name, "FLOAT");
|
||||
@@ -893,7 +893,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return FLOAT16 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public float readFLOAT16(String name) throws IOException {
|
||||
newDumpLevel(name, "FLOAT16");
|
||||
@@ -912,7 +912,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param count Number of bytes to read
|
||||
* @param name Name
|
||||
* @return Array of read bytes
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public byte[] readBytesEx(long count, String name) throws IOException {
|
||||
if (count <= 0) {
|
||||
@@ -930,7 +930,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return AMF3 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public Amf3Value readAmf3Object(String name) throws IOException, NoSerializerExistsException {
|
||||
Amf3InputStream ai = new Amf3InputStream(is);
|
||||
@@ -945,7 +945,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param count Number of bytes to read
|
||||
* @param name Name
|
||||
* @return ByteArrayRange object
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public ByteArrayRange readByteRangeEx(long count, String name) throws IOException {
|
||||
return readByteRangeEx(count, name, DumpInfoSpecialType.NONE, null);
|
||||
@@ -959,7 +959,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param specialType Special type
|
||||
* @param specialValue Special value
|
||||
* @return ByteArrayRange object
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public ByteArrayRange readByteRangeEx(long count, String name, DumpInfoSpecialType specialType, Object specialValue) throws IOException {
|
||||
if (count <= 0) {
|
||||
@@ -982,7 +982,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param count Number of bytes to read
|
||||
* @return Array of read bytes
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private byte[] readBytesInternalEx(long count) throws IOException {
|
||||
if (count <= 0) {
|
||||
@@ -1003,7 +1003,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Skip bytes from the stream.
|
||||
*
|
||||
* @param count Number of bytes to skip
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void skipBytesEx(long count) throws IOException {
|
||||
if (count <= 0) {
|
||||
@@ -1024,7 +1024,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param count Number of bytes to skip
|
||||
* @param name Name
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void skipBytesEx(long count, String name) throws IOException {
|
||||
if (count <= 0) {
|
||||
@@ -1040,7 +1040,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Skip bytes from the stream.
|
||||
*
|
||||
* @param count Number of bytes to skip
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void skipBytes(long count) throws IOException {
|
||||
try {
|
||||
@@ -1056,7 +1056,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param count Number of bytes to read
|
||||
* @param name Name
|
||||
* @return Array of read bytes
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public byte[] readBytes(int count, String name) throws IOException {
|
||||
if (count <= 0) {
|
||||
@@ -1082,8 +1082,8 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param count Number of bytes to read
|
||||
* @param name Name
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @return Array of read bytes
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public byte[] readBytesZlib(long count, String name) throws IOException {
|
||||
if (count == 0) {
|
||||
@@ -1101,7 +1101,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param data Data
|
||||
* @return Uncompressed data
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public static byte[] uncompressByteArray(byte[] data) throws IOException {
|
||||
return uncompressByteArray(data, 0, data.length);
|
||||
@@ -1114,7 +1114,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param offset Offset
|
||||
* @param length Length
|
||||
* @return Uncompressed data
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public static byte[] uncompressByteArray(byte[] data, int offset, int length) throws IOException {
|
||||
InflaterInputStream dis = new InflaterInputStream(new ByteArrayInputStream(data, offset, length));
|
||||
@@ -1133,7 +1133,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return U32 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public long readEncodedU32(String name) throws IOException {
|
||||
newDumpLevel(name, "encodedU32");
|
||||
@@ -1168,7 +1168,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param nBits Number of bits which represent value
|
||||
* @param name Name
|
||||
* @return Unsigned value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public long readUB(int nBits, String name) throws IOException {
|
||||
if (nBits == 0) {
|
||||
@@ -1185,7 +1185,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param nBits Number of bits which represent value
|
||||
* @return Unsigned value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private long readUBInternal(int nBits) throws IOException {
|
||||
if (nBits == 0) {
|
||||
@@ -1215,7 +1215,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param nBits Number of bits which represent value
|
||||
* @param name Name
|
||||
* @return Signed value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public long readSB(int nBits, String name) throws IOException {
|
||||
if (nBits == 0) {
|
||||
@@ -1232,7 +1232,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param nBits Number of bits which represent value
|
||||
* @return Signed value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private long readSBInternal(int nBits) throws IOException {
|
||||
int uval = (int) readUBInternal(nBits);
|
||||
@@ -1249,7 +1249,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param nBits Number of bits which represent value
|
||||
* @param name Name
|
||||
* @return Fixed-point value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public float readFB(int nBits, String name) throws IOException {
|
||||
if (nBits == 0) {
|
||||
@@ -1267,7 +1267,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return RECT value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public RECT readRECT(String name) throws IOException {
|
||||
RECT ret = new RECT();
|
||||
@@ -1380,7 +1380,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Call.
|
||||
*
|
||||
* @return Tag
|
||||
* @throws Exception
|
||||
* @throws Exception On error
|
||||
*/
|
||||
@Override
|
||||
public Tag call() throws Exception {
|
||||
@@ -1410,8 +1410,8 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param parseTags Parse tags
|
||||
* @param lazy Lazy loading
|
||||
* @return List of tags
|
||||
* @throws IOException
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public List<Tag> readTagList(Timelined timelined, int level, boolean parallel, boolean skipUnusualTags, boolean parseTags, boolean lazy) throws IOException, InterruptedException {
|
||||
if (Thread.currentThread().isInterrupted()) {
|
||||
@@ -1510,7 +1510,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param lazy Lazy loading
|
||||
* @param logErrors Log errors
|
||||
* @return Tag
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public static Tag resolveTag(TagStub tag, int level, boolean parallel, boolean skipUnusualTags, boolean lazy, boolean logErrors) throws InterruptedException {
|
||||
Tag ret;
|
||||
@@ -1830,8 +1830,8 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param skipUnusualTags Skip unusual tags
|
||||
* @param lazy Lazy loading
|
||||
* @return Tag or null when End tag
|
||||
* @throws IOException
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public Tag readTag(Timelined timelined, int level, long pos, boolean resolve, boolean parallel, boolean skipUnusualTags, boolean lazy) throws IOException, InterruptedException {
|
||||
if (data == null) {
|
||||
@@ -1917,7 +1917,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Reads one Action from the stream.
|
||||
*
|
||||
* @return Action or null when ActionEndFlag or end of the stream
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public Action readAction() throws IOException {
|
||||
int actionCode;
|
||||
@@ -2159,7 +2159,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return MATRIX value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public MATRIX readMatrix(String name) throws IOException {
|
||||
MATRIX ret = new MATRIX();
|
||||
@@ -2192,7 +2192,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return CXFORMWITHALPHA value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public CXFORMWITHALPHA readCXFORMWITHALPHA(String name) throws IOException {
|
||||
CXFORMWITHALPHA ret = new CXFORMWITHALPHA();
|
||||
@@ -2223,7 +2223,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return CXFORM value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public CXFORM readCXFORM(String name) throws IOException {
|
||||
CXFORM ret = new CXFORM();
|
||||
@@ -2252,7 +2252,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return CLIPEVENTFLAGS value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public CLIPEVENTFLAGS readCLIPEVENTFLAGS(String name) throws IOException {
|
||||
CLIPEVENTFLAGS ret = new CLIPEVENTFLAGS();
|
||||
@@ -2290,9 +2290,9 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param swf SWF
|
||||
* @param tag Tag
|
||||
* @param name Name
|
||||
* @param parentClipActions
|
||||
* @param parentClipActions Parent clip actions
|
||||
* @return CLIPACTIONRECORD value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public CLIPACTIONRECORD readCLIPACTIONRECORD(SWF swf, Tag tag, String name, CLIPACTIONS parentClipActions) throws IOException {
|
||||
newDumpLevel(name, "CLIPACTIONRECORD");
|
||||
@@ -2311,7 +2311,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param tag Tag
|
||||
* @param name Name
|
||||
* @return CLIPACTIONS value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public CLIPACTIONS readCLIPACTIONS(SWF swf, Tag tag, String name) throws IOException {
|
||||
CLIPACTIONS ret = new CLIPACTIONS();
|
||||
@@ -2332,7 +2332,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return COLORMATRIXFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public COLORMATRIXFILTER readCOLORMATRIXFILTER(String name) throws IOException {
|
||||
COLORMATRIXFILTER ret = new COLORMATRIXFILTER();
|
||||
@@ -2350,7 +2350,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return RGBA value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public RGBA readRGBA(String name) throws IOException {
|
||||
RGBA ret = new RGBA();
|
||||
@@ -2368,7 +2368,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return RGBA value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public int readRGBAInt(String name) throws IOException {
|
||||
newDumpLevel(name, "RGBA");
|
||||
@@ -2385,7 +2385,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return ARGB value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public ARGB readARGB(String name) throws IOException {
|
||||
ARGB ret = new ARGB();
|
||||
@@ -2403,7 +2403,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return ARGB value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public int readARGBInt(String name) throws IOException {
|
||||
newDumpLevel(name, "ARGB");
|
||||
@@ -2420,7 +2420,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return RGB value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public RGB readRGB(String name) throws IOException {
|
||||
RGB ret = new RGB();
|
||||
@@ -2437,7 +2437,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return RGB value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public int readRGBInt(String name) throws IOException {
|
||||
newDumpLevel(name, "RGB");
|
||||
@@ -2454,7 +2454,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return CONVOLUTIONFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public CONVOLUTIONFILTER readCONVOLUTIONFILTER(String name) throws IOException {
|
||||
CONVOLUTIONFILTER ret = new CONVOLUTIONFILTER();
|
||||
@@ -2480,7 +2480,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return BLURFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public BLURFILTER readBLURFILTER(String name) throws IOException {
|
||||
BLURFILTER ret = new BLURFILTER();
|
||||
@@ -2498,7 +2498,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return DROPSHADOWFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DROPSHADOWFILTER readDROPSHADOWFILTER(String name) throws IOException {
|
||||
DROPSHADOWFILTER ret = new DROPSHADOWFILTER();
|
||||
@@ -2522,7 +2522,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return GLOWFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public GLOWFILTER readGLOWFILTER(String name) throws IOException {
|
||||
GLOWFILTER ret = new GLOWFILTER();
|
||||
@@ -2544,7 +2544,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return BEVELFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public BEVELFILTER readBEVELFILTER(String name) throws IOException {
|
||||
BEVELFILTER ret = new BEVELFILTER();
|
||||
@@ -2570,7 +2570,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return GRADIENTGLOWFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public GRADIENTGLOWFILTER readGRADIENTGLOWFILTER(String name) throws IOException {
|
||||
GRADIENTGLOWFILTER ret = new GRADIENTGLOWFILTER();
|
||||
@@ -2603,7 +2603,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return GRADIENTBEVELFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public GRADIENTBEVELFILTER readGRADIENTBEVELFILTER(String name) throws IOException {
|
||||
GRADIENTBEVELFILTER ret = new GRADIENTBEVELFILTER();
|
||||
@@ -2636,7 +2636,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return List of FILTER values
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public List<FILTER> readFILTERLIST(String name) throws IOException {
|
||||
newDumpLevel(name, "FILTERLIST");
|
||||
@@ -2654,7 +2654,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return FILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public FILTER readFILTER(String name) throws IOException {
|
||||
newDumpLevel(name, "FILTER");
|
||||
@@ -2697,7 +2697,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param buttonTag ButtonTag
|
||||
* @param name Name
|
||||
* @return List of BUTTONRECORD values
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public List<BUTTONRECORD> readBUTTONRECORDList(SWF swf, ButtonTag buttonTag, String name) throws IOException {
|
||||
List<BUTTONRECORD> ret = new ArrayList<>();
|
||||
@@ -2717,7 +2717,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param tag ButtonTag
|
||||
* @param name Name
|
||||
* @return BUTTONRECORD value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public BUTTONRECORD readBUTTONRECORD(SWF swf, ButtonTag tag, String name) throws IOException {
|
||||
BUTTONRECORD ret = new BUTTONRECORD(swf, tag);
|
||||
@@ -2760,7 +2760,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param tag Tag
|
||||
* @param name Name
|
||||
* @return List of BUTTONCONDACTION values
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public List<BUTTONCONDACTION> readBUTTONCONDACTIONList(SWF swf, Tag tag, String name) throws IOException {
|
||||
List<BUTTONCONDACTION> ret = new ArrayList<>();
|
||||
@@ -2781,7 +2781,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param tag Tag
|
||||
* @param name Name
|
||||
* @return BUTTONCONDACTION value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public BUTTONCONDACTION readBUTTONCONDACTION(SWF swf, Tag tag, String name) throws IOException {
|
||||
newDumpLevel(name, "BUTTONCONDACTION");
|
||||
@@ -2797,7 +2797,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2...
|
||||
* @param name Name
|
||||
* @return GRADRECORD value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public GRADRECORD readGRADRECORD(int shapeNum, String name) throws IOException {
|
||||
GRADRECORD ret = new GRADRECORD();
|
||||
@@ -2819,7 +2819,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2...
|
||||
* @param name Name
|
||||
* @return GRADIENT value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public GRADIENT readGRADIENT(int shapeNum, String name) throws IOException {
|
||||
GRADIENT ret = new GRADIENT();
|
||||
@@ -2842,7 +2842,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2...
|
||||
* @param name Name
|
||||
* @return FOCALGRADIENT value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public FOCALGRADIENT readFOCALGRADIENT(int shapeNum, String name) throws IOException {
|
||||
FOCALGRADIENT ret = new FOCALGRADIENT();
|
||||
@@ -2865,7 +2865,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2...
|
||||
* @param name Name
|
||||
* @return FILLSTYLE value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public FILLSTYLE readFILLSTYLE(int shapeNum, String name) throws IOException {
|
||||
FILLSTYLE ret = new FILLSTYLE();
|
||||
@@ -2909,7 +2909,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2...
|
||||
* @param name Name
|
||||
* @return FILLSTYLEARRAY value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public FILLSTYLEARRAY readFILLSTYLEARRAY(int shapeNum, String name) throws IOException {
|
||||
|
||||
@@ -2933,7 +2933,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2...
|
||||
* @param name Name
|
||||
* @return LINESTYLE value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public LINESTYLE readLINESTYLE(int shapeNum, String name) throws IOException {
|
||||
LINESTYLE ret = new LINESTYLE();
|
||||
@@ -2954,7 +2954,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2...
|
||||
* @param name Name
|
||||
* @return LINESTYLE2 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public LINESTYLE2 readLINESTYLE2(int shapeNum, String name) throws IOException {
|
||||
LINESTYLE2 ret = new LINESTYLE2();
|
||||
@@ -2987,7 +2987,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2...
|
||||
* @param name Name
|
||||
* @return LINESTYLEARRAY value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public LINESTYLEARRAY readLINESTYLEARRAY(int shapeNum, String name) throws IOException {
|
||||
LINESTYLEARRAY ret = new LINESTYLEARRAY();
|
||||
@@ -3018,7 +3018,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param lineBits Line bits
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2...
|
||||
* @return SHAPERECORD value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private SHAPERECORD readSHAPERECORD(int fillBits, int lineBits, int shapeNum, boolean morphShape, String name) throws IOException {
|
||||
SHAPERECORD ret;
|
||||
@@ -3103,7 +3103,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param morphShape Is this a morph shape
|
||||
* @param name Name
|
||||
* @return SHAPE value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public SHAPE readSHAPE(int shapeNum, boolean morphShape, String name) throws IOException {
|
||||
SHAPE ret = new SHAPE();
|
||||
@@ -3122,7 +3122,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param morphShape Is this a morph shape
|
||||
* @param name Name
|
||||
* @return SHAPEWITHSTYLE value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public SHAPEWITHSTYLE readSHAPEWITHSTYLE(int shapeNum, boolean morphShape, String name) throws IOException {
|
||||
SHAPEWITHSTYLE ret = new SHAPEWITHSTYLE();
|
||||
@@ -3143,7 +3143,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param fillBits Fill bits
|
||||
* @param lineBits Line bits
|
||||
* @return SHAPERECORDs array
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private List<SHAPERECORD> readSHAPERECORDS(int shapeNum, int fillBits, int lineBits, boolean morphShape, String name) throws IOException {
|
||||
List<SHAPERECORD> ret = new ArrayList<>();
|
||||
@@ -3170,7 +3170,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return SOUNDINFO value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public SOUNDINFO readSOUNDINFO(String name) throws IOException {
|
||||
SOUNDINFO ret = new SOUNDINFO();
|
||||
@@ -3207,7 +3207,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return SOUNDENVELOPE value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public SOUNDENVELOPE readSOUNDENVELOPE(String name) throws IOException {
|
||||
SOUNDENVELOPE ret = new SOUNDENVELOPE();
|
||||
@@ -3226,7 +3226,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param advanceBits Advance bits
|
||||
* @param name Name
|
||||
* @return GLYPHENTRY value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public GLYPHENTRY readGLYPHENTRY(int glyphBits, int advanceBits, String name) throws IOException {
|
||||
GLYPHENTRY ret = new GLYPHENTRY();
|
||||
@@ -3245,7 +3245,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param advanceBits Advance bits
|
||||
* @param name Name
|
||||
* @return TEXTRECORD value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public TEXTRECORD readTEXTRECORD(int defineTextNum, int glyphBits, int advanceBits, String name) throws IOException {
|
||||
TEXTRECORD ret = new TEXTRECORD();
|
||||
@@ -3294,7 +3294,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return MORPHGRADRECORD value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public MORPHGRADRECORD readMORPHGRADRECORD(String name) throws IOException {
|
||||
MORPHGRADRECORD ret = new MORPHGRADRECORD();
|
||||
@@ -3312,7 +3312,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return MORPHGRADIENT value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public MORPHGRADIENT readMORPHGRADIENT(String name) throws IOException {
|
||||
MORPHGRADIENT ret = new MORPHGRADIENT();
|
||||
@@ -3338,7 +3338,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return MORPHGRADIENT value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public MORPHFOCALGRADIENT readMORPHFOCALGRADIENT(String name) throws IOException {
|
||||
MORPHFOCALGRADIENT ret = new MORPHFOCALGRADIENT();
|
||||
@@ -3361,7 +3361,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return MORPHFILLSTYLE value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public MORPHFILLSTYLE readMORPHFILLSTYLE(String name) throws IOException {
|
||||
MORPHFILLSTYLE ret = new MORPHFILLSTYLE();
|
||||
@@ -3402,7 +3402,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return MORPHFILLSTYLEARRAY value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public MORPHFILLSTYLEARRAY readMORPHFILLSTYLEARRAY(String name) throws IOException {
|
||||
|
||||
@@ -3425,7 +3425,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return MORPHLINESTYLE value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public MORPHLINESTYLE readMORPHLINESTYLE(String name) throws IOException {
|
||||
MORPHLINESTYLE ret = new MORPHLINESTYLE();
|
||||
@@ -3443,7 +3443,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return MORPHLINESTYLE2 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public MORPHLINESTYLE2 readMORPHLINESTYLE2(String name) throws IOException {
|
||||
MORPHLINESTYLE2 ret = new MORPHLINESTYLE2();
|
||||
@@ -3478,7 +3478,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param morphShapeNum 1 on DefineMorphShape, 2 on DefineMorphShape2
|
||||
* @param name Name
|
||||
* @return MORPHLINESTYLEARRAY value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public MORPHLINESTYLEARRAY readMORPHLINESTYLEARRAY(int morphShapeNum, String name) throws IOException {
|
||||
MORPHLINESTYLEARRAY ret = new MORPHLINESTYLEARRAY();
|
||||
@@ -3508,7 +3508,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param fontFlagsWideCodes Font flags wide codes
|
||||
* @param name Name
|
||||
* @return KERNINGRECORD value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public KERNINGRECORD readKERNINGRECORD(boolean fontFlagsWideCodes, String name) throws IOException {
|
||||
KERNINGRECORD ret = new KERNINGRECORD();
|
||||
@@ -3530,7 +3530,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return LANGCODE value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public LANGCODE readLANGCODE(String name) throws IOException {
|
||||
LANGCODE ret = new LANGCODE();
|
||||
@@ -3545,7 +3545,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return ZONERECORD value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public ZONERECORD readZONERECORD(String name) throws IOException {
|
||||
ZONERECORD ret = new ZONERECORD();
|
||||
@@ -3567,7 +3567,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return ZONEDATA value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public ZONEDATA readZONEDATA(String name) throws IOException {
|
||||
ZONEDATA ret = new ZONEDATA();
|
||||
@@ -3583,7 +3583,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return PIX15 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public PIX15 readPIX15(String name) throws IOException {
|
||||
PIX15 ret = new PIX15();
|
||||
@@ -3601,7 +3601,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return PIX15 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public int readPIX15Int(String name) throws IOException {
|
||||
newDumpLevel(name, "PIX15");
|
||||
@@ -3618,7 +3618,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return PIX24 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public PIX24 readPIX24(String name) throws IOException {
|
||||
PIX24 ret = new PIX24();
|
||||
@@ -3636,7 +3636,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param name Name
|
||||
* @return PIX24 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public int readPIX24Int(String name) throws IOException {
|
||||
newDumpLevel(name, "PIX24");
|
||||
@@ -3656,7 +3656,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param bitmapHeight Bitmap height
|
||||
* @param name Name
|
||||
* @return COLORMAPDATA value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public COLORMAPDATA readCOLORMAPDATA(int colorTableSize, int bitmapWidth, int bitmapHeight, String name) throws IOException {
|
||||
COLORMAPDATA ret = new COLORMAPDATA();
|
||||
@@ -3691,7 +3691,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param bitmapHeight Bitmap height
|
||||
* @param name Name
|
||||
* @return COLORMAPDATA value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public BITMAPDATA readBITMAPDATA(int bitmapFormat, int bitmapWidth, int bitmapHeight, String name) throws IOException {
|
||||
BITMAPDATA ret = new BITMAPDATA();
|
||||
@@ -3735,7 +3735,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param bitmapHeight Bitmap height
|
||||
* @param name Name
|
||||
* @return COLORMAPDATA value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public ALPHABITMAPDATA readALPHABITMAPDATA(int bitmapFormat, int bitmapWidth, int bitmapHeight, String name) throws IOException {
|
||||
ALPHABITMAPDATA ret = new ALPHABITMAPDATA();
|
||||
@@ -3758,7 +3758,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* @param bitmapHeight Bitmap height
|
||||
* @param name Name
|
||||
* @return ALPHACOLORMAPDATA value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public ALPHACOLORMAPDATA readALPHACOLORMAPDATA(int colorTableSize, int bitmapWidth, int bitmapHeight, String name) throws IOException {
|
||||
ALPHACOLORMAPDATA ret = new ALPHACOLORMAPDATA();
|
||||
@@ -3789,7 +3789,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Gets number of available bytes in the stream.
|
||||
*
|
||||
* @return Number of available bytes
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public int available() throws IOException {
|
||||
return is.available();
|
||||
@@ -3799,7 +3799,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Gets number of available bits in the stream.
|
||||
*
|
||||
* @return Number of available bits
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public long availableBits() throws IOException {
|
||||
if (bitPos > 0) {
|
||||
@@ -3812,7 +3812,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
* Gets base stream.
|
||||
*
|
||||
* @return Base stream
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public MemoryInputStream getBaseStream() throws IOException {
|
||||
int pos = (int) is.getPos();
|
||||
@@ -3826,7 +3826,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
*
|
||||
* @param limit Limit
|
||||
* @return Limited stream
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public SWFInputStream getLimitedStream(int limit) throws IOException {
|
||||
SWFInputStream sis = new SWFInputStream(swf, is.getAllRead(), startingPos, (int) (is.getPos() + limit));
|
||||
|
||||
@@ -152,7 +152,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes byte to the stream.
|
||||
*
|
||||
* @param b Byte to write
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void write(int b) throws IOException {
|
||||
@@ -165,7 +165,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes byte array to the stream.
|
||||
*
|
||||
* @param b The data.
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void write(byte[] b) throws IOException {
|
||||
@@ -180,7 +180,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* @param b The data.
|
||||
* @param off The start offset in the data.
|
||||
* @param len The number of bytes to write.
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void write(byte[] b, int off, int len) throws IOException {
|
||||
@@ -193,7 +193,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes ByteArrayRange to the stream.
|
||||
*
|
||||
* @param b The data.
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void write(ByteArrayRange b) throws IOException {
|
||||
alignByte();
|
||||
@@ -204,7 +204,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
/**
|
||||
* Aligns to byte position.
|
||||
*
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private void alignByte() throws IOException {
|
||||
if (bitPos > 0) {
|
||||
@@ -218,7 +218,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes UI8 (Unsigned 8bit integer) value to the stream.
|
||||
*
|
||||
* @param value UI8 value to write
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeUI8(int value) throws IOException {
|
||||
if (value > 0xff) {
|
||||
@@ -232,7 +232,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes null terminated string value to the stream.
|
||||
*
|
||||
* @param value String value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeString(String value) throws IOException {
|
||||
byte[] data;
|
||||
@@ -255,7 +255,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes netstring (length + string) value to the stream.
|
||||
*
|
||||
* @param value String value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeNetString(String value) throws IOException {
|
||||
byte[] data = value.getBytes(charset);
|
||||
@@ -267,7 +267,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes UI32 (Unsigned 32bit integer) value to the stream.
|
||||
*
|
||||
* @param value UI32 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeUI32(long value) throws IOException {
|
||||
if (value > 0xffffffffL) {
|
||||
@@ -284,7 +284,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes UI16 (Unsigned 16bit integer) value to the stream.
|
||||
*
|
||||
* @param value UI16 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeUI16(int value) throws IOException {
|
||||
if (value > 0xffff) {
|
||||
@@ -299,7 +299,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes SI32 (Signed 32bit integer) value to the stream.
|
||||
*
|
||||
* @param value SI32 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeSI32(long value) throws IOException {
|
||||
if (value > 0x7fffffffL) {
|
||||
@@ -313,7 +313,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes SI16 (Signed 16bit integer) value to the stream.
|
||||
*
|
||||
* @param value SI16 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeSI16(int value) throws IOException {
|
||||
|
||||
@@ -328,7 +328,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes SI8 (Signed 8bit integer) value to the stream.
|
||||
*
|
||||
* @param value SI8 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeSI8(int value) throws IOException {
|
||||
if (value > 0x7ff) {
|
||||
@@ -342,7 +342,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes FIXED (Fixed point 16.16) value to the stream.
|
||||
*
|
||||
* @param value FIXED value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeFIXED(double value) throws IOException {
|
||||
long valueLong = (long) (value * (1 << 16));
|
||||
@@ -353,7 +353,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes FIXED8 (Fixed point 8.8) value to the stream.
|
||||
*
|
||||
* @param value FIXED8 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeFIXED8(float value) throws IOException {
|
||||
int valueInt = (int) (value * (1 << 8));
|
||||
@@ -364,7 +364,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes long value to the stream.
|
||||
*
|
||||
* @param value The value.
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private void writeLong(long value) throws IOException {
|
||||
byte[] writeBuffer = new byte[8];
|
||||
@@ -384,7 +384,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* stream.
|
||||
*
|
||||
* @param value DOUBLE value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeDOUBLE(double value) throws IOException {
|
||||
writeLong(Double.doubleToLongBits(value));
|
||||
@@ -394,7 +394,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes FLOAT (single precision floating point value) value to the stream.
|
||||
*
|
||||
* @param value FLOAT value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeFLOAT(float value) throws IOException {
|
||||
writeUI32(Float.floatToIntBits(value));
|
||||
@@ -404,7 +404,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes FLOAT16 (16bit floating point value) value to the stream.
|
||||
*
|
||||
* @param value FLOAT16 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeFLOAT16(float value) throws IOException {
|
||||
int bits = Float.floatToRawIntBits(value);
|
||||
@@ -419,7 +419,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes EncodedU32 (Encoded unsigned 32bit value) value to the stream.
|
||||
*
|
||||
* @param value U32 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeEncodedU32(long value) throws IOException {
|
||||
boolean loop = true;
|
||||
@@ -440,7 +440,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
/**
|
||||
* Flushes data to underlying stream.
|
||||
*
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void flush() throws IOException {
|
||||
@@ -455,7 +455,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
/**
|
||||
* Closes the stream.
|
||||
*
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
@@ -468,7 +468,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param nBits Number of bits which represent value
|
||||
* @param value Unsigned value to write
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeUB(int nBits, long value) throws IOException {
|
||||
if (!fitsInUB(nBits, value)) {
|
||||
@@ -509,7 +509,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* @param nBits Number of bits which represent value
|
||||
* @param value Value to write
|
||||
* @param type Type of value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private void writeNBInternal(int nBits, long value, String type) throws IOException {
|
||||
for (int bit = 0; bit < nBits; bit++) {
|
||||
@@ -529,7 +529,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param nBits Number of bits which represent value
|
||||
* @param value Signed value to write
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeSB(int nBits, long value) throws IOException {
|
||||
if (!fitsInSB(nBits, value)) {
|
||||
@@ -543,7 +543,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param nBits Number of bits which represent value
|
||||
* @param value Double value to write
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeFB(int nBits, double value) throws IOException {
|
||||
if (nBits == 0) {
|
||||
@@ -557,7 +557,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes RECT value to the stream.
|
||||
*
|
||||
* @param value RECT value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeRECT(RECT value) throws IOException {
|
||||
int nBits = 0;
|
||||
@@ -607,7 +607,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes list of Tag values to the stream.
|
||||
*
|
||||
* @param tags List of tag values
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeTags(Iterable<Tag> tags) throws IOException {
|
||||
for (Tag tag : tags) {
|
||||
@@ -761,7 +761,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes MATRIX value to the stream.
|
||||
*
|
||||
* @param value MATRIX value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeMatrix(MATRIX value) throws IOException {
|
||||
writeUB(1, value.hasScale ? 1 : 0);
|
||||
@@ -812,7 +812,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes CXFORM value to the stream.
|
||||
*
|
||||
* @param value CXFORM value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeCXFORM(CXFORM value) throws IOException {
|
||||
writeUB(1, value.hasAddTerms ? 1 : 0);
|
||||
@@ -851,7 +851,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes CXFORMWITHALPHA value to the stream.
|
||||
*
|
||||
* @param value CXFORMWITHALPHA value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeCXFORMWITHALPHA(CXFORMWITHALPHA value) throws IOException {
|
||||
writeUB(1, value.hasAddTerms ? 1 : 0);
|
||||
@@ -894,7 +894,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes CLIPEVENTFLAGS value to the stream.
|
||||
*
|
||||
* @param value CLIPEVENTFLAGS value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeCLIPEVENTFLAGS(CLIPEVENTFLAGS value) throws IOException {
|
||||
writeUB(1, value.clipEventKeyUp ? 1 : 0);
|
||||
@@ -926,7 +926,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes CLIPACTIONRECORD value to the stream.
|
||||
*
|
||||
* @param value CLIPACTIONRECORD value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeCLIPACTIONRECORD(CLIPACTIONRECORD value) throws IOException {
|
||||
writeCLIPEVENTFLAGS(value.eventFlags);
|
||||
@@ -946,7 +946,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes CLIPACTIONS value to the stream.
|
||||
*
|
||||
* @param value CLIPACTIONS value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeCLIPACTIONS(CLIPACTIONS value) throws IOException {
|
||||
writeUI16(value.reserved);
|
||||
@@ -965,7 +965,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes COLORMATRIXFILTER value to the stream.
|
||||
*
|
||||
* @param value COLORMATRIXFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeCOLORMATRIXFILTER(COLORMATRIXFILTER value) throws IOException {
|
||||
for (int i = 0; i < 20; i++) {
|
||||
@@ -977,7 +977,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes RGBA value to the stream.
|
||||
*
|
||||
* @param value RGBA value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeRGBA(RGBA value) throws IOException {
|
||||
writeUI8(value.red);
|
||||
@@ -990,7 +990,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes ARGB value to the stream.
|
||||
*
|
||||
* @param value ARGB value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeARGB(ARGB value) throws IOException {
|
||||
writeUI8(value.alpha);
|
||||
@@ -1003,7 +1003,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes ARGB value to the stream.
|
||||
*
|
||||
* @param value ARGB value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeARGB(int value) throws IOException {
|
||||
writeUI8((value >> 24) & 0xff);
|
||||
@@ -1016,7 +1016,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes RGB value to the stream.
|
||||
*
|
||||
* @param value RGB value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeRGB(RGB value) throws IOException {
|
||||
writeUI8(value.red);
|
||||
@@ -1028,7 +1028,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes CONVOLUTIONFILTER value to the stream.
|
||||
*
|
||||
* @param value CONVOLUTIONFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeCONVOLUTIONFILTER(CONVOLUTIONFILTER value) throws IOException {
|
||||
writeUI8(value.matrixX);
|
||||
@@ -1050,7 +1050,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes BLURFILTER value to the stream.
|
||||
*
|
||||
* @param value BLURFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeBLURFILTER(BLURFILTER value) throws IOException {
|
||||
writeFIXED(value.blurX);
|
||||
@@ -1063,7 +1063,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes DROPSHADOWFILTER value to the stream.
|
||||
*
|
||||
* @param value DROPSHADOWFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeDROPSHADOWFILTER(DROPSHADOWFILTER value) throws IOException {
|
||||
writeRGBA(value.dropShadowColor);
|
||||
@@ -1082,7 +1082,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes GLOWFILTER value to the stream.
|
||||
*
|
||||
* @param value GLOWFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeGLOWFILTER(GLOWFILTER value) throws IOException {
|
||||
writeRGBA(value.glowColor);
|
||||
@@ -1099,7 +1099,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes BEVELFILTER value to the stream.
|
||||
*
|
||||
* @param value BEVELFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeBEVELFILTER(BEVELFILTER value) throws IOException {
|
||||
writeRGBA(value.highlightColor);
|
||||
@@ -1120,7 +1120,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes GRADIENTGLOWFILTER value to the stream.
|
||||
*
|
||||
* @param value GRADIENTGLOWFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeGRADIENTGLOWFILTER(GRADIENTGLOWFILTER value) throws IOException {
|
||||
writeUI8(value.gradientColors.length);
|
||||
@@ -1146,7 +1146,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes GRADIENTBEVELFILTER value to the stream.
|
||||
*
|
||||
* @param value GRADIENTBEVELFILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeGRADIENTBEVELFILTER(GRADIENTBEVELFILTER value) throws IOException {
|
||||
writeUI8(value.gradientColors.length);
|
||||
@@ -1172,7 +1172,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes list of FILTER values to the stream.
|
||||
*
|
||||
* @param list List of FILTER values
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeFILTERLIST(List<FILTER> list) throws IOException {
|
||||
writeUI8(list.size());
|
||||
@@ -1185,7 +1185,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes FILTER value to the stream.
|
||||
*
|
||||
* @param value FILTER value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeFILTER(FILTER value) throws IOException {
|
||||
writeUI8(value.id);
|
||||
@@ -1220,7 +1220,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param list List of BUTTONRECORD values
|
||||
* @param inDefineButton2 Whether write inside of DefineButton2Tag or not
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeBUTTONRECORDList(List<BUTTONRECORD> list, boolean inDefineButton2) throws IOException {
|
||||
for (BUTTONRECORD brec : list) {
|
||||
@@ -1234,7 +1234,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value BUTTONRECORD value
|
||||
* @param inDefineButton2 Whether write inside of DefineButton2Tag or not
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeBUTTONRECORD(BUTTONRECORD value, boolean inDefineButton2) throws IOException {
|
||||
writeUB(2, value.reserved);
|
||||
@@ -1262,7 +1262,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes list of BUTTONCONDACTION values to the stream.
|
||||
*
|
||||
* @param list List of BUTTONCONDACTION values
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeBUTTONCONDACTIONList(List<BUTTONCONDACTION> list) throws IOException {
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
@@ -1275,7 +1275,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value BUTTONCONDACTION value
|
||||
* @param isLast True if it is last on the list
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeBUTTONCONDACTION(BUTTONCONDACTION value, boolean isLast) throws IOException {
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
@@ -1306,7 +1306,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value FILLSTYLE value
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeFILLSTYLE(FILLSTYLE value, int shapeNum) throws IOException {
|
||||
writeUI8(value.fillStyleType);
|
||||
@@ -1343,7 +1343,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value FILLSTYLEARRAY value
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeFILLSTYLEARRAY(FILLSTYLEARRAY value, int shapeNum) throws IOException {
|
||||
int fillStyleCount = value.fillStyles.length;
|
||||
@@ -1367,7 +1367,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value FILLSTYLEARRAY value
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeFOCALGRADIENT(FOCALGRADIENT value, int shapeNum) throws IOException {
|
||||
writeUB(2, value.spreadMode);
|
||||
@@ -1384,7 +1384,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value GRADIENT value
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeGRADIENT(GRADIENT value, int shapeNum) throws IOException {
|
||||
writeUB(2, value.spreadMode);
|
||||
@@ -1400,7 +1400,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value GRADRECORD value
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeGRADRECORD(GRADRECORD value, int shapeNum) throws IOException {
|
||||
writeUI8(value.ratio);
|
||||
@@ -1416,7 +1416,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value LINESTYLE value
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeLINESTYLE(LINESTYLE value, int shapeNum) throws IOException {
|
||||
writeUI16(value.width);
|
||||
@@ -1432,7 +1432,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value LINESTYLE2 value
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeLINESTYLE2(LINESTYLE2 value, int shapeNum) throws IOException {
|
||||
writeUI16(value.width);
|
||||
@@ -1460,7 +1460,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value FILLSTYLEARRAY value
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeLINESTYLEARRAY(LINESTYLEARRAY value, int shapeNum) throws IOException {
|
||||
int lineStyleCount;
|
||||
@@ -1494,7 +1494,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value SHAPE value
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeSHAPE(SHAPE value, int shapeNum) throws IOException {
|
||||
calculateSHAPEFillLineBits(value);
|
||||
@@ -1543,7 +1543,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value SHAPEWITHSTYLE value
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeSHAPEWITHSTYLE(SHAPEWITHSTYLE value, int shapeNum) throws IOException {
|
||||
writeFILLSTYLEARRAY(value.fillStyles, shapeNum);
|
||||
@@ -1558,10 +1558,10 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes SHAPERECORDs value to the stream.
|
||||
*
|
||||
* @param value SHAPERECORDS value
|
||||
* @param fillBits
|
||||
* @param lineBits
|
||||
* @param fillBits Fill bits
|
||||
* @param lineBits Line bits
|
||||
* @param shapeNum 1 in DefineShape, 2 in DefineShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private void writeSHAPERECORDS(List<SHAPERECORD> value, int fillBits, int lineBits, int shapeNum) throws IOException {
|
||||
for (SHAPERECORD sh : value) {
|
||||
@@ -1658,7 +1658,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes SOUNDINFO value to the stream.
|
||||
*
|
||||
* @param value SOUNDINFO value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeSOUNDINFO(SOUNDINFO value) throws IOException {
|
||||
writeUB(2, value.reserved);
|
||||
@@ -1689,7 +1689,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes SOUNDENVELOPE value to the stream.
|
||||
*
|
||||
* @param value SOUNDENVELOPE value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeSOUNDENVELOPE(SOUNDENVELOPE value) throws IOException {
|
||||
writeUI32(value.pos44);
|
||||
@@ -1701,10 +1701,10 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes TEXTRECORD value to the stream.
|
||||
*
|
||||
* @param value TEXTRECORD value
|
||||
* @param defineTextNum
|
||||
* @param glyphBits
|
||||
* @param advanceBits
|
||||
* @throws IOException
|
||||
* @param defineTextNum 1 in DefineText, 2 in DefineText2,...
|
||||
* @param glyphBits Glyph bits
|
||||
* @param advanceBits Advance bits
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeTEXTRECORD(TEXTRECORD value, int defineTextNum, int glyphBits, int advanceBits) throws IOException {
|
||||
writeUB(1, 1);
|
||||
@@ -1743,9 +1743,9 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes GLYPHENTRY value to the stream.
|
||||
*
|
||||
* @param value GLYPHENTRY value
|
||||
* @param glyphBits
|
||||
* @param advanceBits
|
||||
* @throws IOException
|
||||
* @param glyphBits Glyph bits
|
||||
* @param advanceBits Advance bits
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeGLYPHENTRY(GLYPHENTRY value, int glyphBits, int advanceBits) throws IOException {
|
||||
writeUB(glyphBits, value.glyphIndex);
|
||||
@@ -1757,7 +1757,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value MORPHFILLSTYLE value
|
||||
* @param shapeNum 1 in DefineMorphShape, 2 in DefineMorphShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeMORPHFILLSTYLE(MORPHFILLSTYLE value, int shapeNum) throws IOException {
|
||||
writeUI8(value.fillStyleType);
|
||||
@@ -1794,7 +1794,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value MORPHFILLSTYLEARRAY value
|
||||
* @param morphShapeNum 1 on DefineMorphShape, 2 on DefineMorphShape
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeMORPHFILLSTYLEARRAY(MORPHFILLSTYLEARRAY value, int morphShapeNum) throws IOException {
|
||||
int fillStyleCount = value.fillStyles.length;
|
||||
@@ -1814,7 +1814,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value MORPHGRADIENT value
|
||||
* @param shapeNum 1 in DefineMorphShape, 2 in DefineMorphShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeMORPHGRADIENT(MORPHGRADIENT value, int shapeNum) throws IOException {
|
||||
// Despite of documentation (UI8 1-8), there are two fields
|
||||
@@ -1835,7 +1835,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value MORPHGRADIENT value
|
||||
* @param shapeNum 1 in DefineMorphShape, 2 in DefineMorphShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeMORPHFOCALGRADIENT(MORPHFOCALGRADIENT value, int shapeNum) throws IOException {
|
||||
writeUB(2, value.spreadMode);
|
||||
@@ -1852,7 +1852,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes MORPHGRADRECORD value to the stream.
|
||||
*
|
||||
* @param value MORPHGRADRECORD value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeMORPHGRADRECORD(MORPHGRADRECORD value) throws IOException {
|
||||
writeUI8(value.startRatio);
|
||||
@@ -1866,7 +1866,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value LINESTYLE value
|
||||
* @param shapeNum 1 in DefineMorphShape, 2 in DefineMorphShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeMORPHLINESTYLE(MORPHLINESTYLE value, int shapeNum) throws IOException {
|
||||
writeUI16(value.startWidth);
|
||||
@@ -1881,7 +1881,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value MORPHLINESTYLE2 value
|
||||
* @param shapeNum 1 in DefineMorphShape, 2 in DefineMorphShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeMORPHLINESTYLE2(MORPHLINESTYLE2 value, int shapeNum) throws IOException {
|
||||
writeUI16(value.startWidth);
|
||||
@@ -1911,7 +1911,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param value MORPHFILLSTYLEARRAY value
|
||||
* @param morphShapeNum 1 in DefineMorphShape, 2 in DefineMorphShape2,...
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeMORPHLINESTYLEARRAY(MORPHLINESTYLEARRAY value, int morphShapeNum) throws IOException {
|
||||
int lineStyleCount;
|
||||
@@ -1944,8 +1944,8 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes KERNINGRECORD value to the stream.
|
||||
*
|
||||
* @param value KERNINGRECORD value
|
||||
* @param fontFlagsWideCodes
|
||||
* @throws IOException
|
||||
* @param fontFlagsWideCodes Font flags wide codes
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeKERNINGRECORD(KERNINGRECORD value, boolean fontFlagsWideCodes) throws IOException {
|
||||
if (fontFlagsWideCodes) {
|
||||
@@ -1962,7 +1962,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes LANGCODE value to the stream.
|
||||
*
|
||||
* @param value LANGCODE value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeLANGCODE(LANGCODE value) throws IOException {
|
||||
writeUI8(value.languageCode);
|
||||
@@ -1972,7 +1972,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes ZONERECORD value to the stream.
|
||||
*
|
||||
* @param value ZONERECORD value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeZONERECORD(ZONERECORD value) throws IOException {
|
||||
writeUI8(value.zonedata.length);
|
||||
@@ -1988,7 +1988,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes ZONEDATA value to the stream.
|
||||
*
|
||||
* @param value ZONEDATA value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeZONEDATA(ZONEDATA value) throws IOException {
|
||||
writeUI16(value.alignmentCoordinate);
|
||||
@@ -1999,7 +1999,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes ZLIB compressed data to the stream.
|
||||
*
|
||||
* @param data Data to compress
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeBytesZlib(byte[] data) throws IOException {
|
||||
DeflaterOutputStream deflater = new DeflaterOutputStream(this, new Deflater(9));
|
||||
@@ -2012,7 +2012,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
*
|
||||
* @param data Data to compress
|
||||
* @return Compressed data
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public static byte[] compressByteArray(byte[] data) throws IOException {
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
@@ -2029,7 +2029,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* @param bitmapFormat Format of the bitmap
|
||||
* @param bitmapWidth Width of the bitmap
|
||||
* @param bitmapHeight Height of the bitmap
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeBITMAPDATA(BITMAPDATA value, int bitmapFormat, int bitmapWidth, int bitmapHeight) throws IOException {
|
||||
int dataLen = 0;
|
||||
@@ -2061,7 +2061,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* @param bitmapFormat Format of the bitmap
|
||||
* @param bitmapWidth Width of the bitmap
|
||||
* @param bitmapHeight Height of the bitmap
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeALPHABITMAPDATA(ALPHABITMAPDATA value, int bitmapFormat, int bitmapWidth, int bitmapHeight) throws IOException {
|
||||
int pos = 0;
|
||||
@@ -2077,7 +2077,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes PIX24 value to the stream.
|
||||
*
|
||||
* @param value PIX24 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writePIX24(PIX24 value) throws IOException {
|
||||
writeUI8(value.reserved);
|
||||
@@ -2090,7 +2090,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes PIX24 value to the stream.
|
||||
*
|
||||
* @param value PIX24 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writePIX24(int value) throws IOException {
|
||||
writeUI8((value >> 24) & 0xff);
|
||||
@@ -2103,7 +2103,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes PIX15 value to the stream.
|
||||
*
|
||||
* @param value PIX15 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writePIX15(PIX15 value) throws IOException {
|
||||
writeUB(1, value.reserved);
|
||||
@@ -2116,7 +2116,7 @@ public class SWFOutputStream extends OutputStream {
|
||||
* Writes PIX15 value to the stream.
|
||||
*
|
||||
* @param value PIX15 value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writePIX15(int value) throws IOException {
|
||||
writeUB(1, (value >> 24) & 0xff);
|
||||
@@ -2132,8 +2132,8 @@ public class SWFOutputStream extends OutputStream {
|
||||
* @param value AMF3 encoded value
|
||||
* @param serializers Map className=>Serializer for classes implementing
|
||||
* IExternalizable
|
||||
* @throws IOException
|
||||
* @throws NoSerializerExistsException
|
||||
* @throws IOException On I/O error
|
||||
* @throws NoSerializerExistsException When no serializer exists for the value
|
||||
*/
|
||||
public void writeAmf3Object(Amf3Value value, Map<String, ObjectTypeSerializeHandler> serializers) throws IOException, NoSerializerExistsException {
|
||||
Amf3OutputStream ao = new Amf3OutputStream(os);
|
||||
@@ -2145,8 +2145,8 @@ public class SWFOutputStream extends OutputStream {
|
||||
* IExternalizable, you need to pass serializer as second parameter.
|
||||
*
|
||||
* @param value AMF3 encoded value
|
||||
* @throws IOException
|
||||
* @throws NoSerializerExistsException
|
||||
* @throws IOException On I/O error
|
||||
* @throws NoSerializerExistsException When no serializer exists for the value
|
||||
*/
|
||||
public void writeAmf3Object(Amf3Value value) throws IOException, NoSerializerExistsException {
|
||||
writeAmf3Object(value, new HashMap<>());
|
||||
|
||||
@@ -81,7 +81,7 @@ public class SWFSearch {
|
||||
/**
|
||||
* Adds progress listener.
|
||||
*
|
||||
* @param l
|
||||
* @param l Progress listener
|
||||
*/
|
||||
public void addProgressListener(ProgressListener l) {
|
||||
listeners.add(l);
|
||||
@@ -90,7 +90,7 @@ public class SWFSearch {
|
||||
/**
|
||||
* Removes progress listener.
|
||||
*
|
||||
* @param l
|
||||
* @param l Progress listener
|
||||
*/
|
||||
public void removeProgressListener(ProgressListener l) {
|
||||
listeners.remove(l);
|
||||
@@ -194,7 +194,7 @@ public class SWFSearch {
|
||||
* @param listener Progress listener
|
||||
* @param address Address
|
||||
* @return SWF stream
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public MemoryInputStream get(ProgressListener listener, long address) throws IOException {
|
||||
if (!processed) {
|
||||
|
||||
@@ -42,22 +42,22 @@ import java.util.zip.ZipOutputStream;
|
||||
public class ZippedBundle implements Bundle {
|
||||
|
||||
/**
|
||||
*
|
||||
* Key set
|
||||
*/
|
||||
protected Set<String> keySet = new HashSet<>();
|
||||
|
||||
/**
|
||||
* File input stream for the ZIP file.
|
||||
* File input stream for the ZIP file
|
||||
*/
|
||||
protected FileInputStream fis;
|
||||
|
||||
/**
|
||||
* Re-readable input stream for the ZIP file.
|
||||
* Re-readable input stream for the ZIP file
|
||||
*/
|
||||
protected ReReadableInputStream is;
|
||||
|
||||
/**
|
||||
* File name of the ZIP file.
|
||||
* File name of the ZIP file
|
||||
*/
|
||||
protected File filename;
|
||||
|
||||
@@ -65,7 +65,7 @@ public class ZippedBundle implements Bundle {
|
||||
* Constructs a new ZippedBundle from an input stream.
|
||||
*
|
||||
* @param is Input stream
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public ZippedBundle(InputStream is) throws IOException {
|
||||
this(is, null);
|
||||
@@ -75,7 +75,7 @@ public class ZippedBundle implements Bundle {
|
||||
* Constructs a new ZippedBundle from a file.
|
||||
*
|
||||
* @param filename File
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public ZippedBundle(File filename) throws IOException {
|
||||
this(null, filename);
|
||||
@@ -86,7 +86,7 @@ public class ZippedBundle implements Bundle {
|
||||
*
|
||||
* @param is Input stream
|
||||
* @param filename File
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
protected ZippedBundle(InputStream is, File filename) throws IOException {
|
||||
initBundle(is, filename);
|
||||
@@ -97,7 +97,7 @@ public class ZippedBundle implements Bundle {
|
||||
*
|
||||
* @param is Input stream
|
||||
* @param filename File
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
protected void initBundle(InputStream is, File filename) throws IOException {
|
||||
if (filename != null) {
|
||||
@@ -119,33 +119,17 @@ public class ZippedBundle implements Bundle {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the number of entries in the bundle.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int length() {
|
||||
return keySet.size();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the keys in the bundle.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
|
||||
@Override
|
||||
public Set<String> getKeys() {
|
||||
return keySet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the input stream for a key.
|
||||
*
|
||||
* @param key Key
|
||||
* @return Input stream
|
||||
* @throws IOException
|
||||
*/
|
||||
@Override
|
||||
public SeekableInputStream getOpenable(String key) throws IOException {
|
||||
if (!keySet.contains(key)) {
|
||||
@@ -171,12 +155,6 @@ public class ZippedBundle implements Bundle {
|
||||
//return cachedSWFs.get(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all input streams in the bundle.
|
||||
*
|
||||
* @return Map of key to input stream
|
||||
* @throws IOException
|
||||
*/
|
||||
@Override
|
||||
public Map<String, SeekableInputStream> getAll() throws IOException {
|
||||
Map<String, SeekableInputStream> ret = new HashMap<>();
|
||||
@@ -186,34 +164,16 @@ public class ZippedBundle implements Bundle {
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the extension of the bundle.
|
||||
*
|
||||
* @return Extension
|
||||
*/
|
||||
@Override
|
||||
public String getExtension() {
|
||||
return "zip";
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets whether the bundle is read-only.
|
||||
*
|
||||
* @return Whether the bundle is read-only
|
||||
*/
|
||||
@Override
|
||||
public boolean isReadOnly() {
|
||||
return this.filename == null || !this.filename.canWrite();
|
||||
}
|
||||
|
||||
/**
|
||||
* Replaces the input stream for a key.
|
||||
*
|
||||
* @param key Key
|
||||
* @param swfIs New input stream
|
||||
* @return Whether the operation was successful
|
||||
* @throws IOException
|
||||
*/
|
||||
@Override
|
||||
public boolean putOpenable(String key, InputStream swfIs) throws IOException {
|
||||
if (this.isReadOnly()) {
|
||||
|
||||
@@ -770,7 +770,7 @@ public class ABC implements Openable {
|
||||
*
|
||||
* @param minMajor Minimum major version
|
||||
* @param minMinor Minimum minor version
|
||||
* @return
|
||||
* @return Whether the ABC has minimum version
|
||||
*/
|
||||
private boolean minVersionCheck(int minMajor, int minMinor) {
|
||||
return version.compareTo(new ABCVersion(minMajor, minMinor)) >= 0;
|
||||
|
||||
@@ -252,7 +252,7 @@ public class ScriptPack extends AS3ClassTreeItem {
|
||||
* @param convertData Convert data
|
||||
* @param exportMode Export mode
|
||||
* @param parallel Parallel
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void convert(AbcIndexing abcIndex, final NulWriter writer, final List<Trait> traits, final ConvertData convertData, final ScriptExportMode exportMode, final boolean parallel) throws InterruptedException {
|
||||
|
||||
@@ -296,7 +296,7 @@ public class ScriptPack extends AS3ClassTreeItem {
|
||||
* @param convertData Convert data
|
||||
* @param exportMode Export mode
|
||||
* @param parallel Parallel
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
private void appendTo(AbcIndexing abcIndex, GraphTextWriter writer, List<Trait> traits, ConvertData convertData, ScriptExportMode exportMode, boolean parallel) throws InterruptedException {
|
||||
boolean first = true;
|
||||
@@ -369,7 +369,7 @@ public class ScriptPack extends AS3ClassTreeItem {
|
||||
* @param exportMode Export mode
|
||||
* @param parallel Parallel
|
||||
* @param ignoreFrameScripts Whether to ignore frame scripts
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void toSource(AbcIndexing abcIndex, GraphTextWriter writer, final List<Trait> traits, final ConvertData convertData, final ScriptExportMode exportMode, final boolean parallel, boolean ignoreFrameScripts) throws InterruptedException {
|
||||
writer.suspendMeasure();
|
||||
@@ -420,8 +420,8 @@ public class ScriptPack extends AS3ClassTreeItem {
|
||||
* @param exportSettings Export settings
|
||||
* @param parallel Parallel
|
||||
* @return File
|
||||
* @throws IOException
|
||||
* @throws InterruptedException
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public File export(AbcIndexing abcIndex, File file, ScriptExportSettings exportSettings, boolean parallel) throws IOException, InterruptedException {
|
||||
if (!exportSettings.singleFile) {
|
||||
|
||||
@@ -3088,7 +3088,7 @@ public class AVM2Code implements Cloneable {
|
||||
* @param scope Scope
|
||||
* @param abc ABC
|
||||
* @param autoFill Auto fill
|
||||
* @return
|
||||
* @return True if success
|
||||
*/
|
||||
private boolean walkCode(CodeStats stats, int pos, int stack, int scope, ABC abc, boolean autoFill) {
|
||||
while (pos < code.size()) {
|
||||
|
||||
@@ -77,7 +77,7 @@ public class NumberContext {
|
||||
/**
|
||||
* Sets the usage of the number.
|
||||
*
|
||||
* @param usage
|
||||
* @param usage Usage
|
||||
*/
|
||||
public void setUsage(int usage) {
|
||||
if (usage > 6 || usage < 0) {
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ public enum DeobfuscationLevel {
|
||||
/**
|
||||
* Get level of deobfuscation as number
|
||||
*
|
||||
* @return
|
||||
* @return Level of deobfuscation as number
|
||||
*/
|
||||
public int getLevel() {
|
||||
return level;
|
||||
|
||||
@@ -83,7 +83,7 @@ public class FastAVM2List implements Collection<AVM2InstructionItem> {
|
||||
*
|
||||
* @param item Item to insert before
|
||||
* @param action Action to insert
|
||||
* @return
|
||||
* @return New item
|
||||
*/
|
||||
public final AVM2InstructionItem insertItemBefore(AVM2InstructionItem item, AVM2Instruction action) {
|
||||
AVM2InstructionItem newItem = new AVM2InstructionItem(action);
|
||||
@@ -111,7 +111,7 @@ public class FastAVM2List implements Collection<AVM2InstructionItem> {
|
||||
*
|
||||
* @param item Item to insert after
|
||||
* @param action Action to insert
|
||||
* @return
|
||||
* @return New item
|
||||
*/
|
||||
public final AVM2InstructionItem insertItemAfter(AVM2InstructionItem item, AVM2Instruction action) {
|
||||
AVM2InstructionItem newItem = new AVM2InstructionItem(action);
|
||||
@@ -240,7 +240,7 @@ public class FastAVM2List implements Collection<AVM2InstructionItem> {
|
||||
* @param instructions Instructions
|
||||
* @param address Address
|
||||
* @param next Next
|
||||
* @return
|
||||
* @return Nearby address
|
||||
*/
|
||||
private long getNearAddress(List<AVM2Instruction> instructions, long address, boolean next) {
|
||||
int min = 0;
|
||||
@@ -451,7 +451,7 @@ public class FastAVM2List implements Collection<AVM2InstructionItem> {
|
||||
*
|
||||
* @param jump Jump
|
||||
* @param jumpTarget Jump target
|
||||
* @return
|
||||
* @return Unreachable action count
|
||||
*/
|
||||
public int getUnreachableActionCount(AVM2InstructionItem jump, AVM2InstructionItem jumpTarget) {
|
||||
AVM2InstructionItem item = firstItem;
|
||||
@@ -703,7 +703,7 @@ public class FastAVM2List implements Collection<AVM2InstructionItem> {
|
||||
* @param a the array into which the elements of this collection are to be
|
||||
* stored, if it is big enough; otherwise, a new array of the same runtime
|
||||
* type is allocated for this purpose.
|
||||
* @param <T>
|
||||
* @param <T> Type
|
||||
* @return Array
|
||||
*/
|
||||
@Override
|
||||
|
||||
@@ -867,8 +867,8 @@ public class AVM2Graph extends Graph {
|
||||
/**
|
||||
* Gets real references. Real = start >= 0
|
||||
*
|
||||
* @param part
|
||||
* @return
|
||||
* @param part Part
|
||||
* @return List of graph parts
|
||||
*/
|
||||
private List<GraphPart> getRealRefs(GraphPart part) {
|
||||
List<GraphPart> ret = new ArrayList<>();
|
||||
|
||||
+2
-2
@@ -43,7 +43,7 @@ public class UnknownInstruction extends InstructionDefinition {
|
||||
* @param lda Local data area
|
||||
* @param constants Constant pool
|
||||
* @param ins Instruction
|
||||
* @throws AVM2VerifyErrorException
|
||||
* @throws AVM2VerifyErrorException On verify error
|
||||
*/
|
||||
@Override
|
||||
public void verify(LocalDataArea lda, AVM2ConstantPool constants, AVM2Instruction ins) throws AVM2VerifyErrorException {
|
||||
@@ -57,7 +57,7 @@ public class UnknownInstruction extends InstructionDefinition {
|
||||
* @param constants Constant pool
|
||||
* @param ins Instruction
|
||||
* @return True if instruction was executed, false if not
|
||||
* @throws AVM2ExecutionException
|
||||
* @throws AVM2ExecutionException On execution error
|
||||
*/
|
||||
@Override
|
||||
public boolean execute(LocalDataArea lda, AVM2ConstantPool constants, AVM2Instruction ins) throws AVM2ExecutionException {
|
||||
|
||||
@@ -160,7 +160,7 @@ public class SetSlotAVM2Item extends AVM2Item implements SetTypeAVM2Item, Assign
|
||||
* @param writer Writer
|
||||
* @param localData Local data
|
||||
* @return Writer
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public GraphTextWriter getName(GraphTextWriter writer, LocalData localData) throws InterruptedException {
|
||||
return writer.append(getNameAsStr(localData));
|
||||
|
||||
+1
-1
@@ -1993,7 +1993,7 @@ public class ActionScript3Parser {
|
||||
* Lexer can return XML opentags instead of greater. In expression, we need
|
||||
* greater sign only
|
||||
*
|
||||
* @param symb
|
||||
* @param symb Symbol to fix
|
||||
*/
|
||||
private void xmlToLowerThanFix(ParsedSymbol symb) {
|
||||
if (symb.isType(SymbolType.XML_STARTVARTAG_BEGIN, SymbolType.XML_STARTTAG_BEGIN)) {
|
||||
|
||||
@@ -271,7 +271,7 @@ public final class MethodBody implements Cloneable {
|
||||
* @param trait Trait
|
||||
* @param info Method info
|
||||
* @return Number of removed instructions
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public int removeDeadCode(AVM2ConstantPool constants, Trait trait, MethodInfo info) throws InterruptedException {
|
||||
return getCode().removeDeadCode(this);
|
||||
@@ -287,7 +287,7 @@ public final class MethodBody implements Cloneable {
|
||||
* @param isStatic Is static
|
||||
* @param path Path
|
||||
* @return Number of removed instructions
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public int removeTraps(ABC abc, Trait trait, int scriptIndex, int classIndex, boolean isStatic, String path) throws InterruptedException {
|
||||
|
||||
@@ -303,7 +303,7 @@ public final class MethodBody implements Cloneable {
|
||||
* @param classIndex Class index
|
||||
* @param isStatic Is static
|
||||
* @param path Path
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void deobfuscate(DeobfuscationLevel level, Trait trait, int scriptIndex, int classIndex, boolean isStatic, String path) throws InterruptedException {
|
||||
if (level == DeobfuscationLevel.LEVEL_REMOVE_DEAD_CODE) {
|
||||
@@ -329,8 +329,8 @@ public final class MethodBody implements Cloneable {
|
||||
* newinstruction is jump, the offset operand must be handled properly by
|
||||
* caller.
|
||||
*
|
||||
* @param pos
|
||||
* @param instruction
|
||||
* @param pos Position
|
||||
* @param instruction Instruction
|
||||
*/
|
||||
public void replaceInstruction(int pos, AVM2Instruction instruction) {
|
||||
getCode().replaceInstruction(pos, instruction, this);
|
||||
@@ -446,7 +446,7 @@ public final class MethodBody implements Cloneable {
|
||||
* @param initTraits Initial traits
|
||||
* @param firstLevel First level
|
||||
* @param seenMethods Seen methods
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void convert(List<MethodBody> callStack, AbcIndexing abcIndex, final ConvertData convertData, final String path, ScriptExportMode exportMode, final boolean isStatic, final int methodIndex, final int scriptIndex, final int classIndex, final ABC abc, final Trait trait, final ScopeStack scopeStack, final int initializerType, final NulWriter writer, final List<DottedChain> fullyQualifiedNames, Traits initTraits, boolean firstLevel, Set<Integer> seenMethods) throws InterruptedException {
|
||||
seenMethods.add(this.method_info);
|
||||
@@ -532,7 +532,7 @@ public final class MethodBody implements Cloneable {
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @param seenMethods Seen methods
|
||||
* @return Writer
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public GraphTextWriter toString(List<MethodBody> callStack, AbcIndexing abcIndex, final String path, ScriptExportMode exportMode, final ABC abc, final Trait trait, final GraphTextWriter writer, final List<DottedChain> fullyQualifiedNames, Set<Integer> seenMethods) throws InterruptedException {
|
||||
seenMethods.add(method_info);
|
||||
@@ -590,7 +590,7 @@ public final class MethodBody implements Cloneable {
|
||||
* @param abc ABC file
|
||||
* @param trait Trait
|
||||
* @return Method body
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public MethodBody convertMethodBodyCanUseLast(boolean deobfuscate, String path, boolean isStatic, int scriptIndex, int classIndex, ABC abc, Trait trait) throws InterruptedException {
|
||||
if (lastConvertedBody != null) {
|
||||
@@ -617,7 +617,7 @@ public final class MethodBody implements Cloneable {
|
||||
* @param abc ABC file
|
||||
* @param trait Trait
|
||||
* @return Method body
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public MethodBody convertMethodBody(boolean deobfuscate, String path, boolean isStatic, int scriptIndex, int classIndex, ABC abc, Trait trait) throws InterruptedException {
|
||||
MethodBody body = clone();
|
||||
|
||||
@@ -970,8 +970,8 @@ public class Multiname {
|
||||
* Checks if this multiname is effectively a QName. Efectively means that it
|
||||
* is a QName or QNameA or MULTINAME with only one namespace.
|
||||
*
|
||||
* @param thisCpool
|
||||
* @return
|
||||
* @param thisCpool This constant pool
|
||||
* @return True if it's effectively a QName
|
||||
*/
|
||||
private boolean isEfectivelyQname(AVM2ConstantPool thisCpool) {
|
||||
return kind == QNAME || kind == QNAMEA || isMULTINAMEwithOneNs(thisCpool);
|
||||
|
||||
@@ -276,7 +276,7 @@ public abstract class Trait implements Cloneable, Serializable {
|
||||
* @param ignorePackage Ignore package
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @param uses Uses
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void getDependencies(AbcIndexing abcIndex, int scriptIndex, int classIndex, boolean isStatic, String customNamespace, ABC abc, List<Dependency> dependencies, DottedChain ignorePackage, List<DottedChain> fullyQualifiedNames, List<String> uses) throws InterruptedException {
|
||||
if (customNamespace == null) {
|
||||
@@ -361,7 +361,7 @@ public abstract class Trait implements Cloneable, Serializable {
|
||||
* @param writer Writer
|
||||
* @param ignorePackage Ignore package
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void writeImports(AbcIndexing abcIndex, int scriptIndex, int classIndex, boolean isStatic, ABC abc, GraphTextWriter writer, DottedChain ignorePackage, List<DottedChain> fullyQualifiedNames) throws InterruptedException {
|
||||
|
||||
@@ -680,7 +680,7 @@ public abstract class Trait implements Cloneable, Serializable {
|
||||
* @param parallel Parallel
|
||||
* @param insideInterface Inside interface
|
||||
* @return Writer
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public GraphTextWriter toString(AbcIndexing abcIndex, Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, GraphTextWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel, boolean insideInterface) throws InterruptedException {
|
||||
writer.appendNoHilight(abc.constants.getMultiname(name_index).toString(abc.constants, fullyQualifiedNames) + " kind=" + kindType + " metadata=" + Helper.intArrToString(metadata));
|
||||
@@ -703,7 +703,7 @@ public abstract class Trait implements Cloneable, Serializable {
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @param parallel Parallel
|
||||
* @param scopeStack Scope stack
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void convert(AbcIndexing abcIndex, Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, NulWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel, ScopeStack scopeStack) throws InterruptedException {
|
||||
}
|
||||
@@ -816,7 +816,7 @@ public abstract class Trait implements Cloneable, Serializable {
|
||||
* @param parallel Parallel
|
||||
* @param insideInterface Inside interface
|
||||
* @return Writer
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public GraphTextWriter toStringPackaged(AbcIndexing abcIndex, Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, GraphTextWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel, boolean insideInterface) throws InterruptedException {
|
||||
Multiname name = abc.constants.getMultiname(name_index);
|
||||
@@ -851,7 +851,7 @@ public abstract class Trait implements Cloneable, Serializable {
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @param parallel Parallel
|
||||
* @param scopeStack Scope stack
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void convertPackaged(AbcIndexing abcIndex, Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, NulWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel, ScopeStack scopeStack) throws InterruptedException {
|
||||
Multiname name = abc.constants.getMultiname(name_index);
|
||||
@@ -878,7 +878,7 @@ public abstract class Trait implements Cloneable, Serializable {
|
||||
* @param parallel Parallel
|
||||
* @param insideInterface Inside interface
|
||||
* @return Writer
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public GraphTextWriter toStringHeader(Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, GraphTextWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel, boolean insideInterface) throws InterruptedException {
|
||||
toString(null, parent, convertData, path, abc, isStatic, exportMode, scriptIndex, classIndex, writer, fullyQualifiedNames, parallel, insideInterface);
|
||||
@@ -899,7 +899,7 @@ public abstract class Trait implements Cloneable, Serializable {
|
||||
* @param writer Writer
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @param parallel Parallel
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void convertHeader(Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, NulWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel) throws InterruptedException {
|
||||
convert(null, parent, convertData, path, abc, isStatic, exportMode, scriptIndex, classIndex, writer, fullyQualifiedNames, parallel, new ScopeStack());
|
||||
@@ -928,7 +928,7 @@ public abstract class Trait implements Cloneable, Serializable {
|
||||
* @param abc ABC
|
||||
* @param path Path
|
||||
* @return Number of removed traps
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public abstract int removeTraps(int scriptIndex, int classIndex, boolean isStatic, ABC abc, String path) throws InterruptedException;
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ public class TraitClass extends Trait implements TraitWithSlot {
|
||||
* @param ignorePackage Ignore package
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @param uses Uses
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public void getDependencies(AbcIndexing abcIndex, int scriptIndex, int classIndex, boolean isStatic, String customNamespace, ABC abc, List<Dependency> dependencies, DottedChain ignorePackage, List<DottedChain> fullyQualifiedNames, List<String> uses) throws InterruptedException {
|
||||
@@ -216,7 +216,7 @@ public class TraitClass extends Trait implements TraitWithSlot {
|
||||
* @param parallel Parallel
|
||||
* @param insideInterface Inside interface
|
||||
* @return Writer
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public GraphTextWriter toString(AbcIndexing abcIndex, Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, GraphTextWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel, boolean insideInterface) throws InterruptedException {
|
||||
@@ -363,7 +363,7 @@ public class TraitClass extends Trait implements TraitWithSlot {
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @param parallel Parallel
|
||||
* @param scopeStack Scope stack
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public void convert(AbcIndexing abcIndex, Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, NulWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel, ScopeStack scopeStack) throws InterruptedException {
|
||||
@@ -490,7 +490,7 @@ public class TraitClass extends Trait implements TraitWithSlot {
|
||||
* @param abc ABC
|
||||
* @param path Path
|
||||
* @return Number of removed traps
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public int removeTraps(int scriptIndex, int classIndex, boolean isStatic, ABC abc, String path) throws InterruptedException {
|
||||
|
||||
@@ -68,7 +68,7 @@ public class TraitFunction extends Trait implements TraitWithSlot {
|
||||
/**
|
||||
* Gets slot index.
|
||||
*
|
||||
* @return
|
||||
* @return Slot index
|
||||
*/
|
||||
@Override
|
||||
public int getSlotIndex() {
|
||||
@@ -156,7 +156,7 @@ public class TraitFunction extends Trait implements TraitWithSlot {
|
||||
* @param parallel Parallel
|
||||
* @param insideInterface Inside interface
|
||||
* @return Writer
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public GraphTextWriter toString(AbcIndexing abcIndex, Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, GraphTextWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel, boolean insideInterface) throws InterruptedException {
|
||||
@@ -196,7 +196,7 @@ public class TraitFunction extends Trait implements TraitWithSlot {
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @param parallel Parallel
|
||||
* @param scopeStack Scope stack
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public void convert(AbcIndexing abcIndex, Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, NulWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel, ScopeStack scopeStack) throws InterruptedException {
|
||||
@@ -222,7 +222,7 @@ public class TraitFunction extends Trait implements TraitWithSlot {
|
||||
* @param abc ABC
|
||||
* @param path Path
|
||||
* @return Number of removed traps
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public int removeTraps(int scriptIndex, int classIndex, boolean isStatic, ABC abc, String path) throws InterruptedException {
|
||||
@@ -257,7 +257,7 @@ public class TraitFunction extends Trait implements TraitWithSlot {
|
||||
* @param ignorePackage Ignore package
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @param uses Uses
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public void getDependencies(AbcIndexing abcIndex, int scriptIndex, int classIndex, boolean isStatic, String customNamespace, ABC abc, List<Dependency> dependencies, DottedChain ignorePackage, List<DottedChain> fullyQualifiedNames, List<String> uses) throws InterruptedException {
|
||||
|
||||
+4
-4
@@ -101,7 +101,7 @@ public class TraitMethodGetterSetter extends Trait {
|
||||
* @param ignorePackage Ignore package
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @param uses Uses
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public void getDependencies(AbcIndexing abcIndex, int scriptIndex, int classIndex, boolean isStatic, String customNamespace, ABC abc, List<Dependency> dependencies, DottedChain ignorePackage, List<DottedChain> fullyQualifiedNames, List<String> uses) throws InterruptedException {
|
||||
@@ -179,7 +179,7 @@ public class TraitMethodGetterSetter extends Trait {
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @param parallel Parallel
|
||||
* @param scopeStack Scope stack
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public void convert(AbcIndexing abcIndex, Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, NulWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel, ScopeStack scopeStack) throws InterruptedException {
|
||||
@@ -231,7 +231,7 @@ public class TraitMethodGetterSetter extends Trait {
|
||||
* @param parallel Parallel
|
||||
* @param insideInterface Inside interface
|
||||
* @return Writer
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public GraphTextWriter toString(AbcIndexing abcIndex, Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, GraphTextWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel, boolean insideInterface) throws InterruptedException {
|
||||
@@ -295,7 +295,7 @@ public class TraitMethodGetterSetter extends Trait {
|
||||
* @param abc ABC
|
||||
* @param path Path
|
||||
* @return Number of removed traps
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public int removeTraps(int scriptIndex, int classIndex, boolean isStatic, ABC abc, String path) throws InterruptedException {
|
||||
|
||||
+4
-4
@@ -170,7 +170,7 @@ public class TraitSlotConst extends Trait implements TraitWithSlot {
|
||||
* @param writer Writer
|
||||
* @param abc ABC
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void getValueStr(AbcIndexing abcIndex, ScriptExportMode exportMode, Trait parent, ConvertData convertData, GraphTextWriter writer, ABC abc, List<DottedChain> fullyQualifiedNames) throws InterruptedException {
|
||||
if (convertData.assignedValues.containsKey(this)) {
|
||||
@@ -247,7 +247,7 @@ public class TraitSlotConst extends Trait implements TraitWithSlot {
|
||||
* @param parallel Parallel
|
||||
* @param insideInterface Inside interface
|
||||
* @return Writer
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public GraphTextWriter toString(AbcIndexing abcIndex, Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, GraphTextWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel, boolean insideInterface) throws InterruptedException {
|
||||
@@ -298,7 +298,7 @@ public class TraitSlotConst extends Trait implements TraitWithSlot {
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @param parallel Parallel
|
||||
* @param scopeStack Scope stack
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public void convert(AbcIndexing abcIndex, Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, NulWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel, ScopeStack scopeStack) throws InterruptedException {
|
||||
@@ -366,7 +366,7 @@ public class TraitSlotConst extends Trait implements TraitWithSlot {
|
||||
* @param ignorePackage Ignore package
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @param uses Uses
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public void getDependencies(AbcIndexing abcIndex, int scriptIndex, int classIndex, boolean isStatic, String customNamespace, ABC abc, List<Dependency> dependencies, DottedChain ignorePackage, List<DottedChain> fullyQualifiedNames, List<String> uses) throws InterruptedException {
|
||||
|
||||
@@ -105,7 +105,7 @@ public class Traits implements Cloneable, Serializable {
|
||||
* @param abc ABC file
|
||||
* @param path Path
|
||||
* @return Number of removed traps
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public int removeTraps(int scriptIndex, int classIndex, boolean isStatic, ABC abc, String path) throws InterruptedException {
|
||||
int ret = 0;
|
||||
@@ -278,7 +278,7 @@ public class Traits implements Cloneable, Serializable {
|
||||
* Calls the task.
|
||||
*
|
||||
* @return Null
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public Void call() throws InterruptedException {
|
||||
@@ -311,7 +311,7 @@ public class Traits implements Cloneable, Serializable {
|
||||
* @param ignoredTraitNames Ignored trait names
|
||||
* @param insideInterface Inside interface flag
|
||||
* @return Writer
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public GraphTextWriter toString(AbcIndexing abcIndex, Class[] traitTypes, Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, boolean makePackages, int scriptIndex, int classIndex, GraphTextWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel, List<String> ignoredTraitNames, boolean insideInterface) throws InterruptedException {
|
||||
|
||||
@@ -406,7 +406,7 @@ public class Traits implements Cloneable, Serializable {
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @param parallel Parallel flag
|
||||
* @param scopeStack Scope stack
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void convert(AbcIndexing abcIndex, Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, boolean makePackages, int scriptIndex, int classIndex, NulWriter writer, List<DottedChain> fullyQualifiedNames, boolean parallel, ScopeStack scopeStack) throws InterruptedException {
|
||||
if (!parallel || traits.size() < 2) {
|
||||
@@ -476,7 +476,7 @@ public class Traits implements Cloneable, Serializable {
|
||||
* @param ignorePackage Ignore package
|
||||
* @param fullyQualifiedNames Fully qualified names
|
||||
* @param uses Uses
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public void getDependencies(AbcIndexing abcIndex, int scriptIndex, int classIndex, boolean isStatic, String customNs, ABC abc, List<Dependency> dependencies, DottedChain ignorePackage, List<DottedChain> fullyQualifiedNames, List<String> uses) throws InterruptedException {
|
||||
for (Trait t : traits) {
|
||||
|
||||
@@ -108,7 +108,7 @@ public abstract class ABCWalker {
|
||||
* @param scriptTraitIndex Script trait index
|
||||
* @param traitIndex Trait index
|
||||
* @param walkType Walk type
|
||||
* @return
|
||||
* @return True if handled
|
||||
*/
|
||||
private boolean optionalHandleClass(Set<Integer> handledClasses, Set<Integer> handledMethodBodies, Set<Integer> handledMethodInfos, ABC abc, int index, int scriptIndex, int scriptTraitIndex, int traitIndex, WalkType walkType) {
|
||||
if (handledClasses.contains(index)) {
|
||||
|
||||
@@ -1190,7 +1190,7 @@ public abstract class Action implements GraphSourceItem {
|
||||
*
|
||||
* @param cnt Container
|
||||
* @param variables Variables - map of variable names to variable items
|
||||
* @return
|
||||
* @return Variables
|
||||
*/
|
||||
private static HashMap<String, GraphTargetItem> prepareVariables(GraphSourceItemContainer cnt, HashMap<String, GraphTargetItem> variables) {
|
||||
HashMap<String, GraphTargetItem> variables2 = new LinkedHashMap<>(variables);
|
||||
|
||||
@@ -810,7 +810,7 @@ public class ActionListReader {
|
||||
* @param visitedContainers Visited containers
|
||||
* @param charset Charset
|
||||
* @return Action
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private static Action readActionListAtPos(List<DisassemblyListener> listeners, ConstantPool cpool,
|
||||
SWFInputStream sis, Map<Long, Action> actions, Map<Long, Long> nextOffsets,
|
||||
@@ -959,7 +959,7 @@ public class ActionListReader {
|
||||
* @param indeterminate Indeterminate
|
||||
* @param visitedContainers Visited containers
|
||||
* @return True if constant pools were fixed, false otherwise
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private static boolean fixConstantPools(List<DisassemblyListener> listeners, ConstantPool cpool,
|
||||
List<Action> actions, Map<Integer, Action> actionMap,
|
||||
|
||||
@@ -161,7 +161,7 @@ public class DisplayObject extends ActionScriptObject {
|
||||
* Removes from display list.
|
||||
*
|
||||
* @param depth Depth.
|
||||
* @return
|
||||
* @return Object
|
||||
*/
|
||||
public Object removeFromDisplayList(int depth) {
|
||||
return displayList.remove(depth);
|
||||
@@ -171,7 +171,7 @@ public class DisplayObject extends ActionScriptObject {
|
||||
* Gets from display list.
|
||||
*
|
||||
* @param depth Depth.
|
||||
* @return
|
||||
* @return Object
|
||||
*/
|
||||
public Object getFromDisplayList(int depth) {
|
||||
return displayList.get(depth);
|
||||
|
||||
+2
-2
@@ -193,7 +193,7 @@ public class ActionScript2ClassDetector {
|
||||
*
|
||||
* @param nobj Item
|
||||
* @return Converted item
|
||||
* @throws AssertException
|
||||
* @throws AssertException If item is not NewMethod or NewObject
|
||||
*/
|
||||
private GraphTargetItem newToGetMember(GraphTargetItem nobj) throws AssertException {
|
||||
if (nobj instanceof NewMethodActionItem) {
|
||||
@@ -307,7 +307,7 @@ public class ActionScript2ClassDetector {
|
||||
* @param item Item
|
||||
* @param itemName Item name for exception
|
||||
* @return String
|
||||
* @throws AssertException
|
||||
* @throws AssertException If item is not DirectValue or not string
|
||||
*/
|
||||
private String getAsString(GraphTargetItem item, String itemName) throws AssertException {
|
||||
if (!(item instanceof DirectValueActionItem)) {
|
||||
|
||||
+1
-1
@@ -275,7 +275,7 @@ public class FastActionList implements Collection<ActionItem> {
|
||||
* @param actions Action list
|
||||
* @param action Action
|
||||
* @param actionItemMap Action item map
|
||||
* @return
|
||||
* @return Last actions
|
||||
*/
|
||||
private List<ActionItem> getContainerLastActions(ActionList actions, Action action, Map<Action, ActionItem> actionItemMap) {
|
||||
GraphSourceItemContainer container = (GraphSourceItemContainer) action;
|
||||
|
||||
+3
-3
@@ -44,7 +44,7 @@ public final class FastActionListIterator implements Iterator<ActionItem> {
|
||||
/**
|
||||
* Constructs a new FastActionListIterator.
|
||||
*
|
||||
* @param list
|
||||
* @param list List
|
||||
*/
|
||||
FastActionListIterator(FastActionList list) {
|
||||
item = list.first();
|
||||
@@ -54,8 +54,8 @@ public final class FastActionListIterator implements Iterator<ActionItem> {
|
||||
/**
|
||||
* Constructs a new FastActionListIterator.
|
||||
*
|
||||
* @param list
|
||||
* @param index
|
||||
* @param list List
|
||||
* @param index Index
|
||||
*/
|
||||
FastActionListIterator(FastActionList list, int index) {
|
||||
item = list.first();
|
||||
|
||||
@@ -39,7 +39,7 @@ public interface SetTypeActionItem {
|
||||
|
||||
/**
|
||||
* Sets temp register.
|
||||
* @param regIndex
|
||||
* @param regIndex Temp register
|
||||
*/
|
||||
public void setTempRegister(int regIndex);
|
||||
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ public class StringLtActionItem extends BinaryOpItem implements Inverted {
|
||||
* @param instruction Instruction
|
||||
* @param lineStartIns Line start instruction
|
||||
* @param leftSide Left side
|
||||
* @param rightSide
|
||||
* @param rightSide Right side
|
||||
*/
|
||||
public StringLtActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) {
|
||||
super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, leftSide, rightSide, "lt", "String", "String");
|
||||
|
||||
+2
-2
@@ -32,7 +32,7 @@ public interface ObjectTypeSerializeHandler {
|
||||
* @param className Class name of the object.
|
||||
* @param is Input stream.
|
||||
* @return Map of object members.
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public Map<String, Object> readObject(String className, InputStream is) throws IOException;
|
||||
|
||||
@@ -41,7 +41,7 @@ public interface ObjectTypeSerializeHandler {
|
||||
*
|
||||
* @param members Map of object members.
|
||||
* @param os Output stream.
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeObject(Map<String, Object> members, OutputStream os) throws IOException;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ public class Traits {
|
||||
* Constructor.
|
||||
* @param className Class name
|
||||
* @param dynamic Dynamic
|
||||
* @param sealedMemberNames
|
||||
* @param sealedMemberNames Sealed member names
|
||||
*/
|
||||
public Traits(String className, boolean dynamic, Collection<? extends String> sealedMemberNames) {
|
||||
this.className = className;
|
||||
|
||||
@@ -119,9 +119,9 @@ public class EcmaScript {
|
||||
|
||||
/**
|
||||
* Object.getProperty.
|
||||
* @param o
|
||||
* @param p
|
||||
* @return
|
||||
* @param o Object
|
||||
* @param p Property
|
||||
* @return Value
|
||||
*/
|
||||
public static Object object_getProperty(ObjectType o, String p) {
|
||||
//TODO: getownproperty, etc... ECMA 8.12.2
|
||||
|
||||
+3
-3
@@ -56,7 +56,7 @@ public class LinkReportExporter {
|
||||
/**
|
||||
* Constructs reporter with custom newline char, two spaces as indent.
|
||||
*
|
||||
* @param newLineChar
|
||||
* @param newLineChar Newline char
|
||||
*/
|
||||
public LinkReportExporter(String newLineChar) {
|
||||
this.newLineChar = newLineChar;
|
||||
@@ -65,8 +65,8 @@ public class LinkReportExporter {
|
||||
/**
|
||||
* Constructs reporter with custom newline char and indent string.
|
||||
*
|
||||
* @param newLineChar
|
||||
* @param indentStr
|
||||
* @param newLineChar Newline char
|
||||
* @param indentStr Indent string
|
||||
*/
|
||||
public LinkReportExporter(String newLineChar, String indentStr) {
|
||||
this.newLineChar = newLineChar;
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ public class MiterClipBasicStroke implements Stroke {
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
* @param stroke
|
||||
* @param stroke Basic stroke
|
||||
*/
|
||||
public MiterClipBasicStroke(BasicStroke stroke) {
|
||||
this.stroke = stroke;
|
||||
|
||||
@@ -50,7 +50,7 @@ public class PathExporter extends ShapeExporterBase {
|
||||
* @param shapeNum Shape number
|
||||
* @param swf SWF
|
||||
* @param shape Shape
|
||||
* @return
|
||||
* @return List of GeneralPath
|
||||
*/
|
||||
public static List<GeneralPath> export(int windingRule, int shapeNum, SWF swf, SHAPE shape) {
|
||||
return export(windingRule, shapeNum, swf, shape, new ArrayList<>());
|
||||
|
||||
@@ -38,7 +38,7 @@ public class SwfFile {
|
||||
* Saves SWF to file
|
||||
*
|
||||
* @param fileName File name
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void saveTo(String fileName) throws IOException {
|
||||
/*SWF swf = getSwf();
|
||||
|
||||
@@ -98,7 +98,7 @@ public class FLVInputStream {
|
||||
* Reads one byte from the stream
|
||||
*
|
||||
* @return byte
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private int readEx() throws IOException {
|
||||
bitPos = 0;
|
||||
@@ -110,7 +110,7 @@ public class FLVInputStream {
|
||||
*
|
||||
* @param nBits Number of bits which represent value
|
||||
* @return Unsigned value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public long readUB(int nBits) throws IOException {
|
||||
if (nBits == 0) {
|
||||
@@ -135,7 +135,7 @@ public class FLVInputStream {
|
||||
*
|
||||
* @param nBits Number of bits which represent value
|
||||
* @return Unsigned value
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
private long readUBInternal(int nBits) throws IOException {
|
||||
if (nBits == 0) {
|
||||
|
||||
@@ -195,7 +195,7 @@ public class GfxConvertor {
|
||||
* Converts tags.
|
||||
* @param source Source
|
||||
* @param target Target
|
||||
* @return
|
||||
* @return List of tags
|
||||
*/
|
||||
public List<Tag> converTags(Timelined source, Timelined target) {
|
||||
List<Tag> ret = new ArrayList<>();
|
||||
|
||||
@@ -131,7 +131,7 @@ public abstract class GraphTextWriter {
|
||||
|
||||
/**
|
||||
* Ends method.
|
||||
* @return
|
||||
* @return Writer
|
||||
*/
|
||||
public GraphTextWriter endMethod() {
|
||||
return this;
|
||||
@@ -139,7 +139,7 @@ public abstract class GraphTextWriter {
|
||||
|
||||
/**
|
||||
* Ends function.
|
||||
* @return
|
||||
* @return Writer
|
||||
*/
|
||||
public GraphTextWriter endFunction() {
|
||||
return this;
|
||||
|
||||
@@ -115,10 +115,10 @@ public class HighlightedTextWriter extends GraphTextWriter {
|
||||
/**
|
||||
* Highlights specified text as instruction by adding special tags
|
||||
*
|
||||
* @param src
|
||||
* @param startLineItem
|
||||
* @param src Source item
|
||||
* @param startLineItem Start line item
|
||||
* @param pos Offset of instruction
|
||||
* @param data
|
||||
* @param data Data
|
||||
* @return HighlightedTextWriter
|
||||
*/
|
||||
@Override
|
||||
|
||||
@@ -77,14 +77,16 @@ public class IggyHeader implements StructureInterface {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param version
|
||||
* @param platform1
|
||||
* @param platform2 32/64
|
||||
* @param platform3
|
||||
* @param platform4
|
||||
* @param unk_0C
|
||||
* @param reserved
|
||||
* @param num_subfiles
|
||||
* Constructor.
|
||||
*
|
||||
* @param version Version
|
||||
* @param platform1 Platform 1
|
||||
* @param platform2 Platform 2 (32/64)
|
||||
* @param platform3 Platform 3
|
||||
* @param platform4 Platform 4
|
||||
* @param unk_0C Unknown 0C
|
||||
* @param reserved Reserved
|
||||
* @param num_subfiles Number of subfiles
|
||||
*/
|
||||
public IggyHeader(long version, int platform1, int platform2, int platform3, int platform4, long unk_0C, byte[] reserved, long num_subfiles) {
|
||||
this.version = version;
|
||||
|
||||
@@ -183,7 +183,7 @@ public class ImageImporter extends TagImporter {
|
||||
* Converts image.
|
||||
* @param it Image tag
|
||||
* @param tagType 0 = can change for defineBits, -1 = detect based on data
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void convertImage(ImageTag it, int tagType) throws IOException {
|
||||
importImage(it, Helper.readStream(it.getConvertedImageData()), tagType);
|
||||
|
||||
@@ -63,7 +63,7 @@ public class ShapeImporter {
|
||||
* @param st Shape tag
|
||||
* @param newData New image data
|
||||
* @return Imported tag
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public Tag importImage(ShapeTag st, byte[] newData) throws IOException {
|
||||
return importImage((Tag) st, newData, 0, true);
|
||||
@@ -87,7 +87,7 @@ public class ShapeImporter {
|
||||
* @param tagType Tag type
|
||||
* @param fill Fill flag
|
||||
* @return Imported tag
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public Tag importImage(MorphShapeTag mst, byte[] newData, int tagType, boolean fill) throws IOException {
|
||||
return importImage((Tag) mst, newData, tagType, fill);
|
||||
|
||||
@@ -72,7 +72,7 @@ public class SoundImporter {
|
||||
* @param is Input stream
|
||||
* @param newSoundFormat New sound format
|
||||
* @return True if sound was imported successfully
|
||||
* @throws SoundImportException
|
||||
* @throws SoundImportException On sound import error
|
||||
*/
|
||||
public boolean importDefineSound(DefineSoundTag soundTag, InputStream is, int newSoundFormat) throws SoundImportException {
|
||||
int newSoundRate = -1;
|
||||
@@ -215,7 +215,7 @@ public class SoundImporter {
|
||||
*
|
||||
* @param in MP3 InputStream
|
||||
* @return size of ID3v2 frames + header
|
||||
* @throws IOException
|
||||
* @throws IOException On I/O error
|
||||
* @author JavaZOOM
|
||||
*/
|
||||
private int readID3v2Header(InputStream in) throws IOException {
|
||||
|
||||
+3
-3
@@ -496,9 +496,9 @@ public class Amf3Importer {
|
||||
/**
|
||||
* Deeply replace all ReferencedObjectType with the correct value
|
||||
*
|
||||
* @param object
|
||||
* @param objectsTable
|
||||
* @return
|
||||
* @param object Object
|
||||
* @param objectsTable Objects table
|
||||
* @return Replaced object
|
||||
*/
|
||||
private Object replaceReferences(Object object, Map<String, Object> objectsTable) throws Amf3ParseException {
|
||||
if (object instanceof ReferencedObjectType) {
|
||||
|
||||
@@ -143,7 +143,7 @@ public class Intersections {
|
||||
* @param p1 Start point
|
||||
* @param p2 Control point
|
||||
* @param p3 End point
|
||||
* @return
|
||||
* @return List of points
|
||||
*/
|
||||
public static List<Point2D> quadraticBezierToToPolyline(Point2D p1, Point2D p2, Point2D p3) {
|
||||
return quadraticBezierToToPolyline(p1, p2, p3, null);
|
||||
|
||||
@@ -55,7 +55,7 @@ public interface Packer {
|
||||
* @param os Stream to write unpacked data to
|
||||
* @return True if it was unpacked correctly, False if it is not suitable
|
||||
* for unpacking or an error happened.
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public boolean decrypt(InputStream is, OutputStream os) throws IOException;
|
||||
|
||||
@@ -65,7 +65,7 @@ public interface Packer {
|
||||
* @param is Data to pack
|
||||
* @param os Stream to write packed data to
|
||||
* @return True if packed successfully, False if error happened.
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public boolean encrypt(InputStream is, OutputStream os) throws IOException;
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ public class CSMTextSettingsTag extends Tag implements CharacterIdTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public CSMTextSettingsTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -76,9 +76,9 @@ public class CSMTextSettingsTag extends Tag implements CharacterIdTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public CSMTextSettingsTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -100,7 +100,7 @@ public class CSMTextSettingsTag extends Tag implements CharacterIdTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -47,7 +47,7 @@ public class DebugIDTag extends Tag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DebugIDTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -57,9 +57,9 @@ public class DebugIDTag extends Tag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DebugIDTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -75,7 +75,7 @@ public class DebugIDTag extends Tag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -85,7 +85,7 @@ public class DefineBinaryDataTag extends CharacterTag implements BinaryDataInter
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineBinaryDataTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -154,7 +154,7 @@ public class DefineBinaryDataTag extends CharacterTag implements BinaryDataInter
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -57,7 +57,7 @@ public class DefineBitsJPEG2Tag extends ImageTag implements AloneTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineBitsJPEG2Tag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -75,9 +75,9 @@ public class DefineBitsJPEG2Tag extends ImageTag implements AloneTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineBitsJPEG2Tag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -94,7 +94,7 @@ public class DefineBitsJPEG2Tag extends ImageTag implements AloneTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -64,7 +64,7 @@ public class DefineBitsJPEG3Tag extends ImageTag implements AloneTag, HasSeparat
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineBitsJPEG3Tag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -85,9 +85,9 @@ public class DefineBitsJPEG3Tag extends ImageTag implements AloneTag, HasSeparat
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineBitsJPEG3Tag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -106,7 +106,7 @@ public class DefineBitsJPEG3Tag extends ImageTag implements AloneTag, HasSeparat
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -67,7 +67,7 @@ public class DefineBitsJPEG4Tag extends ImageTag implements AloneTag, HasSeparat
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineBitsJPEG4Tag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -88,9 +88,9 @@ public class DefineBitsJPEG4Tag extends ImageTag implements AloneTag, HasSeparat
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineBitsJPEG4Tag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -110,7 +110,7 @@ public class DefineBitsJPEG4Tag extends ImageTag implements AloneTag, HasSeparat
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -88,7 +88,7 @@ public class DefineBitsLossless2Tag extends ImageTag implements AloneTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineBitsLossless2Tag(SWF swf) {
|
||||
this(swf, null, swf.getNextCharacterId());
|
||||
@@ -126,7 +126,7 @@ public class DefineBitsLossless2Tag extends ImageTag implements AloneTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -91,7 +91,7 @@ public class DefineBitsLosslessTag extends ImageTag implements AloneTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineBitsLosslessTag(SWF swf) {
|
||||
this(swf, null, swf.getNextCharacterId());
|
||||
@@ -129,7 +129,7 @@ public class DefineBitsLosslessTag extends ImageTag implements AloneTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -57,7 +57,7 @@ public class DefineBitsTag extends ImageTag implements TagChangedListener {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineBitsTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -69,9 +69,9 @@ public class DefineBitsTag extends ImageTag implements TagChangedListener {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineBitsTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -88,7 +88,7 @@ public class DefineBitsTag extends ImageTag implements TagChangedListener {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -83,7 +83,7 @@ public class DefineButton2Tag extends ButtonTag implements ASMSourceContainer {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineButton2Tag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -94,9 +94,9 @@ public class DefineButton2Tag extends ButtonTag implements ASMSourceContainer {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineButton2Tag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -119,7 +119,7 @@ public class DefineButton2Tag extends ButtonTag implements ASMSourceContainer {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -49,7 +49,7 @@ public class DefineButtonCxformTag extends Tag implements CharacterIdTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineButtonCxformTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -59,9 +59,9 @@ public class DefineButtonCxformTag extends Tag implements CharacterIdTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineButtonCxformTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -78,7 +78,7 @@ public class DefineButtonCxformTag extends Tag implements CharacterIdTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -67,7 +67,7 @@ public class DefineButtonSoundTag extends Tag implements CharacterIdTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineButtonSoundTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -76,9 +76,9 @@ public class DefineButtonSoundTag extends Tag implements CharacterIdTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineButtonSoundTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -110,7 +110,7 @@ public class DefineButtonSoundTag extends Tag implements CharacterIdTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -77,7 +77,7 @@ public class DefineButtonTag extends ButtonTag implements ASMSourceContainer {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineButtonTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -89,9 +89,9 @@ public class DefineButtonTag extends ButtonTag implements ASMSourceContainer {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineButtonTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -109,7 +109,7 @@ public class DefineButtonTag extends ButtonTag implements ASMSourceContainer {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -190,7 +190,7 @@ public class DefineEditTextTag extends TextTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineEditTextTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -202,9 +202,9 @@ public class DefineEditTextTag extends TextTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineEditTextTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -265,7 +265,7 @@ public class DefineEditTextTag extends TextTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -112,7 +112,7 @@ public class DefineFont2Tag extends FontTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineFont2Tag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -126,9 +126,9 @@ public class DefineFont2Tag extends FontTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineFont2Tag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -263,7 +263,7 @@ public class DefineFont2Tag extends FontTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public synchronized void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -112,7 +112,7 @@ public class DefineFont3Tag extends FontTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineFont3Tag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -249,7 +249,7 @@ public class DefineFont3Tag extends FontTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public synchronized void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -59,7 +59,7 @@ public class DefineFont4Tag extends CharacterTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineFont4Tag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -88,7 +88,7 @@ public class DefineFont4Tag extends CharacterTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -65,7 +65,7 @@ public class DefineFontAlignZonesTag extends Tag implements CharacterIdTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineFontAlignZonesTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -93,7 +93,7 @@ public class DefineFontAlignZonesTag extends Tag implements CharacterIdTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -69,7 +69,7 @@ public class DefineFontInfo2Tag extends FontInfoTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineFontInfo2Tag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -81,9 +81,9 @@ public class DefineFontInfo2Tag extends FontInfoTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineFontInfo2Tag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -113,7 +113,7 @@ public class DefineFontInfo2Tag extends FontInfoTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -66,7 +66,7 @@ public class DefineFontInfoTag extends FontInfoTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineFontInfoTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -77,9 +77,9 @@ public class DefineFontInfoTag extends FontInfoTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineFontInfoTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -111,7 +111,7 @@ public class DefineFontInfoTag extends FontInfoTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -50,7 +50,7 @@ public class DefineFontNameTag extends Tag implements CharacterIdTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineFontNameTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -74,7 +74,7 @@ public class DefineFontNameTag extends Tag implements CharacterIdTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -67,7 +67,7 @@ public class DefineFontTag extends FontTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineFontTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -78,9 +78,9 @@ public class DefineFontTag extends FontTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineFontTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -118,7 +118,7 @@ public class DefineFontTag extends FontTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public synchronized void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -64,7 +64,7 @@ public class DefineMorphShape2Tag extends MorphShapeTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineMorphShape2Tag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -84,9 +84,9 @@ public class DefineMorphShape2Tag extends MorphShapeTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineMorphShape2Tag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -114,7 +114,7 @@ public class DefineMorphShape2Tag extends MorphShapeTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -47,7 +47,7 @@ public class DefineMorphShapeTag extends MorphShapeTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineMorphShapeTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -65,9 +65,9 @@ public class DefineMorphShapeTag extends MorphShapeTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineMorphShapeTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -90,7 +90,7 @@ public class DefineMorphShapeTag extends MorphShapeTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -60,7 +60,7 @@ public class DefineScalingGridTag extends Tag implements CharacterIdTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineScalingGridTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -82,7 +82,7 @@ public class DefineScalingGridTag extends Tag implements CharacterIdTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
+5
-5
@@ -60,7 +60,7 @@ public class DefineSceneAndFrameLabelDataTag extends Tag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineSceneAndFrameLabelDataTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -73,9 +73,9 @@ public class DefineSceneAndFrameLabelDataTag extends Tag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineSceneAndFrameLabelDataTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -105,7 +105,7 @@ public class DefineSceneAndFrameLabelDataTag extends Tag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -41,7 +41,7 @@ public class DefineShape2Tag extends ShapeTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineShape2Tag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -71,7 +71,7 @@ public class DefineShape2Tag extends ShapeTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -41,7 +41,7 @@ public class DefineShape3Tag extends ShapeTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineShape3Tag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -71,7 +71,7 @@ public class DefineShape3Tag extends ShapeTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -57,7 +57,7 @@ public class DefineShape4Tag extends ShapeTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineShape4Tag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -93,7 +93,7 @@ public class DefineShape4Tag extends ShapeTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -41,7 +41,7 @@ public class DefineShapeTag extends ShapeTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineShapeTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -71,7 +71,7 @@ public class DefineShapeTag extends ShapeTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -79,7 +79,7 @@ public class DefineSoundTag extends CharacterTag implements SoundTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineSoundTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -90,9 +90,9 @@ public class DefineSoundTag extends CharacterTag implements SoundTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineSoundTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -114,7 +114,7 @@ public class DefineSoundTag extends CharacterTag implements SoundTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -97,7 +97,7 @@ public class DefineSpriteTag extends DrawableTag implements Timelined {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineSpriteTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -108,13 +108,13 @@ public class DefineSpriteTag extends DrawableTag implements Timelined {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @param level
|
||||
* @param parallel
|
||||
* @param skipUnusualTags
|
||||
* @throws IOException
|
||||
* @throws java.lang.InterruptedException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @param level Level
|
||||
* @param parallel Parallel
|
||||
* @param skipUnusualTags Skip unusual tags
|
||||
* @throws IOException On I/O error
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public DefineSpriteTag(SWFInputStream sis, int level, ByteArrayRange data, boolean parallel, boolean skipUnusualTags) throws IOException, InterruptedException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -138,7 +138,7 @@ public class DefineSpriteTag extends DrawableTag implements Timelined {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -43,7 +43,7 @@ public class DefineText2Tag extends StaticTextTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineText2Tag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -68,9 +68,9 @@ public class DefineText2Tag extends StaticTextTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineText2Tag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
|
||||
@@ -43,7 +43,7 @@ public class DefineTextTag extends StaticTextTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineTextTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -68,9 +68,9 @@ public class DefineTextTag extends StaticTextTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineTextTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
|
||||
@@ -197,7 +197,7 @@ public class DefineVideoStreamTag extends DrawableTag implements BoundedTag, Tim
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DefineVideoStreamTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -207,9 +207,9 @@ public class DefineVideoStreamTag extends DrawableTag implements BoundedTag, Tim
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DefineVideoStreamTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -232,7 +232,7 @@ public class DefineVideoStreamTag extends DrawableTag implements BoundedTag, Tim
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -68,7 +68,7 @@ public class DoABC2Tag extends Tag implements ABCContainerTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DoABC2Tag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -79,9 +79,9 @@ public class DoABC2Tag extends Tag implements ABCContainerTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DoABC2Tag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -104,7 +104,7 @@ public class DoABC2Tag extends Tag implements ABCContainerTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -51,7 +51,7 @@ public class DoABCTag extends Tag implements ABCContainerTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DoABCTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -61,9 +61,9 @@ public class DoABCTag extends Tag implements ABCContainerTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DoABCTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -83,7 +83,7 @@ public class DoABCTag extends Tag implements ABCContainerTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -31,7 +31,6 @@ import com.jpexs.decompiler.flash.tags.base.ASMSource;
|
||||
import com.jpexs.decompiler.flash.types.annotations.HideInRawEdit;
|
||||
import com.jpexs.decompiler.flash.types.annotations.Internal;
|
||||
import com.jpexs.decompiler.flash.types.annotations.SWFVersion;
|
||||
import com.jpexs.decompiler.graph.Graph;
|
||||
import com.jpexs.decompiler.graph.GraphTargetItem;
|
||||
import com.jpexs.helpers.ByteArrayRange;
|
||||
import com.jpexs.helpers.Helper;
|
||||
@@ -73,7 +72,7 @@ public class DoActionTag extends Tag implements ASMSource {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DoActionTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -83,8 +82,8 @@ public class DoActionTag extends Tag implements ASMSource {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param data
|
||||
* @param swf SWF
|
||||
* @param data Data
|
||||
*/
|
||||
public DoActionTag(SWF swf, ByteArrayRange data) {
|
||||
super(swf, ID, NAME, data);
|
||||
@@ -94,9 +93,9 @@ public class DoActionTag extends Tag implements ASMSource {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws java.io.IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DoActionTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -117,7 +116,7 @@ public class DoActionTag extends Tag implements ASMSource {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
@@ -128,10 +127,10 @@ public class DoActionTag extends Tag implements ASMSource {
|
||||
* Converts actions to ASM source
|
||||
*
|
||||
* @param exportMode PCode or hex?
|
||||
* @param writer
|
||||
* @param actions
|
||||
* @param writer Writer
|
||||
* @param actions Actions
|
||||
* @return ASM source
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public GraphTextWriter getASMSource(ScriptExportMode exportMode, GraphTextWriter writer, ActionList actions) throws InterruptedException {
|
||||
|
||||
@@ -34,7 +34,6 @@ import com.jpexs.decompiler.flash.types.annotations.HideInRawEdit;
|
||||
import com.jpexs.decompiler.flash.types.annotations.Internal;
|
||||
import com.jpexs.decompiler.flash.types.annotations.SWFType;
|
||||
import com.jpexs.decompiler.flash.types.annotations.SWFVersion;
|
||||
import com.jpexs.decompiler.graph.Graph;
|
||||
import com.jpexs.decompiler.graph.GraphTargetItem;
|
||||
import com.jpexs.helpers.ByteArrayRange;
|
||||
import com.jpexs.helpers.Helper;
|
||||
@@ -83,7 +82,7 @@ public class DoInitActionTag extends Tag implements CharacterIdTag, ASMSource {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public DoInitActionTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -98,9 +97,9 @@ public class DoInitActionTag extends Tag implements CharacterIdTag, ASMSource {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public DoInitActionTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -117,7 +116,7 @@ public class DoInitActionTag extends Tag implements CharacterIdTag, ASMSource {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
@@ -140,10 +139,10 @@ public class DoInitActionTag extends Tag implements CharacterIdTag, ASMSource {
|
||||
* Converts actions to ASM source
|
||||
*
|
||||
* @param exportMode PCode or hex?
|
||||
* @param writer
|
||||
* @param actions
|
||||
* @param writer Writer
|
||||
* @param actions Actions
|
||||
* @return ASM source
|
||||
* @throws java.lang.InterruptedException
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
@Override
|
||||
public GraphTextWriter getASMSource(ScriptExportMode exportMode, GraphTextWriter writer, ActionList actions) throws InterruptedException {
|
||||
|
||||
@@ -55,7 +55,7 @@ public final class EnableDebugger2Tag extends Tag implements PasswordTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public EnableDebugger2Tag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -65,9 +65,9 @@ public final class EnableDebugger2Tag extends Tag implements PasswordTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public EnableDebugger2Tag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -92,7 +92,7 @@ public final class EnableDebugger2Tag extends Tag implements PasswordTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -55,7 +55,7 @@ public final class EnableDebuggerTag extends Tag implements PasswordTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public EnableDebuggerTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -66,9 +66,9 @@ public final class EnableDebuggerTag extends Tag implements PasswordTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public EnableDebuggerTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -93,7 +93,7 @@ public final class EnableDebuggerTag extends Tag implements PasswordTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -59,7 +59,7 @@ public class EnableTelemetryTag extends Tag implements PasswordTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public EnableTelemetryTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -69,9 +69,9 @@ public class EnableTelemetryTag extends Tag implements PasswordTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public EnableTelemetryTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -94,7 +94,7 @@ public class EnableTelemetryTag extends Tag implements PasswordTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -38,7 +38,7 @@ public class EndTag extends Tag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public EndTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -47,9 +47,9 @@ public class EndTag extends Tag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public EndTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
|
||||
@@ -61,7 +61,7 @@ public class ExportAssetsTag extends SymbolClassTypeTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public ExportAssetsTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -85,9 +85,9 @@ public class ExportAssetsTag extends SymbolClassTypeTag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param sis
|
||||
* @param data
|
||||
* @throws IOException
|
||||
* @param sis SWF input stream
|
||||
* @param data Data
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public ExportAssetsTag(SWFInputStream sis, ByteArrayRange data) throws IOException {
|
||||
super(sis.getSwf(), ID, NAME, data);
|
||||
@@ -111,7 +111,7 @@ public class ExportAssetsTag extends SymbolClassTypeTag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
@@ -62,7 +62,7 @@ public class FileAttributesTag extends Tag {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param swf
|
||||
* @param swf SWF
|
||||
*/
|
||||
public FileAttributesTag(SWF swf) {
|
||||
super(swf, ID, NAME, null);
|
||||
@@ -97,7 +97,7 @@ public class FileAttributesTag extends Tag {
|
||||
* Gets data bytes
|
||||
*
|
||||
* @param sos SWF output stream
|
||||
* @throws java.io.IOException
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
@Override
|
||||
public void getData(SWFOutputStream sos) throws IOException {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user