mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-28 23:37:17 +00:00
formatting, organize imports
This commit is contained in:
@@ -434,17 +434,17 @@ public class SWF {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void exportShapes(String outdir,List<Tag> tags) throws IOException{
|
||||
public static void exportShapes(String outdir, List<Tag> tags) throws IOException {
|
||||
for (Tag t : tags) {
|
||||
if(t instanceof ShapeTag){
|
||||
int characterID=0;
|
||||
if(t instanceof CharacterTag){
|
||||
characterID=((CharacterTag)t).getCharacterID();
|
||||
}
|
||||
FileOutputStream fos = null;
|
||||
try {
|
||||
if (t instanceof ShapeTag) {
|
||||
int characterID = 0;
|
||||
if (t instanceof CharacterTag) {
|
||||
characterID = ((CharacterTag) t).getCharacterID();
|
||||
}
|
||||
FileOutputStream fos = null;
|
||||
try {
|
||||
fos = new FileOutputStream(outdir + File.separator + characterID + ".svg");
|
||||
fos.write(((ShapeTag)t).toSVG().getBytes());
|
||||
fos.write(((ShapeTag) t).toSVG().getBytes());
|
||||
} finally {
|
||||
if (fos != null) {
|
||||
try {
|
||||
@@ -457,7 +457,7 @@ public class SWF {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void exportImages(String outdir, List<Tag> tags, JPEGTablesTag jtt) throws IOException {
|
||||
for (Tag t : tags) {
|
||||
if ((t instanceof DefineBitsJPEG2Tag) || (t instanceof DefineBitsJPEG3Tag) || (t instanceof DefineBitsJPEG4Tag)) {
|
||||
@@ -531,7 +531,7 @@ public class SWF {
|
||||
}
|
||||
exportImages(outdir, tags, jtt);
|
||||
}
|
||||
|
||||
|
||||
public void exportShapes(String outdir) throws IOException {
|
||||
exportShapes(outdir, tags);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user