This commit is contained in:
honfika@gmail.com
2015-03-07 14:58:55 +01:00
parent f938e97f5a
commit 14f07233dd
9 changed files with 1994 additions and 2233 deletions

View File

@@ -55,7 +55,7 @@ public class ApplicationInfo {
* URL for checking new updates
*/
public static String updateCheckUrl = "https://www.free-decompiler.com/flash/update.html?currentVersion=<version>&currentRevision=<revision>&currentVersionMajor=<version.major>&currentVersionMinor=<version.minor>&currentVersionRelease=<version.release>&currentVersionBuild=<version.build>&currentNightly=<nightly>";
/**
* URL for doing update
*/
@@ -86,22 +86,20 @@ public class ApplicationInfo {
updateCheckUrl = updateCheckUrl
.replace("<revision>", revision)
.replace("<version>", version)
.replace("<version.major>", ""+version_major)
.replace("<version.minor>", ""+version_minor)
.replace("<version.release>", ""+version_release)
.replace("<version.build>", ""+version_build)
.replace("<nightly>", nightly?"1":"0")
;
.replace("<version.major>", "" + version_major)
.replace("<version.minor>", "" + version_minor)
.replace("<version.release>", "" + version_release)
.replace("<version.build>", "" + version_build)
.replace("<nightly>", nightly ? "1" : "0");
updateUrl = updateUrl
.replace("<revision>", revision)
.replace("<version>", version)
.replace("<version.major>", ""+version_major)
.replace("<version.minor>", ""+version_minor)
.replace("<version.release>", ""+version_release)
.replace("<version.build>", ""+version_build)
.replace("<nightly>", nightly?"1":"0")
;
applicationVerName = APPLICATION_NAME + " v." + version;
.replace("<version.major>", "" + version_major)
.replace("<version.minor>", "" + version_minor)
.replace("<version.release>", "" + version_release)
.replace("<version.build>", "" + version_build)
.replace("<nightly>", nightly ? "1" : "0");
applicationVerName = APPLICATION_NAME + " v." + version;
shortApplicationVerName = SHORT_APPLICATION_NAME + " v." + version;
}
}

View File

@@ -1,16 +1,16 @@
/*
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
*/
@@ -89,7 +89,7 @@ public class BinarySWFBundle implements SWFBundle {
}
@Override
public boolean putSWF(String key,InputStream is) {
public boolean putSWF(String key, InputStream is) {
throw new UnsupportedOperationException("Save not supported for this type of bundle");
}
}
}

View File

@@ -42,7 +42,7 @@ public class SWC extends ZippedSWFBundle {
}
@Override
protected void initBundle(InputStream is, File filename) throws IOException {
protected void initBundle(InputStream is, File filename) throws IOException {
super.initBundle(is, filename);
keySet.clear();
this.is.reset();

View File

@@ -276,9 +276,6 @@ public final class SWF implements SWFContainerItem, Timelined {
private static final Logger logger = Logger.getLogger(SWF.class.getName());
@Internal
public SWFBundle bundle;
@Internal
private Timeline timeline;

View File

@@ -1,16 +1,16 @@
/*
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
*/
@@ -37,9 +37,8 @@ public interface SWFBundle {
public Map<String, SeekableInputStream> getAll() throws IOException;
public String getExtension();
public boolean isReadOnly();
public boolean putSWF(String key,InputStream is) throws IOException;
public boolean putSWF(String key, InputStream is) throws IOException;
}

View File

@@ -30,8 +30,6 @@ import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import java.util.zip.ZipOutputStream;
@@ -44,9 +42,10 @@ public class ZippedSWFBundle implements SWFBundle {
protected Set<String> keySet = new HashSet<>();
//private final Map<String, SeekableInputStream> cachedSWFs = new HashMap<>();
protected FileInputStream fis;
protected ReReadableInputStream is;
protected File filename;
public ZippedSWFBundle(InputStream is) throws IOException {