Package br.com.caelum.tubaina.parser.latex

Source Code of br.com.caelum.tubaina.parser.latex.TodoTag

package br.com.caelum.tubaina.parser.latex;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;

import br.com.caelum.tubaina.TubainaException;
import br.com.caelum.tubaina.parser.Tag;

public class TodoTag implements Tag {

  public String parse(String string, String options) {
    try {
      PrintStream stream = new PrintStream(new FileOutputStream(new File("todo.log"), true));
      stream.println("<==========================================================>");
      stream.println(string.trim());
    } catch (FileNotFoundException e) {
      throw new TubainaException("File could not be read", e);
    }
    return "";
  }

}
TOP

Related Classes of br.com.caelum.tubaina.parser.latex.TodoTag

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.