SWFs in zip based bundles can be modified & saved

This commit is contained in:
Jindra Petřík
2015-03-07 07:39:44 +01:00
parent 796c9bf3ae
commit 99ec0a592c
17 changed files with 205 additions and 77 deletions

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash;
import com.jpexs.helpers.SwfHeaderStreamSearch;
@@ -81,4 +82,14 @@ public class BinarySWFBundle implements SWFBundle {
public String getExtension() {
return "bin";
}
@Override
public boolean isReadOnly() {
return true;
}
@Override
public boolean putSWF(String key,InputStream is) {
throw new UnsupportedOperationException("Save not supported for this type of bundle");
}
}