formatting, organize imports

This commit is contained in:
Jindra Petk
2013-02-22 21:40:55 +01:00
parent 7e4c9fd424
commit ed6afee9a8
25 changed files with 41226 additions and 45816 deletions

View File

@@ -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);
}