Class Start

java.lang.Object
   |
   +----Start

public class Start
extends Object
Class invoked everytime one `Make`s the whole package Does preliminary things such as setting up the Starting page. It can also be modified to invoke creation of tables. The method has been written but not invoked because it is not feasible to drop tables everytime one compiles and starts Start.java Assumption : Tables will be created only once in ETD's lifetime. Institute database will be so large that it is not advisable to drop tables without backup.


Constructor Index

 o Start()

Method Index

 o copyImageFile(String, FileOutputStream)
Method to copy the Image file to a FileOutputStream
 o createPage(String, DataOutputStream)
Method to create the starting page
 o createStartPage()
Method to create the starting page
 o createTables()
Method to create the tables
 o main(String[])
 o printDept(DataOutputStream)
Method to print FORM ACTION of the starting page with action pointing to servlet `Dept`
 o printFooter(DataOutputStream)
Method to create the footer of starting page
 o printHead(String, String, DataOutputStream)
Method to create the header of starting page
 o printMain(DataOutputStream)
Method to print the FORM ACTION tag of the starting page with the action pointing to servlet `Main`
 o printQuery(DataOutputStream)
Method to print FORM ACTION of the starting page with action pointing to servlet `Query`

Constructors

 o Start
 public Start()

Methods

 o main
 public static void main(String argv[])
 o createTables
 public static void createTables()
Method to create the tables

Returns:
nothing
 o createStartPage
 public static void createStartPage()
Method to create the starting page

Returns:
nothing
 o printHead
 public static void printHead(String title,
                              String head,
                              DataOutputStream dout)
Method to create the header of starting page

Parameters:
title - Title of the page as String
head - Head of the page as String
dout - DataOutputStream instance
Returns:
nothing
 o printFooter
 public static void printFooter(DataOutputStream dout)
Method to create the footer of starting page

Parameters:
dout - DataOutputStream instance
Returns:
nothing
 o printMain
 public static void printMain(DataOutputStream dout)
Method to print the FORM ACTION tag of the starting page with the action pointing to servlet `Main`

Parameters:
dout - DataOutputStream instance
Returns:
nothing
 o printQuery
 public static void printQuery(DataOutputStream dout)
Method to print FORM ACTION of the starting page with action pointing to servlet `Query`

Parameters:
dout - DataOutputStream instance
Returns:
nothing
 o printDept
 public static void printDept(DataOutputStream dout)
Method to print FORM ACTION of the starting page with action pointing to servlet `Dept`

Parameters:
dout - DataOutputStream instance
Returns:
nothing
 o createPage
 public static void createPage(String Filename,
                               DataOutputStream dout)
Method to create the starting page

Parameters:
Filename - Name of file as String
dout - DataOutputStream instance
Returns:
nothing
 o copyImageFile
 public static void copyImageFile(String Filename,
                                  FileOutputStream fout)
Method to copy the Image file to a FileOutputStream

Parameters:
Filename - Name of file as String
fout - FileOutputStream instance
Returns:
nothing