JSP generates HTML - WRITEHTML

xiaoxiao2021-03-06  66

Writehtml.java

Package ball.news;

Import java.io. *;

Public class writehtml {

Public Writehtml () {}

public static void save (String s, String s1, String s2) {try {a (s1); FileOutputStream fileoutputstream = new FileOutputStream (s1 s2); byte abyte0 [] = s.getBytes (); fileoutputstream.write (abyte0) FileOutputStream.close ();} catch (ooException e) {system.out.println ("Write HTML ERROR" E.GetMessage ());}}

Private static void a (string s) {try {file file = new file (s); if (! file.exists ()) file.mkdirs ();} catch (exception e) {system.out.println ("MKDIRS Error! " E.getMessage ());}}}

转载请注明原文地址:https://www.9cbs.com/read-86626.html

New Post(0)