allow to create swf from code only / export SWF to "Java code", which generates the SWF

This commit is contained in:
honfika@gmail.com
2015-01-17 12:17:03 +01:00
parent 30a3bc1e3e
commit 07eaafdc55
64 changed files with 841 additions and 259 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.helpers;
/**
@@ -39,6 +40,16 @@ public class ByteArrayRange {
this.length = length;
}
public ByteArrayRange(String hexString) {
byte[] array = new byte[hexString.length() / 2];
for (int i = 0; i < hexString.length() / 2; i++) {
array[i] = (byte) Integer.parseInt(hexString.substring(i * 2, i * 2 + 2), 16);
}
this.array = array;
this.pos = 0;
this.length = array.length;
}
public byte[] getArray() {
return array;
}