Skip to content

Commit 70f3839

Browse files
Add files via upload
1 parent 6808d57 commit 70f3839

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

doc/cssdoc.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package doc;
2+
import java.io.*;
3+
4+
class cssdoc{
5+
public static PrintStream source;
6+
public static void CreateCSS(String Path,String file)throws FileNotFoundException{
7+
8+
source = new PrintStream(new File(Path + file + ".css"));
9+
10+
11+
}
12+
public static void AddCSS(String code){
13+
source.println(code);
14+
}
15+
public static void CloseCSS()throws FileNotFoundException{
16+
17+
source.close();
18+
19+
}
20+
21+
22+
23+
}

doc/htmldoc.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package doc;
2+
import java.io.*;
3+
4+
class htmldoc{
5+
public static PrintStream source;
6+
public static void CreateHTML(String Path,String file,String title,String metaTags,cssdoc CSS)throws FileNotFoundException{
7+
8+
source = new PrintStream(new File(Path + file));
9+
source.println("<!DOCTYPE html><html><head><title>"+ title +"<title>"+ metaTags + "</head><body>" );
10+
11+
}
12+
public static void CreateHTML(String Path,String file,String title)throws FileNotFoundException{
13+
14+
source = new PrintStream(new File(Path + file + ".html"));
15+
source.println("<!DOCTYPE html><html><head><title>"+ title +"<title>"+"</head><body>" );
16+
17+
}
18+
public static void AddHTML(String code){
19+
source.println(code);
20+
}
21+
public static void CloseHTML()throws FileNotFoundException{
22+
source.println("</body></html>");
23+
source.close();
24+
25+
}
26+
27+
28+
29+
}

0 commit comments

Comments
 (0)