CPD Results

The following document contains the results of PMD's CPD 4.2.2.

Duplications

File Line
hotsax/html/sax/ScriptLexer.java 378
hotsax/html/sax/StyleLexer.java 377
    int [] trans = new int[416];
    int offset = 0;
    offset = yy_unpack(yy_packed0, offset, trans);
    return trans;
  }

  /** 
   * Unpacks the compressed DFA transition table.
   *
   * @param packed   the packed transition table
   * @return         the index of the last entry
   */
  private static int yy_unpack(String packed, int offset, int [] trans) {
    int i = 0;       /* index in packed string  */
    int j = offset;  /* index in unpacked array */
    int l = packed.length();
    while (i < l) {
      int count = packed.charAt(i++);
      int value = packed.charAt(i++);
      value--;
      do trans[j++] = value; while (--count > 0);
    }
    return j;
  }


  /**
   * Gets the next input character.
   *
   * @return      the next character of the input stream, EOF if the
   *              end of the stream is reached.
   * @exception   IOException  if any I/O-Error occurs
   */
  private int yy_advance() throws java.io.IOException {

    /* standard case */
    if (yy_currentPos < yy_endRead) return yy_buffer[yy_currentPos++];

    /* if the eof is reached, we don't need to work hard */ 
    if (yy_atEOF) return YYEOF;

    /* otherwise: need to refill the buffer */

    /* first: make room (if you can) */
    if (yy_startRead > 0) {
      System.arraycopy(yy_buffer, yy_startRead, 
                       yy_buffer, 0, 
                       yy_endRead-yy_startRead);

      /* translate stored positions */
      yy_endRead-= yy_startRead;
      yy_currentPos-= yy_startRead;
      yy_markedPos-= yy_startRead;
      yy_pushbackPos-= yy_startRead;
      yy_startRead = 0;
    }

    /* is the buffer big enough? */
    if (yy_currentPos >= yy_buffer.length) {
      /* if not: blow it up */
      char newBuffer[] = new char[yy_currentPos*2];
      System.arraycopy(yy_buffer, 0, newBuffer, 0, yy_buffer.length);
      yy_buffer = newBuffer;
    }

    /* finally: fill the buffer with new input */
    int numRead = yy_reader.read(yy_buffer, yy_endRead, 
                                            yy_buffer.length-yy_endRead);

    if ( numRead == -1 ) return YYEOF;

    yy_endRead+= numRead;

    return yy_buffer[yy_currentPos++];
  }


  /**
   * Closes the input stream.
   */
  final public void yyclose() throws java.io.IOException {
    yy_atEOF = true;            /* indicate end of file */
    yy_endRead = yy_startRead;  /* invalidate buffer    */

    if (yy_reader != null)
      yy_reader.close();
  }


  /**
   * Closes the current stream, and resets the
   * scanner to read from a new input stream.
   *
   * All internal variables are reset, the old input stream 
   * <b>cannot</b> be reused (internal buffer is discarded and lost).
   * Lexical state is set to <tt>YY_INITIAL</tt>.
   *
   * @param reader   the new input stream 
   */
  final public void yyreset(java.io.Reader reader) throws java.io.IOException {
    yyclose();
    yy_reader = reader;
    yy_atBOL  = true;
    yy_atEOF  = false;
    yy_endRead = yy_startRead = 0;
    yy_currentPos = yy_markedPos = yy_pushbackPos = 0;
    yyline = yychar = yycolumn = 0;
    yy_lexical_state = YYINITIAL;
  }


  /**
   * Returns the current lexical state.
   */
  final public int yystate() {
    return yy_lexical_state;
  }


  /**
   * Enters a new lexical state
   *
   * @param newState the new lexical state
   */
  final public void yybegin(int newState) {
    yy_lexical_state = newState;
  }


  /**
   * Returns the text matched by the current regular expression.
   */
  final public String yytext() {
    return new String( yy_buffer, yy_startRead, yy_markedPos-yy_startRead );
  }


  /**
   * Returns the character at position <tt>pos</tt> from the 
   * matched text. 
   * 
   * It is equivalent to yytext().charAt(pos), but faster
   *
   * @param pos the position of the character to fetch. 
   *            A value from 0 to yylength()-1.
   *
   * @return the character at position pos
   */
  final public char yycharat(int pos) {
    return yy_buffer[yy_startRead+pos];
  }


  /**
   * Returns the length of the matched text region.
   */
  final public int yylength() {
    return yy_markedPos-yy_startRead;
  }


  /**
   * Reports an error that occured while scanning.
   *
   * In a wellformed scanner (no or only correct usage of 
   * yypushback(int) and a match-all fallback rule) this method 
   * will only be called with things that "Can't Possibly Happen".
   * If this method is called, something is seriously wrong
   * (e.g. a JFlex bug producing a faulty scanner etc.).
   *
   * Usual syntax/scanner level error handling should be done
   * in error fallback rules.
   *
   * @param   errorCode  the code of the errormessage to display
   */
  private void yy_ScanError(int errorCode) {
    String message;
    try {
      message = YY_ERROR_MSG[errorCode];
    }
    catch (ArrayIndexOutOfBoundsException e) {
      message = YY_ERROR_MSG[YY_UNKNOWN_ERROR];
    }

    throw new Error(message);
  } 


  /**
   * Pushes the specified amount of characters back into the input stream.
   *
   * They will be read again by then next call of the scanning method
   *
   * @param number  the number of characters to be read again.
   *                This number must not be greater than yylength()!
   */
  private void yypushback(int number)  {
    if ( number > yylength() )
      yy_ScanError(YY_PUSHBACK_2BIG);

    yy_markedPos -= number;
  }


  /**
   * Contains user EOF-code, which will be executed exactly once,
   * when the end of file is reached
   */
  private void yy_do_eof() throws java.io.IOException {
    if (!yy_eof_done) {
      yy_eof_done = true;
      yyclose();
    }
  }


  /**
   * Resumes scanning until the next regular expression is matched,
   * the end of input is encountered or an I/O-Error occurs.
   *
   * @return      the next token
   * @exception   IOException  if any I/O-Error occurs
   */
  public int yylex() throws java.io.IOException {
    int yy_input;
    int yy_action;


    while (true) {

      yy_action = -1;

      yy_currentPos = yy_startRead = yy_markedPos;

      yy_state = yy_lexical_state;


      yy_forAction: {
        while (true) {

          yy_input = yy_advance();

          if ( yy_input == YYEOF ) break yy_forAction;

          int yy_next = yytrans[ yy_rowMap[yy_state] + yycmap[yy_input] ];
          if (yy_next == -1) break yy_forAction;
          yy_state = yy_next;

          int yy_attributes = YY_ATTRIBUTE[yy_state];
          if ( (yy_attributes & 1) > 0 ) {
            yy_action = yy_state; 
            yy_markedPos = yy_currentPos; 
            if ( (yy_attributes & 8) > 0 ) break yy_forAction;
          }

        }
      }


      switch (yy_action) {

        case 19: 
          { 
        yybegin(YYINITIAL);
		tokenQueue.add(new Lval(cdata.toString()));  
		tokenQueue.add(new Integer(HtmlParser.TEXT));
		tokenQueue.add(new Integer(HtmlParser.CDATA_END));
		return -2;
     }
        case 32: break;

File Line
hotsax/html/sax/DebugParserDelegate.java 101
hotsax/html/sax/SaxHandlerDelegate.java 99
		attrList.addAttribute("", "", name, "NMTOKEN", value);
	}

	public HtmlParserVal getAttributes() {
		HtmlParserVal aList = new HtmlParserVal(attrList);
		return aList;
	}

	public void startElement(HtmlParserVal lval, HtmlParserVal attrList) {
		try {
			if (contentHandler != null)
			{
				 contentHandler.startElement("", lval.sval, "", (Attributes)attrList.obj);
			}
		}
		catch (SAXException ex)
		{
			parser.yyerror(ex.getMessage());
		}
	}

	/**
	 * Fire startElement event. Note handled the actual beginning of the element by now
	 *  and have collected all attributes (if any)
	 */
	public void startElement(HtmlParserVal lval) {
            try {
                if (contentHandler != null)
                {
                    contentHandler.startElement("", lval.sval, "", attrList);
                }
            }
            catch (SAXException ex)
            {
                parser.yyerror(ex.getMessage());
            }
	}


	/**
     * collect characters from parse stream. Unwrap the HtmlParserVal.sval 
	 * String to a character array. 
     * TODO: After creating a LexicalHandler, make sure this gets called
	 *       in the comment state.
     * TODO: This might be better done in the collection process
     *   rather than always using a String. I.e. getting a bunch of chars instead of
     *   incrementally appending one char at a time from yytext() 
     */
	public void characters(HtmlParserVal lval) 
	{
            try {
                if (contentHandler != null) // first unwrap to wrap later? for speed?
                {
                    char ch[] = lval.sval.toCharArray();		
                    contentHandler.characters(ch, 0, lval.sval.length());
                }
            }
            catch (SAXException ex)
            {
                    parser.yyerror(ex.getMessage());
            }
	}


	/**
     *  Fire endElement event. The name of the element is passed to the event handler.
	 *   Note these might be optionally missing in the HTML case.
     */
	public void endElement(HtmlParserVal lval) 
	{
            try {
                if (contentHandler != null)
                    contentHandler.endElement("", lval.sval, "");
            }
            catch (SAXException ex)
            {
                parser.yyerror(ex.getMessage());
            }
    }

	/**
	 * Fire endDocument event.
	 */
	public void endDocument() 
	{
            try {
                if (contentHandler != null)
                    contentHandler.endDocument();
            }
            catch (SAXException ex)
            {
                parser.yyerror(ex.getMessage());
            }
	}

	// LexicalHandler interface functions.

	/**
	 * comment handler
	 * Note, these are delegate to the XMLReader's LexicalHandler if any
	 * TODO:  Check the property of the reader for its existance.
	 */
	public void comment(HtmlParserVal lval) {
            try {
                if (lexicalHandler != null)
                {
                    char ch[] = lval.sval.toCharArray();		
                    lexicalHandler.comment(ch, 0, lval.sval.length());
                }
            }
            catch (SAXException ex)
            {
                parser.yyerror(ex.getMessage());
            }
	}


	/**
	 * CDATA handler
	 * Note, these are delegate to the XMLReader's LexicalHandler if any
	 * 	This only marks the start boundary condition. Text still goes through characters()
	 */
	public void startCDATA() {
            try {
                if (lexicalHandler != null)
                {
                    lexicalHandler.startCDATA();
                }
            }
            catch (SAXException ex)
            {
                    parser.yyerror(ex.getMessage());
            }
	}

	/**
	 * CDATA handler
	 * Note, these are delegate to the XMLReader's LexicalHandler if any
	 * 	This only marks the end boundary of the CDATA section. Text still goes through characters()
	 */
	public void endCDATA() {
            try {
                if (lexicalHandler != null)
                {
                    lexicalHandler.endCDATA();
                }
            }
            catch (SAXException ex)
            {
                    parser.yyerror(ex.getMessage());
            }
	}

	/**
	 * Start the beginning of the DOCTYPE (DTD) declaration
	 * Note, these are delegate to the XMLReader's LexicalHandler if any
	 */
	public void startDTD(HtmlParserVal lval) {
            try {
               if (lexicalHandler != null)
                {
                    StringTokenizer stok = new StringTokenizer(lval.sval);  // default delim = \sp

                    if (stok.hasMoreElements())
                    {
                        String target = stok.nextToken();
                        String data;
                        if (stok.hasMoreElements())
                            data = stok.nextToken();
                        else
                            data = "";

                        lexicalHandler.startDTD(target, data, null);
                    }
                }
            }
            catch (SAXException ex)
            {
                    parser.yyerror(ex.getMessage());
            }
	}

	/**
     *  End the DOCTYPE declaration
     */
	public void endDTD()	{
            try {
                if (lexicalHandler != null)
                    lexicalHandler.endDTD();
            }
            catch (SAXException ex)
            {
                    parser.yyerror(ex.getMessage());
            }
	}





    /**
     * used by the SaxParser to set itself in ParserDelegate
     */
    public void setXMLReader(XMLReader reader) {
            this.reader = reader;

        try {
            if (reader != null)
            {
                contentHandler = reader.getContentHandler(); // good idea to init first
                lexicalHandler = (LexicalHandler)reader.getProperty("http://xml.org/sax/properties/lexical-handler");
            }
        }
        catch (SAXNotRecognizedException ex)
        {
                System.err.println("No lexical handler set in property 'http://xml.org/sax/properties/lexical-handler'");
        }
        catch (SAXNotSupportedException ex)
        {
                System.err.println("Lexical handler property not supported");
        }

    }

}

File Line
hotsax/html/sax/ScriptLexer.java 178
hotsax/html/sax/StyleLexer.java 177
	public StyleLexer(HtmlParser p) {
		this(System.in);
		yyparser = p;
		tokenQueue = new Vector();
	}

	Lval lexer_yylval;
	Lval empty_yylval = new Lval("");
	private boolean first = false;
	private boolean last = false;

	public void yylexerror_reset() {
		System.err.println("char at : " + yycharat(yy_markedPos));
		yypushback(yylength() - 1);  // attempt at resetting this
	}

	/** 
	 *   mask the actual implementation of yylex to return the first SOF
	 *   and the final EOF. Marking the startDocument, EndDocuemnt events
	 *   Also catches supposedly unrecoverable Error. Forces new ERROR_RECOVER state.
     *   #return the token from yylex() - one of HtmlParser.XXXXX
	 */
	public int _yylex() 
		throws IOException
	{
		int token;

		lexer_yylval = empty_yylval; 
		try {
	
			if (tokenQueue.size() > 0) {
				Object o = tokenQueue.remove(0);
				if (o instanceof Lval) {
					setLval((Lval)o);
					o = tokenQueue.remove(0);
				}
				token = ((Integer)o).intValue();
		    }
			else {
				token = yylex();
				if (token == -2) { // then a force of returning the next item in the tokenQueue
					Object o = tokenQueue.remove(0);
					if (o instanceof Lval) {
						setLval((Lval)o);
						o = tokenQueue.remove(0);
					}
					token = ((Integer)o).intValue();
				}
			}
		}
		catch (Error err) {
			if (getDebug()) System.err.println("Caught error " + err.getMessage());
			yybegin(ERROR_RECOVER);
			if (yyparser != null)
				yyparser.yylval = empty_yylval;
			
			token = yylex(); // read ahead in ERROR_REOVER
		}		
		finally {
			cdata.setLength(0);
			text.setLength(0);
		}
		return token;
	}
	

	// set the LH side of the parser
	void setLval(String text)
	{
		lexer_yylval = new Lval(text);
			
		if (yyparser != null)
			yyparser.yylval = lexer_yylval;
	}

	void setLval(Attribute a)
	{
		lexer_yylval = new Lval(a);

		if (yyparser != null)
			yyparser.yylval = lexer_yylval;
	}

	void setLval(Lval l) {
		lexer_yylval = l;

		if (yyparser != null)
			yyparser.yylval = lexer_yylval;
	}


	/** Return the yy_reader for this class. Can be used to provide alternate scanner 
	  @return the Reader for this class */
	public Reader getReader() { return yy_reader; }
	public void setReader(Reader r) { yy_reader = r; }


	/**
  	 * Sets this lexer to the same yybuffer, and character positions as the other lexer
     */
	public void setBuffer(SemanticLexer lexer) {
		if (this.yy_buffer.length != lexer.getyyBuffer().length) {
      		char newBuffer[] = new char[lexer.getyyBuffer().length];
			this.yy_buffer = newBuffer;
		}
      	System.arraycopy(lexer.getyyBuffer(), 0, yy_buffer, 0, yy_buffer.length);
		this.yy_currentPos = lexer.getyyCurrentPos();
		this.yy_markedPos = lexer.getyyMarkedPos();
		this.yy_pushbackPos = lexer.getyyPushbackPos();
		this.yy_endRead = lexer.getyyEndRead();
		this.yy_startRead = lexer.getyyStartRead();
	}

	public char[] getyyBuffer() { return yy_buffer; }
	public int getyyCurrentPos() { return yy_currentPos; } 
	public int getyyMarkedPos() { return yy_markedPos; }
	public int getyyPushbackPos() { return yy_pushbackPos; }
	public int getyyEndRead() { return yy_endRead; }
	public int getyyStartRead() { return yy_startRead; }
	public void printBuffer() {
		for (int i = 0; i < yy_endRead; i++) {
			System.out.print(yy_buffer[i]);
		}
	}

  /**
   * Runs the scanner on input files.
   *
   * This main method is the debugging routine for the scanner.
   * It prints each returned token to System.out until the end of
   * file is reached, or an error occured.
   *
   * @param argv   the command line, contains the filenames to run
   *               the scanner on.
   */
  public static void main(String argv[]) {
    for (int i = 0; i < argv.length; i++) {

File Line
hotsax/html/sax/HtmlLexer.java 368
hotsax/html/sax/ScriptLexer.java 378
    int [] trans = new int[432];
    int offset = 0;
    offset = yy_unpack(yy_packed0, offset, trans);
    return trans;
  }

  /** 
   * Unpacks the compressed DFA transition table.
   *
   * @param packed   the packed transition table
   * @return         the index of the last entry
   */
  private static int yy_unpack(String packed, int offset, int [] trans) {
    int i = 0;       /* index in packed string  */
    int j = offset;  /* index in unpacked array */
    int l = packed.length();
    while (i < l) {
      int count = packed.charAt(i++);
      int value = packed.charAt(i++);
      value--;
      do trans[j++] = value; while (--count > 0);
    }
    return j;
  }


  /**
   * Gets the next input character.
   *
   * @return      the next character of the input stream, EOF if the
   *              end of the stream is reached.
   * @exception   IOException  if any I/O-Error occurs
   */
  private int yy_advance() throws java.io.IOException {

    /* standard case */
    if (yy_currentPos < yy_endRead) return yy_buffer[yy_currentPos++];

    /* if the eof is reached, we don't need to work hard */ 
    if (yy_atEOF) return YYEOF;

    /* otherwise: need to refill the buffer */

    /* first: make room (if you can) */
    if (yy_startRead > 0) {
      System.arraycopy(yy_buffer, yy_startRead, 
                       yy_buffer, 0, 
                       yy_endRead-yy_startRead);

      /* translate stored positions */
      yy_endRead-= yy_startRead;
      yy_currentPos-= yy_startRead;
      yy_markedPos-= yy_startRead;
      yy_pushbackPos-= yy_startRead;
      yy_startRead = 0;
    }

    /* is the buffer big enough? */
    if (yy_currentPos >= yy_buffer.length) {
      /* if not: blow it up */
      char newBuffer[] = new char[yy_currentPos*2];
      System.arraycopy(yy_buffer, 0, newBuffer, 0, yy_buffer.length);
      yy_buffer = newBuffer;
    }

    /* finally: fill the buffer with new input */
    int numRead = yy_reader.read(yy_buffer, yy_endRead, 
                                            yy_buffer.length-yy_endRead);

    if ( numRead == -1 ) return YYEOF;

    yy_endRead+= numRead;

    return yy_buffer[yy_currentPos++];
  }


  /**
   * Closes the input stream.
   */
  final public void yyclose() throws java.io.IOException {
    yy_atEOF = true;            /* indicate end of file */
    yy_endRead = yy_startRead;  /* invalidate buffer    */

    if (yy_reader != null)
      yy_reader.close();
  }


  /**
   * Closes the current stream, and resets the
   * scanner to read from a new input stream.
   *
   * All internal variables are reset, the old input stream 
   * <b>cannot</b> be reused (internal buffer is discarded and lost).
   * Lexical state is set to <tt>YY_INITIAL</tt>.
   *
   * @param reader   the new input stream 
   */
  final public void yyreset(java.io.Reader reader) throws java.io.IOException {
    yyclose();
    yy_reader = reader;
    yy_atBOL  = true;
    yy_atEOF  = false;
    yy_endRead = yy_startRead = 0;
    yy_currentPos = yy_markedPos = yy_pushbackPos = 0;
    yyline = yychar = yycolumn = 0;
    yy_lexical_state = YYINITIAL;
  }


  /**
   * Returns the current lexical state.
   */
  final public int yystate() {
    return yy_lexical_state;
  }


  /**
   * Enters a new lexical state
   *
   * @param newState the new lexical state
   */
  final public void yybegin(int newState) {
    yy_lexical_state = newState;
  }


  /**
   * Returns the text matched by the current regular expression.
   */
  final public String yytext() {
    return new String( yy_buffer, yy_startRead, yy_markedPos-yy_startRead );
  }


  /**
   * Returns the character at position <tt>pos</tt> from the 
   * matched text. 
   * 
   * It is equivalent to yytext().charAt(pos), but faster
   *
   * @param pos the position of the character to fetch. 
   *            A value from 0 to yylength()-1.
   *
   * @return the character at position pos
   */
  final public char yycharat(int pos) {
    return yy_buffer[yy_startRead+pos];
  }


  /**
   * Returns the length of the matched text region.
   */
  final public int yylength() {
    return yy_markedPos-yy_startRead;
  }


  /**
   * Reports an error that occured while scanning.
   *
   * In a wellformed scanner (no or only correct usage of 
   * yypushback(int) and a match-all fallback rule) this method 
   * will only be called with things that "Can't Possibly Happen".
   * If this method is called, something is seriously wrong
   * (e.g. a JFlex bug producing a faulty scanner etc.).
   *
   * Usual syntax/scanner level error handling should be done
   * in error fallback rules.
   *
   * @param   errorCode  the code of the errormessage to display
   */
  private void yy_ScanError(int errorCode) {
    String message;
    try {
      message = YY_ERROR_MSG[errorCode];
    }
    catch (ArrayIndexOutOfBoundsException e) {
      message = YY_ERROR_MSG[YY_UNKNOWN_ERROR];
    }

    throw new Error(message);
  } 


  /**
   * Pushes the specified amount of characters back into the input stream.
   *
   * They will be read again by then next call of the scanning method
   *
   * @param number  the number of characters to be read again.
   *                This number must not be greater than yylength()!
   */
  private void yypushback(int number)  {
    if ( number > yylength() )
      yy_ScanError(YY_PUSHBACK_2BIG);

    yy_markedPos -= number;
  }


  /**
   * Contains user EOF-code, which will be executed exactly once,
   * when the end of file is reached
   */
  private void yy_do_eof() throws java.io.IOException {
    if (!yy_eof_done) {
      yy_eof_done = true;
      yyclose();
    }
  }

File Line
hotsax/html/sax/ScriptLexer.java 40
hotsax/html/sax/StyleLexer.java 40
     0,  0,  0,  6,  7,  0,  0,  0,  0,  8,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0
  };

  /** 
   * Translates a state to a row index in the transition table
   */
  final private static int yy_rowMap [] = { 
        0,    16,    32,    48,    64,    80,    48,    96,   112,   128, 
      144,   160,   176,   192,   208,   224,   240,   256,   144,   144, 
      272,   288,   304,   320,   336,   352,   368,   384,   400,   144, 

File Line
hotsax/html/sax/HtmlParser.java 264
hotsax/html/sax/HtmlParser.java 275
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  258,   -1,

File Line
hotsax/html/sax/HtmlParser.java 234
hotsax/html/sax/ScriptLexer.java 40
    10,  0,  8,  6, 11,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0

File Line
hotsax/html/sax/HtmlLexer.java 48
hotsax/html/sax/StyleLexer.java 40
    10,  0,  8,  6, 11,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0
  };

  /** 
   * Translates a state to a row index in the transition table
   */
  final private static int yy_rowMap [] = { 
        0,    16,    32,    48,    64,    80,    48,    96,   112,   128, 

File Line
hotsax/html/sax/HtmlParser.java 234
hotsax/html/sax/StyleLexer.java 40
     0,  0,  0,  6,  7,  0,  0,  0,  0,  8,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0

File Line
hotsax/html/sax/HtmlLexer.java 48
hotsax/html/sax/HtmlParser.java 234
   43,   44,    3,   40,   25,   46,   42,    0,    0,   35,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

File Line
hotsax/html/sax/HtmlLexer.java 254
hotsax/html/sax/StyleLexer.java 263
		if (yyparser != null)
			yyparser.yylval = lexer_yylval;
	}


	/** Return the yy_reader for this class. Can be used to provide alternate scanner 
	  @return the Reader for this class */
	public Reader getReader() { return yy_reader; }
	public void setReader(Reader r) { yy_reader = r; }


	/**
  	 * Sets this lexer to the same yybuffer, and character positions as the other lexer
     */
	public void setBuffer(SemanticLexer lexer) {
		if (this.yy_buffer.length != lexer.getyyBuffer().length) {
      		char newBuffer[] = new char[lexer.getyyBuffer().length];
			this.yy_buffer = newBuffer;
		}
      	System.arraycopy(lexer.getyyBuffer(), 0, yy_buffer, 0, yy_buffer.length);
		this.yy_currentPos = lexer.getyyCurrentPos();
		this.yy_markedPos = lexer.getyyMarkedPos();
		this.yy_pushbackPos = lexer.getyyPushbackPos();
		this.yy_endRead = lexer.getyyEndRead();
		this.yy_startRead = lexer.getyyStartRead();
	}

	public char[] getyyBuffer() { return yy_buffer; }
	public int getyyCurrentPos() { return yy_currentPos; } 
	public int getyyMarkedPos() { return yy_markedPos; }
	public int getyyPushbackPos() { return yy_pushbackPos; }
	public int getyyEndRead() { return yy_endRead; }
	public int getyyStartRead() { return yy_startRead; }
	public void printBuffer() {
		for (int i = 0; i < yy_endRead; i++) {
			System.out.print(yy_buffer[i]);
		}
	}

  /**
   * Runs the scanner on input files.
   *
   * This main method is the debugging routine for the scanner.
   * It prints each returned token to System.out until the end of
   * file is reached, or an error occured.
   *
   * @param argv   the command line, contains the filenames to run
   *               the scanner on.
   */
  public static void main(String argv[]) {
    for (int i = 0; i < argv.length; i++) {

File Line
hotsax/html/sax/HtmlParser.java 293
hotsax/html/sax/HtmlParser.java 301
null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,"SOF","ANGLE_OPEN","ANGLE_CLOSE","ANGLE_END_OPEN",

File Line
hotsax/html/sax/HtmlParser.java 234
hotsax/html/sax/HtmlParser.java 245
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    2,    0,

File Line
hotsax/html/sax/ScriptLexer.java 317
hotsax/html/sax/StyleLexer.java 316
        scanner = new StyleLexer( new java.io.FileReader(argv[i]), (HtmlParser)null );
      }
      catch (java.io.FileNotFoundException e) {
        System.out.println("File not found : \""+argv[i]+"\"");
        System.exit(1);
      }
      catch (java.io.IOException e) {
        System.out.println("Error opening file \""+argv[i]+"\"");
        System.exit(1);
      }
      catch (ArrayIndexOutOfBoundsException e) {
        System.out.println("Usage : java HtmlLexer <inputfile>");
        System.exit(1);
      }

	  scanner.setDebug(true);
      try {
        do {
          System.out.println(scanner._yylex() + " : " + scanner.yytext() +  " lval:" + scanner.lexer_yylval);
        } while (!scanner.yy_atEOF);

      }
      catch (java.io.IOException e) {
        System.out.println("An I/O error occured while scanning :");
        System.out.println(e);
        System.exit(1);
      }
      catch (Exception e) {
        e.printStackTrace();
        System.exit(1);
      }
    }
  }

