KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > grammar > wiki > impl > MultipleNewLineTokenHandler


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.grammar.wiki.impl;
6
7 /**
8  * @author Tuan Nguyen (tuan08@users.sourceforge.net)
9  * @since Dec 19, 2004
10  * @version $Id$
11  */

12 public class MultipleNewLineTokenHandler extends TokenHandler {
13   
14   public Token handleToken(Token parent, Token token, ParsingContext context) {
15     context.out("<br/><br/>") ;
16     return context.nextToken(token) ;
17   }
18   
19   public String JavaDoc[] getHandleableTokenType() {
20     return new String JavaDoc[]{Token.MULTIPLE_NEW_LINE_TOKEN} ;
21   }
22 }
Popular Tags