Package br.com.caelum.tubaina.parser.html.kindle

Source Code of br.com.caelum.tubaina.parser.html.kindle.ParagraphTag

package br.com.caelum.tubaina.parser.html.kindle;

import br.com.caelum.tubaina.chunk.ParagraphChunk;
import br.com.caelum.tubaina.parser.Parser;
import br.com.caelum.tubaina.parser.Tag;
import br.com.caelum.tubaina.parser.html.ParagraphTagTemplate;
import br.com.caelum.tubaina.util.Sanitizer;

import com.google.inject.Inject;

public class ParagraphTag implements Tag<ParagraphChunk> {

  private ParagraphTagTemplate template;

  @Inject
  public ParagraphTag(Sanitizer sanitizer, Parser parser) {
    this.template = new ParagraphTagTemplate(sanitizer, parser);
  }
 
  @Override
  public String parse(ParagraphChunk chunk) {
    return template.parse(chunk);
  }

}
TOP

Related Classes of br.com.caelum.tubaina.parser.html.kindle.ParagraphTag

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.