File Line
sk/baka/ambient/activity/search/LibraryEngine.java 41
sk/baka/ambient/activity/search/MagnatuneEngine.java 42
public final class MagnatuneEngine implements ISearchEngine {

	private StaticPlaylistController controller = null;
	private SearchActivity owner = null;
	private int listViewId;

	public boolean canSearchOffline() {
		return true;
	}

	public void init(final SearchActivity owner, final int listViewId) {
		this.owner = owner;
		this.listViewId = listViewId;
	}

	public void passivate() {
		controller = null;
	}

	public List<? extends Object> performSearch(String query) throws Exception {
		// search as substring in the following categories: artist, album, track
		// name. Use the OR operator for all words present in the query.
		final StringTokenizer words = new StringTokenizer(query, " \r\t\f\n");
		if (!words.hasMoreTokens()) {
			// no words to search for? return empty list
			return Collections.emptyList();
		}
		final List<String> searchFor = new ArrayList<String>();
		for (; words.hasMoreTokens();) {
			searchFor.add(words.nextToken());
		}
		// construct the criteria map
		final EnumMap<CategoryEnum, List<String>> criteria = new EnumMap<CategoryEnum, List<String>>(
				CategoryEnum.class);
		criteria.put(CategoryEnum.Album, searchFor);
		criteria.put(CategoryEnum.Artist, searchFor);
		criteria.put(CategoryEnum.Title, searchFor);

File Line
entagged/audioformats/mp4/util/Mp4TagBinaryField.java 41
entagged/audioformats/mp4/util/Mp4TagTextField.java 69
		byte[] b = new byte[4 + 4 + 4 + 4 + 4 + 4 + data.length];

		int offset = 0;
		Utils.copy(Utils.getSizeBigEndian(b.length), b, offset);
		offset += 4;

		Utils.copy(Utils.getDefaultBytes(getId()), b, offset);
		offset += 4;

		Utils.copy(Utils.getSizeBigEndian(4 + 4 + 4 + 4 + data.length), b,
				offset);
		offset += 4;

		Utils.copy(Utils.getDefaultBytes("data"), b, offset);
		offset += 4;

		Utils.copy(new byte[] { 0, 0, 0, (byte) (isBinary() ? 0 : 1) }, b,
				offset);
		offset += 4;

		Utils.copy(new byte[] { 0, 0, 0, 0 }, b, offset);
		offset += 4;

		Utils.copy(data, b, offset);
		offset += data.length;

		return b;
	}

File Line
hotsax/html/sax/HtmlLexer.java 307
hotsax/html/sax/StyleLexer.java 316
        scanner = new ScriptLexer( new java.io.FileReader(argv[i]), (HtmlParser)null );
      }
      catch (java.io.FileNotFoundException e) {
        System.out.println("File not found : \""+argv[i]+"\"");
        System.exit(1);
      }
      catch (java.io.IOException e) {
        System.out.println("Error opening file \""+argv[i]+"\"");
        System.exit(1);
      }
      catch (ArrayIndexOutOfBoundsException e) {
        System.out.println("Usage : java HtmlLexer <inputfile>");
        System.exit(1);
      }

	  scanner.setDebug(true);
      try {
        do {
          System.out.println(scanner._yylex() + " : " + scanner.yytext() +  " lval:" + scanner.lexer_yylval);
        } while (!scanner.yy_atEOF);

      }
      catch (java.io.IOException e) {
        System.out.println("An I/O error occured while scanning :");
        System.out.println(e);
        System.exit(1);
      }
      catch (Exception e) {
        e.printStackTrace();
        System.exit(1);
      }
    }
  }

