Package tv.porst.splib.binaryparser

Examples of tv.porst.splib.binaryparser.UINT8


   *
   * @throws SWFParserException Thrown if the structure could not be parsed.
   */
  public static GradRecord3 parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {

    final UINT8 ratio = parseUINT8(parser, 0x00006, fieldName + "::Ratio");
    final RGBA color = RGBAParser.parse(parser, fieldName + "::Color");

    return new GradRecord3(ratio, color);
  }
View Full Code Here


* Parses ActionScript 3 'pushstring' instructions.
*/
public final class AS3PushstringParser {

  public static AS3Pushstring parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {
    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");
    final EncodedU30 index = EncodedU30Parser.parse(parser, fieldName + "::index");

    return new AS3Pushstring(opcode, index);
  }
View Full Code Here

*/
public final class AS3BitandParser {

  public static AS3Bitand parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {

    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");

    return new AS3Bitand(opcode);
  }
View Full Code Here

   *
   * @throws SWFParserException Thrown if the structure could not be parsed.
   */
  public static FilterList parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {

    final UINT8 numberOfFilters = parseUINT8(parser, 0x00006, fieldName + "::NumberOfFilters");
    final List<Filter> filters = new ArrayList<Filter>();

    for (int i=0;i<numberOfFilters.value();i++) {
      filters.add(FilterParser.parse(parser, String.format(fieldName + "::Filters[%d]", i)));
    }

    return new FilterList(numberOfFilters, new SingleFilterList(filters));
  }
View Full Code Here

*/
public final class AS3ConstructsuperParser {

  public static AS3Constructsuper parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {

    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");
    final EncodedU30 argCount = EncodedU30Parser.parse(parser, fieldName + "::arg_count");

    return new AS3Constructsuper(opcode, argCount);
  }
View Full Code Here

* Parses ActionScript 3 'pushundefined' instructions.
*/
public final class AS3PushundefinedParser {

  public static AS3Pushundefined parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {
    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");

    return new AS3Pushundefined(opcode);
  }
View Full Code Here

* Parses ActionScript 3 'pushscope' instructions.
*/
public final class AS3PushscopeParser {

  public static AS3Pushscope parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {
    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");

    return new AS3Pushscope(opcode);
  }
View Full Code Here

* Parses ActionScript 3 'dxns' instructions.
*/
public final class AS3DxnsParser {

  public static AS3Dxns parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {
    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");
    final EncodedU30 index = EncodedU30Parser.parse(parser, fieldName + "::index");

    return new AS3Dxns(opcode, index);
  }
View Full Code Here

* Parses ActionScript 3 'getproperty' instructions.
*/
public final class AS3GetpropertyParser {

  public static AS3Getproperty parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {
    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");
    final EncodedU30 index = EncodedU30Parser.parse(parser, fieldName + "::index");

    return new AS3Getproperty(opcode, index);
  }
View Full Code Here

* Parses ActionScript 3 'getscopeobject' instructions.
*/
public final class AS3GetscopeobjectParser {

  public static AS3Getscopeobject parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {
    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");
    final EncodedU30 index = EncodedU30Parser.parse(parser, fieldName + "::index");

    return new AS3Getscopeobject(opcode, index);
  }
View Full Code Here

TOP

Related Classes of tv.porst.splib.binaryparser.UINT8

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.