import java.io.*;
import java.util.*;

abstract class AbstractPage {
  String title;
  String error;
  BufferedReader in;
  String lastLine;
  PictureParameters pictureParameters;

  /** Reads another line. */
  void read() throws IOException {
     lastLine = in.readLine();
  }

  /** Leaves lastLine containing null or first non-white data. */
  void skipWhite() throws IOException {
    read();
    while (lastLine != null && empty() ) {
      read();
    }
  }
  
  /** True if lastLine is empty */
  boolean empty() {
    return lastLine.trim().length() == 0;
  }

  abstract void makePage(Template t) throws java.io.IOException;
  String pageName() {
    return title + ".html";
  }
}
