Package tv.porst.swfretools.parser

Examples of tv.porst.swfretools.parser.ParserError


    } catch (final SWFParserException e) {
      // A parser exception while parsing the header means we ran beyond
      // the input data.

      errors.add(new ParserError(e.getOffset(), e.getMessage()));
    }

    return null;
  }
View Full Code Here


      case TagCodes.DoABC: return DoABCParser.parse(header, parser);
      case TagCodes.RawABC: return RawABCParser.parse(header, parser);
      case TagCodes.DefineFontName: return DefineFontNameParser.parse(header, parser);
      }

      errors.add(new ParserError(header.getTagAndLength().getBitPosition(), String.format("Tried to parse tag with unknown tag code 0x%02X", header.getTagCode())));

      // We do not know the type of this tag but we can try to continue parsing at the next tag
      jumpToNextTag(parser, header);

      return null;
    } catch (final SWFParserException exception) {

      errors.add(new ParserError(exception.getOffset(), exception.getMessage()));

      exception.printStackTrace();

      // Parsing this tag failed but we can try to continue parsing at the next tag
      jumpToNextTag(parser, header);
View Full Code Here

TOP

Related Classes of tv.porst.swfretools.parser.ParserError

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.