HelloHeadListener.java :  » Wiki-Engine » gwtwiki » info » bliki » wiki » test » big » Java Open Source

Java Open Source » Wiki Engine » gwtwiki 
gwtwiki » info » bliki » wiki » test » big » HelloHeadListener.java
package info.bliki.wiki.test.big;

import info.bliki.wiki.model.DefaultEventListener;

/**
 * A test wiki event listener implementation which will trigger the
 * <code>on....</code> event methods during the parsing process.
 * 
 * 
 */
public class HelloHeadListener extends DefaultEventListener {
  StringBuffer collectorBuffer = new StringBuffer();

  public HelloHeadListener() {

  }

  public void onHeader(char[] src, int rawStart, int rawEnd, int level) {
    collectorBuffer.append(src, rawStart, rawEnd - rawStart);
    collectorBuffer.append("\n");
  }

  public void onWikiLink(char[] src, int rawStart, int rawEnd, String suffix) {
  }

  public StringBuffer getCollectorBuffer() {
    return collectorBuffer;
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.