Examples of AsciiString


Examples of tv.porst.splib.binaryparser.AsciiString

public class ActionGetURLParser {

  public static ActionGetURL parse(final SWFBinaryParser parser, final UINT8 actionCode, final String fieldName) throws SWFParserException {
    final UINT16 length = parseUINT16(parser, 0x00006, fieldName + "::Length");
    final AsciiString urlString = parseString(parser, 0x00006, "::UrlString");
    final AsciiString targetString = parseString(parser, 0x00006, "::TargetString");

    return new ActionGetURL(actionCode, length, urlString, targetString);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.AsciiString

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

    final EncodedU32 offset = EncodedU32Parser.parse(parser, fieldName + "::Offset");
    final AsciiString name = parseString(parser, 0x00006, fieldName + "::Name");

    return new SceneName(offset, name);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.AsciiString

public class RegisterParamParser {

  public static RegisterParam parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {
    final UINT8 register = parseUINT8(parser, 0x00006, fieldName + "::Register");
    final AsciiString paramName = parseString(parser, 0x00006, "::ParamName");

    return new RegisterParam(register, paramName);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.AsciiString

public class ActionDefineFunction2Parser {

  public static ActionDefineFunction2 parse(final SWFBinaryParser parser, final UINT8 actionCode, final String fieldName) throws SWFParserException {

    final UINT16 length = parseUINT16(parser, 0x00006, fieldName + "::Length");
    final AsciiString functionName = parseString(parser, 0x00006, "::FunctionName");
    final UINT16 numParams = parseUINT16(parser, 0x00006, fieldName + "::NumParams");
    final UINT8 registerCount = parseUINT8(parser, 0x00006, fieldName + "::RegisterCount");
    final Flag preloadParentFlag = parseFlag(parser, 0x00006, fieldName + "::PreloadParentFlag");
    final Flag preloadRootFlag = parseFlag(parser, 0x00006, fieldName + "::PreloadRootFlag");
    final Flag suppressSuperFlag = parseFlag(parser, 0x00006, fieldName + "::SuppressSuperFlag");
View Full Code Here

Examples of tv.porst.splib.binaryparser.AsciiString

        if (strings.size() != 0) {
          sb.append('\n');
        }

        for (int i = 0; i < strings.size(); i++) {
          final AsciiString string = strings.get(i);
          sb.append(String.format("                      %03d: \"%s\"", i, string.value()));

          if (i != strings.size() - 1) {
            sb.append('\n');
          }
        }
View Full Code Here

Examples of tv.porst.splib.binaryparser.AsciiString

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

    final UINT16 tag = parseUINT16(parser, 0x00006, fieldName + "::Tag");
    final AsciiString name = parseString(parser, 0x00006, fieldName + "::Name");

    return new Symbol(tag, name);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.AsciiString

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

    final EncodedU32 offset = EncodedU32Parser.parse(parser, fieldName + "::Offset");
    final AsciiString name = parseString(parser, 0x00006, fieldName + "::Name");

    return new FrameLabel(offset, name);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.AsciiString

    final Flag catchBlockFlag = parseFlag(parser, 0x00006, fieldName + "::CatchBlockFlag");
    final UINT16 trySize = parseUINT16(parser, 0x00006, fieldName + "::TrySize");
    final UINT16 catchSize = parseUINT16(parser, 0x00006, fieldName + "::CatchSize");
    final UINT16 finallySize = parseUINT16(parser, 0x00006, fieldName + "::FinallySize");

    final AsciiString catchName = parseStringIf(parser, 0x00006, !catchInRegisterFlag.value(), "::CatchName");
    final UINT8 catchRegister = parseUINT8If(parser, 0x00006, catchInRegisterFlag, fieldName + "::CatchRegister");

    final List<Action> tryBody = ActionRecordParser.parse(parser, trySize.value(), fieldName + "::TryBody");
    final List<Action> catchBody = ActionRecordParser.parse(parser, catchSize.value(), fieldName + "::CatchBody");
    final List<Action> finallyBody = ActionRecordParser.parse(parser, finallySize.value(), fieldName + "::FinallyBody");
View Full Code Here

Examples of tv.porst.splib.binaryparser.AsciiString

public class ActionSetTargetParser {

  public static ActionSetTarget parse(final SWFBinaryParser parser, final UINT8 actionCode, final String fieldName) throws SWFParserException {
    final UINT16 length = parseUINT16(parser, 0x00006, fieldName + "::Length");
    final AsciiString targetName = parseString(parser, 0x00006, "::TargetName");

    return new ActionSetTarget(actionCode, length, targetName);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.AsciiString

public class ActionGotoLabelParser {

  public static ActionGotoLabel parse(final SWFBinaryParser parser, final UINT8 actionCode, final String fieldName) throws SWFParserException {
    final UINT16 length = parseUINT16(parser, 0x00006, fieldName + "::Length");
    final AsciiString label = parseString(parser, 0x00006, "::Label");

    return new ActionGotoLabel(actionCode, length, label);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.