File Line
entagged/audioformats/mp3/Id3V2TagConverter.java 119
entagged/audioformats/mp3/util/Id3v24TagReader.java 100
		this.conversion22to23 = new Hashtable(100);
		String[] v22 = { "BUF", "CNT", "COM", "CRA", "CRM", "ETC", "EQU",
				"GEO", "IPL", "LNK", "MCI", "MLL", "PIC", "POP", "REV", "RVA",
				"SLT", "STC", "TAL", "TBP", "TCM", "TCO", "TCR", "TDA", "TDY",
				"TEN", "TFT", "TIM", "TKE", "TLA", "TLE", "TMT", "TOA", "TOF",
				"TOL", "TOR", "TOT", "TP1", "TP2", "TP3", "TP4", "TPA", "TPB",
				"TRC", "TRD", "TRK", "TSI", "TSS", "TT1", "TT2", "TT3", "TXT",
				"TXX", "TYE", "UFI", "ULT", "WAF", "WAR", "WAS", "WCM", "WCP",
				"WPB", "WXX" };
		String[] v23 = { "RBUF", "PCNT", "COMM", "AENC", "", "ETCO", "EQUA",
				"GEOB", "IPLS", "LINK", "MCDI", "MLLT", "APIC", "POPM", "RVRB",
				"RVAD", "SYLT", "SYTC", "TALB", "TBPM", "TCOM", "TCON", "TCOP",

File Line
hotsax/html/sax/ScriptLexer.java 16
hotsax/html/sax/StyleLexer.java 16
class StyleLexer implements SemanticLexer {

  /** This character denotes the end of file */
  final public static int YYEOF = -1;

  /** initial size of the lookahead buffer */
  final private static int YY_BUFFERSIZE = 16384;

  /** lexical states */
  final public static int ERROR_RECOVER = 2;
  final public static int IGNORE_CDATA = 1;
  final public static int YYINITIAL = 0;

  /** 
   * Translates characters to character classes
   */
  final private static char [] yycmap = {
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  2,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  3,  0,  5, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0,  4,  0, 
     0, 14,  0, 12, 13, 10,  0,  0,  0,  0,  0,  0,  9,  0,  0,  0, 

File Line
hotsax/html/sax/HtmlLexer.java 48
hotsax/html/sax/HtmlParser.java 248
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    2,    0,

File Line
hotsax/html/sax/HtmlParser.java 248
hotsax/html/sax/StyleLexer.java 40
     0,  0,  0,  6,  7,  0,  0,  0,  0,  8,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 

File Line
hotsax/html/sax/ScriptLexer.java 100
hotsax/html/sax/StyleLexer.java 99
     0,  0,  9,  9,  0,  0,  0,  0,  0,  0,  0,  0,  0,  9,  9
  };

  /** the input device */
  private java.io.Reader yy_reader;

  /** the current state of the DFA */
  private int yy_state;

  /** the current lexical state */
  private int yy_lexical_state = YYINITIAL;

  /** this buffer contains the current text to be matched and is
      the source of the yytext() string */
  private char yy_buffer[] = new char[YY_BUFFERSIZE];

  /** the textposition at the last accepting state */
  private int yy_markedPos;

  /** the textposition at the last state to be included in yytext */
  private int yy_pushbackPos;

  /** the current text position in the buffer */
  private int yy_currentPos;

  /** startRead marks the beginning of the yytext() string in the buffer */
  private int yy_startRead;

  /** endRead marks the last character in the buffer, that has been read
      from input */
  private int yy_endRead;

  /** number of newlines encountered up to the start of the matched text */
  private int yyline;

  /** the number of characters up to the start of the matched text */
  private int yychar;

  /**
   * the number of characters from the last newline up to the start of the 
   * matched text
   */
  private int yycolumn; 

  /** 
   * yy_atBOL == true <=> the scanner is currently at the beginning of a line
   */
  private boolean yy_atBOL = true;

  /** yy_atEOF == true <=> the scanner is at the EOF */
  private boolean yy_atEOF;

  /** denotes if the user-EOF-code has already been executed */
  private boolean yy_eof_done;

  /* user code: */
	private HtmlParser yyparser;
	private StringBuffer text = new StringBuffer();
	private StringBuffer cdata = new StringBuffer();

	private Vector tokenQueue;

	protected boolean debug = false;
	public void setDebug(boolean debug) { this.debug = debug; }
	public boolean getDebug() { return debug; }

	public void p(String s) { System.out.println(s); }
	
	public boolean getEOF() { return yy_atEOF; }

	public StyleLexer(Reader r, HtmlParser p)

File Line
hotsax/html/sax/DebugParserDelegate.java 47
hotsax/html/sax/SaxHandlerDelegate.java 45
			contentHandler.startDocument();	
                        
		}
		catch (SAXException ex)
		{
		    parser.yyerror(ex.getMessage());
		}
	}


      /** 
        * Parse a PI and pass it to the contentHandler event
        *  (does not pass xml declaration:  <?xml version = 1>)
		* Separates the target from the data by using whitespace.
        * 
        */ 
	public void processingInstruction(HtmlParserVal target, HtmlParserVal lval)
	{
		try {
            if (contentHandler != null) {
                StringTokenizer stok = new StringTokenizer(lval.sval);  // default delim = \sp
                
                if (stok.hasMoreElements())
                {
                    String data;
                    if (stok.hasMoreElements())
                        data = stok.nextToken();
                    else
                        data = "";
                    if (!target.equals("xml"))
                        contentHandler.processingInstruction(target.toString(), data);
                }
            }
		}
		catch (SAXException ex)
		{
			parser.yyerror(ex.getMessage());
		}
	}

	/**
  	 * Initialize the start of a start element. Prepares the attribute list
	 * to collect any attributes.
	 */
	public void startElement() 
	{
		attrList.clear();
	}

	/**
          * Adds an attribute to the list. The name of the attribute is normalized
          * to lowercase 
	  */
	public void addAttribute(String name, String value) {
		attrList.addAttribute("", "", name, "NMTOKEN", value);

File Line
hotsax/html/sax/HtmlParser.java 248
hotsax/html/sax/ScriptLexer.java 40
    10,  0,  8,  6, 11,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 

File Line
hotsax/html/sax/ScriptLexer.java 40
hotsax/html/sax/ScriptLexer.java 44
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0

File Line
hotsax/html/sax/StyleLexer.java 40
hotsax/html/sax/StyleLexer.java 44
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0

File Line
hotsax/html/sax/HtmlLexer.java 48
hotsax/html/sax/HtmlLexer.java 52
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0

File Line
sk/baka/ambient/activity/search/LibraryEngine.java 77
sk/baka/ambient/activity/search/MagnatuneEngine.java 80
				.singletonList(TrackOriginEnum.Magnatune.toDBString()));
		// retrieve the track list
		final Library lib = AmbientApplication.getInstance().getLibrary();
		final Cursor c = lib.getBackend().findByCriteria(criteria, true, false,
				null);
		final List<TrackMetadataBean> tracks = LibraryUtils.pollTracks(c);
		CollectionUtils.sortByAlbumOrder(tracks);
		return tracks;
	}

	@SuppressWarnings("unchecked")
	public void update(List<? extends Object> model) {
		if (controller == null) {
			controller = new StaticPlaylistController(listViewId, listViewId,
					owner, (List<TrackMetadataBean>) model, false);
		} else {
			controller.setTracks((List<TrackMetadataBean>) model);
		}
	}

	public SearchType getType() {
		return SearchType.Magnatune;

File Line
hotsax/html/sax/HtmlLexer.java 592
hotsax/html/sax/StyleLexer.java 600
  public int yylex() throws java.io.IOException {
    int yy_input;
    int yy_action;


    while (true) {

      yy_action = -1;

      yy_currentPos = yy_startRead = yy_markedPos;

      yy_state = yy_lexical_state;


      yy_forAction: {
        while (true) {

          yy_input = yy_advance();

          if ( yy_input == YYEOF ) break yy_forAction;

          int yy_next = yytrans[ yy_rowMap[yy_state] + yycmap[yy_input] ];
          if (yy_next == -1) break yy_forAction;
          yy_state = yy_next;

          int yy_attributes = YY_ATTRIBUTE[yy_state];
          if ( (yy_attributes & 1) > 0 ) {
            yy_action = yy_state; 
            yy_markedPos = yy_currentPos; 
            if ( (yy_attributes & 8) > 0 ) break yy_forAction;
          }

        }
      }


      switch (yy_action) {

        case 19: 

File Line
entagged/audioformats/flac/util/FlacTagWriter.java 151
entagged/audioformats/flac/util/FlacTagWriter.java 169
	private int computeNeededRoom() {
		int length = 0;
		
		for(int i = 0; i<metadataBlockApplication.size(); i++)
			length += ((MetadataBlock) metadataBlockApplication.elementAt(i)).getLength();
		
		for(int i = 0; i<metadataBlockSeekTable.size(); i++)
			length += ((MetadataBlock) metadataBlockSeekTable.elementAt(i)).getLength();
		
		for(int i = 0; i<metadataBlockCueSheet.size(); i++)
			length += ((MetadataBlock) metadataBlockCueSheet.elementAt(i)).getLength();

File Line
entagged/audioformats/ape/util/ApeTagCreator.java 51
entagged/audioformats/ape/util/ApeTagCreator.java 84
		buf.put(b);
		
		//Number of fields
		b = new byte[4];
		b[3] = (byte) ( ( listLength & 0xFF000000 ) >>> 24 );
		b[2] = (byte) ( ( listLength & 0x00FF0000 ) >>> 16 );
		b[1] = (byte) ( ( listLength & 0x0000FF00 ) >>> 8 );
		b[0] = (byte) ( listLength & 0x000000FF );
		buf.put( b );
		
		//Flags
		buf.put( new byte[] {0x00,0x00,0x00,(byte)0x80} );