-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtmldoc.java
More file actions
29 lines (20 loc) · 951 Bytes
/
htmldoc.java
File metadata and controls
29 lines (20 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package doc;
import java.io.*;
class htmldoc{
public static PrintStream source;
public static void CreateHTML(String Path,String file,String title,String metaTags,cssdoc CSS)throws FileNotFoundException{
source = new PrintStream(new File(Path + file));
source.println("<!DOCTYPE html><html><head><title>"+ title +"<title>"+ metaTags +"<sytle>" + "</sytle>" +"</head><body>" );
}
public static void CreateHTML(String Path,String file,String title)throws FileNotFoundException{
source = new PrintStream(new File(Path + file + ".html"));
source.println("<!DOCTYPE html><html><head><title>"+ title +"<title>"+"</head><body>" );
}
public static void AddHTML(String code){
source.println(code);
}
public static void CloseHTML()throws FileNotFoundException{
source.println("</body></html>");
source.close();
}
}