combine push method fixed

This commit is contained in:
honfika
2014-08-24 12:57:36 +02:00
parent f9a2ec747e
commit 75941e7c61
96 changed files with 109 additions and 9 deletions
@@ -347,6 +347,7 @@ public class Action implements GraphSourceItem {
sos2.write(data);
sos2.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos2.toByteArray();
}
@@ -97,9 +97,17 @@ public class ActionDeobfuscator implements SWFDecompilerListener {
if (!actions.getReferencesFor(action2).hasNext()) {
ActionPush push = (ActionPush) action;
ActionPush push2 = (ActionPush) action2;
push.values.addAll(push2.values);
actions.remove(i + 1);
i--;
if (!(push.constantPool != null && push2.constantPool != null && push.constantPool != push.constantPool)) {
ActionPush newPush = new ActionPush(0);
newPush.constantPool = push.constantPool == null ? push2.constantPool : push.constantPool;
newPush.values.clear();
newPush.values.addAll(push.values);
newPush.values.addAll(push2.values);
actions.addAction(i + 1, newPush);
actions.removeAction(i + 2);
actions.removeAction(i);
i--;
}
}
}
}
@@ -51,6 +51,7 @@ public class ActionStrictMode extends Action {
sos.writeUI8(mode);
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return surroundWithAction(baos.toByteArray(), version);
}
@@ -70,6 +70,7 @@ public class ActionGetURL extends Action {
sos.writeString(targetString);
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return surroundWithAction(baos.toByteArray(), version);
}
@@ -59,6 +59,7 @@ public class ActionGoToLabel extends Action {
sos.writeString(label);
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return surroundWithAction(baos.toByteArray(), version);
}
@@ -56,6 +56,7 @@ public class ActionGotoFrame extends Action {
sos.writeUI16(frame);
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return surroundWithAction(baos.toByteArray(), version);
}
@@ -59,6 +59,7 @@ public class ActionSetTarget extends Action {
sos.writeString(targetName);
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return surroundWithAction(baos.toByteArray(), version);
}
@@ -70,6 +70,7 @@ public class ActionWaitForFrame extends Action implements ActionStore {
sos.writeUI8(skipCount);
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return surroundWithAction(baos.toByteArray(), version);
}
@@ -81,6 +81,7 @@ public class ActionGetURL2 extends Action {
sos.writeUB(2, sendVarsMethod);
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return surroundWithAction(baos.toByteArray(), version);
}
@@ -66,6 +66,7 @@ public class ActionGotoFrame2 extends Action {
}
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return surroundWithAction(baos.toByteArray(), version);
}
@@ -69,6 +69,7 @@ public class ActionIf extends Action {
sos.writeSI16(offset);
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return surroundWithAction(baos.toByteArray(), version);
}
@@ -70,6 +70,7 @@ public class ActionJump extends Action {
sos.writeSI16(offset);
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return surroundWithAction(baos.toByteArray(), version);
}
@@ -178,7 +178,7 @@ public class ActionPush extends Action {
}
sos.close();
} catch (IOException e) {
Logger.getLogger(ActionPush.class.getName()).log(Level.SEVERE, "Error during push to bytes", e);
throw new Error("This should never happen.", e);
}
return surroundWithAction(baos.toByteArray(), version);
}
@@ -106,6 +106,7 @@ public class ActionWaitForFrame2 extends Action implements ActionStore {
sos.writeUI8(skipCount);
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return surroundWithAction(baos.toByteArray(), version);
}
@@ -73,6 +73,7 @@ public class ActionConstantPool extends Action {
}
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return surroundWithAction(baos.toByteArray(), version);
}
@@ -97,6 +97,7 @@ public class ActionDefineFunction extends Action implements GraphSourceItemConta
baos2.write(surroundWithAction(baos.toByteArray(), version));
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos2.toByteArray();
}
@@ -66,6 +66,7 @@ public class ActionStoreRegister extends Action implements StoreTypeAction {
sos.writeUI8(registerNumber);
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return surroundWithAction(baos.toByteArray(), version);
}
@@ -70,6 +70,7 @@ public class ActionWith extends Action implements GraphSourceItemContainer {
sos.close();
baos2.write(surroundWithAction(baos.toByteArray(), version));
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos2.toByteArray();
}
@@ -154,6 +154,7 @@ public class ActionDefineFunction2 extends Action implements GraphSourceItemCont
baos2.write(surroundWithAction(baos.toByteArray(), version));
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos2.toByteArray();
}
@@ -101,6 +101,7 @@ public class ActionTry extends Action implements GraphSourceItemContainer {
}
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return surroundWithAction(baos.toByteArray(), version);
}
@@ -77,6 +77,7 @@ public class CSMTextSettingsTag extends Tag {
sos.writeFLOAT(sharpness); //F32 = FLOAT
sos.writeUI8(reserved2);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -50,6 +50,7 @@ public class DebugIDTag extends Tag {
try {
sos.write(debugId);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -55,6 +55,7 @@ public class DefineBinaryDataTag extends CharacterTag {
sos.writeUI32(reserved);
sos.write(binaryData);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -96,6 +96,7 @@ public class DefineBitsJPEG2Tag extends ImageTag implements AloneTag {
sos.writeUI16(characterID);
sos.write(imageData);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -132,6 +132,7 @@ public class DefineBitsJPEG3Tag extends ImageTag implements AloneTag {
sos.write(imageData);
sos.writeBytesZlib(bitmapAlphaData);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -126,6 +126,7 @@ public class DefineBitsJPEG4Tag extends ImageTag implements AloneTag {
sos.write(imageData);
sos.write(bitmapAlphaData);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -171,6 +171,7 @@ public class DefineBitsLossless2Tag extends ImageTag implements AloneTag {
}
sos.write(zlibBitmapData);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -214,6 +214,7 @@ public class DefineBitsLosslessTag extends ImageTag implements AloneTag {
}
sos.write(zlibBitmapData);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -111,6 +111,7 @@ public class DefineBitsTag extends ImageTag {
sos.writeUI16(characterID);
sos.write(jpegData);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -147,7 +147,7 @@ public class DefineButton2Tag extends ButtonTag implements Container {
sos.writeBUTTONCONDACTIONList(actions);
sos.close();
} catch (IOException e) {
Logger.getLogger(DefineButton2Tag.class.getName()).log(Level.SEVERE, null, e);
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -52,6 +52,7 @@ public class DefineButtonCxformTag extends Tag {
sos.writeUI16(buttonId);
sos.writeCXFORM(buttonColorTransform);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -92,6 +92,7 @@ public class DefineButtonSoundTag extends CharacterIdTag {
sos.writeSOUNDINFO(buttonSoundInfo3);
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -129,6 +129,7 @@ public class DefineButtonTag extends ButtonTag implements ASMSource {
//sos.write(Action.actionsToBytes(actions, true, version));
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -690,6 +690,7 @@ public class DefineEditTextTag extends TextTag {
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -181,6 +181,7 @@ public class DefineFont2Tag extends FontTag {
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -264,6 +264,7 @@ public class DefineFont3Tag extends FontTag {
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -77,6 +77,7 @@ public class DefineFont4Tag extends CharacterTag {
sos.writeString(fontName);
sos.write(fontData);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -73,6 +73,7 @@ public class DefineFontAlignZonesTag extends Tag {
sos.writeZONERECORD(z);
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -81,6 +81,7 @@ public class DefineFontInfo2Tag extends Tag {
sos.writeUI16(c);
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -82,6 +82,7 @@ public class DefineFontInfoTag extends Tag {
}
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -55,6 +55,7 @@ public class DefineFontNameTag extends Tag {
sos.writeString(fontName);
sos.writeString(fontCopyright);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -129,6 +129,7 @@ public class DefineFontTag extends FontTag {
}
sos.write(baos2.toByteArray());
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -142,6 +142,7 @@ public class DefineMorphShape2Tag extends CharacterTag implements MorphShapeTag
sos.write(ba2);
sos.writeSHAPE(endEdges, 2);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -120,6 +120,7 @@ public class DefineMorphShapeTag extends CharacterTag implements MorphShapeTag {
sos.writeSHAPE(endEdges, 1);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -56,6 +56,7 @@ public class DefineScalingGridTag extends Tag {
sos.writeUI16(characterId);
sos.writeRECT(splitter);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -71,6 +71,7 @@ public class DefineSceneAndFrameLabelDataTag extends Tag {
sos.writeString(frameNames[i]);
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -94,6 +94,7 @@ public class DefineShape2Tag extends ShapeTag {
sos.writeRECT(shapeBounds);
sos.writeSHAPEWITHSTYLE(shapes, 2);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -94,6 +94,7 @@ public class DefineShape3Tag extends ShapeTag {
sos.writeRECT(shapeBounds);
sos.writeSHAPEWITHSTYLE(shapes, 3);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -112,6 +112,7 @@ public class DefineShape4Tag extends ShapeTag {
sos.writeUB(1, usesScalingStrokes ? 1 : 0);
sos.writeSHAPEWITHSTYLE(shapes, 4);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -87,6 +87,7 @@ public class DefineShapeTag extends ShapeTag {
sos.writeRECT(shapeBounds);
sos.writeSHAPEWITHSTYLE(shapes, 1);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -89,6 +89,7 @@ public class DefineSoundTag extends CharacterTag implements SoundTag {
sos.write(soundData);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -239,6 +239,7 @@ public class DefineSpriteTag extends CharacterTag implements Container, Drawable
}
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -459,6 +459,7 @@ public class DefineText2Tag extends TextTag {
}
sos.writeUI8(0);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -470,6 +470,7 @@ public class DefineTextTag extends TextTag {
}
sos.writeUI8(0);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -93,6 +93,7 @@ public class DefineVideoStreamTag extends CharacterTag implements BoundedTag {
sos.writeUB(1, videoFlagsSmoothing ? 1 : 0);
sos.writeUI8(codecID);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -102,8 +102,8 @@ public class DoABCDefineTag extends Tag implements ABCContainerTag {
}
return bos.toByteArray();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return new byte[0];
}
@Override
@@ -85,8 +85,8 @@ public class DoABCTag extends Tag implements ABCContainerTag {
}
return bos.toByteArray();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return new byte[0];
}
@Override
@@ -83,6 +83,7 @@ public class DoInitActionTag extends CharacterIdTag implements ASMSource {
//sos.write(Action.actionsToBytes(actions, true, version));
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -57,6 +57,7 @@ public class EnableDebugger2Tag extends Tag {
sos.writeString(passwordHash);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -51,6 +51,7 @@ public class EnableDebuggerTag extends Tag {
sos.writeString(passwordHash);
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -60,6 +60,7 @@ public class EnableTelemetryTag extends Tag {
sos.write(passwordHash);
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -90,6 +90,7 @@ public class ExportAssetsTag extends Tag {
sos.writeString(names.get(i));
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -85,6 +85,7 @@ public class FileAttributesTag extends Tag {
sos.writeUB(1, useNetwork ? 1 : 0);
sos.writeUB(24, reserved3); //reserved
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -63,6 +63,7 @@ public class FrameLabelTag extends Tag {
sos.writeUI8(1);
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -99,6 +99,7 @@ public class ImportAssets2Tag extends Tag implements ImportTag {
sos.writeString(names.get(i));
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -88,6 +88,7 @@ public class ImportAssetsTag extends Tag implements ImportTag {
sos.writeString(names.get(i));
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -48,6 +48,7 @@ public class JPEGTablesTag extends Tag {
try {
sos.write(jpegData);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -51,6 +51,7 @@ public class MetadataTag extends Tag {
try {
sos.writeString(xmlMetadata);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -187,6 +187,7 @@ public class PlaceObject2Tag extends CharacterIdTag implements Container, PlaceO
}
sos.close();
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -290,7 +290,8 @@ public class PlaceObject3Tag extends CharacterIdTag implements Container, PlaceO
sos.writeCLIPACTIONS(clipActions);
}
sos.close();
} catch (IOException ex) {
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -292,7 +292,8 @@ public class PlaceObject4Tag extends CharacterIdTag implements Container, PlaceO
sos.writeCLIPACTIONS(clipActions);
}
sos.close();
} catch (IOException ex) {
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -93,6 +93,7 @@ public class PlaceObjectTag extends CharacterIdTag implements PlaceObjectTypeTag
sos.writeCXFORM(colorTransform);
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -88,6 +88,7 @@ public class ProductInfoTag extends Tag {
sos.writeUI32(compilationDateLow);
sos.writeUI32(compilationDateHigh);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -51,6 +51,7 @@ public class ProtectTag extends Tag {
sos.writeString(passwordHash);
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -50,6 +50,7 @@ public class RemoveObject2Tag extends Tag implements RemoveTag {
try {
sos.writeUI16(depth);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -60,6 +60,7 @@ public class RemoveObjectTag extends CharacterIdTag implements RemoveTag {
sos.writeUI16(characterId);
sos.writeUI16(depth);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -55,6 +55,7 @@ public class ScriptLimitsTag extends Tag {
sos.writeUI16(maxRecursionDepth);
sos.writeUI16(scriptTimeoutSeconds);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -46,6 +46,7 @@ public class SetBackgroundColorTag extends Tag {
try {
sos.writeRGB(backgroundColor);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -58,6 +58,7 @@ public class SetTabIndexTag extends Tag {
sos.writeUI16(depth);
sos.writeUI16(tabIndex);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -62,6 +62,7 @@ public class SoundStreamBlockTag extends Tag {
try {
sos.write(streamSoundData);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -130,6 +130,7 @@ public class SoundStreamHead2Tag extends CharacterIdTag implements SoundStreamHe
sos.writeSI16(latencySeek);
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -123,6 +123,7 @@ public class SoundStreamHeadTag extends CharacterIdTag implements SoundStreamHea
sos.writeSI16(latencySeek);
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -52,6 +52,7 @@ public class StartSoundTag extends Tag {
sos.writeUI16(soundId);
sos.writeSOUNDINFO(soundInfo);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -66,6 +66,7 @@ public class SymbolClassTag extends Tag {
sos.writeString(names[ii]);
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -299,6 +299,7 @@ public abstract class Tag implements NeedsCharacters, Exportable, ContainerItem,
sos.writeSI32(tagLength);
}
} catch (IOException iex) {
throw new Error("This should never happen.", iex);
}
return baos.toByteArray();
}
@@ -313,6 +314,7 @@ public abstract class Tag implements NeedsCharacters, Exportable, ContainerItem,
sos.writeSI32(tagLength);
}
} catch (IOException iex) {
throw new Error("This should never happen.", iex);
}
return baos.toByteArray();
}
@@ -54,6 +54,7 @@ public class VideoFrameTag extends Tag {
sos.writeUI16(frameNum);
sos.write(videoData);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -78,6 +78,7 @@ public final class DefineCompactedFont extends FontTag implements DrawableTag {
ft.write(new GFxOutputStream(sos));
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -58,6 +58,7 @@ public class DefineExternalGradient extends Tag {
sos.writeUI8(fileNameBytes.length);
sos.write(fileNameBytes);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -60,6 +60,7 @@ public class DefineExternalImage extends Tag {
sos.writeUI8(fileNameBytes.length);
sos.write(fileNameBytes);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -68,6 +68,7 @@ public class DefineExternalImage2 extends Tag {
sos.write(extraData);
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -68,6 +68,7 @@ public class DefineExternalSound extends Tag {
sos.writeUI8(fileNameBytes.length);
sos.write(fileNameBytes);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -66,6 +66,7 @@ public class DefineExternalStreamSound extends Tag {
sos.writeUI8(fileNameBytes.length);
sos.write(fileNameBytes);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -50,6 +50,7 @@ public class DefineGradientMap extends Tag {
sos.writeUI16(indices[i]);
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -57,6 +57,7 @@ public class DefineSubImage extends Tag {
sos.writeUI16(x2);
sos.writeUI16(y2);
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -76,6 +76,7 @@ public class ExporterInfoTag extends Tag {
}
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}
@@ -79,6 +79,7 @@ public class FontTextureInfo extends Tag {
fonts[i].write(new GFxOutputStream(sos));
}
} catch (IOException e) {
throw new Error("This should never happen.", e);
}
return baos.toByteArray();
}