Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the transformation method of HTML in Java2

Shulou Source: shulou.com Published: 2022-06-02 03:34:04 10月03日 Update

Most people do not understand the knowledge points of this article "what is the method of HTML transformation in Java2?", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "what is the method of HTML transformation in Java2".

The Buildjava2html method finally calls the O01055 method, which seems to be the final method to generate the html page.

In that case, we add ".getBytes (encoding)" to all the parameters in the write method that appear in this method, and this encoding has been assigned with the user-specified encoding in the constructor.

What has been modified is as follows:

Public void O01055 ()

Throws Exception

{

Hashtable hashtable = O01093 ()

Enumeration enumeration = hashtable.keys ()

Object obj = null

Object obj1 = null

While (enumeration.hasMoreElements ())

{

String s = (String) enumeration.nextElement ()

O01090 o01090 = (O01090) hashtable.get (s)

File file = new File (O01045)

String S1 = file.getAbsolutePath ()

If (! s1.endsWith (File.separator))

{

S1 = S1 + File.separator

}

String S2 = null

If (o01090.O01082.equals ("))

{

S2 = S1 + o01090.O01006 + ".java.html"

} else

{

S2 = S1 + O07.O01015 (o01090.O01082, File.separatorChar) + File.separatorChar + o01090.O01006 + ".java.html"

}

File file1 = new File (S1 + O07.O01015 (o01090.O01082,'/'))

File1.mkdirs ()

O01025 O01025 = new O01025 (S2, O01040, O01041)

FileReader filereader = new FileReader (s)

O01025.O01032 (false)

String S3 = "."

If (o01090.O01082.length () = = 0)

{

S3 = ""

}

O07.setEncoding (encoding)

String S4 = O07.O01018 (o01090.O01082)

String S5 = O01117 (S4)

O01025.write (new String (O07.O01004 (S5 + "stylesheet.css", o01090.O01082 + S3 + o01090.O01006) .getBytes (encoding)

O01025.write (new String (O07.O01011 (o01090.O01006, ", O01012) .getBytes (encoding)

O01025.write (new String (o01025.O01037 (). GetBytes (encoding)

O01025.O01032 (true)

Boolean flag = false

Try

{

O0106.O0108 (filereader, o01025, S5, this, O01051)

O01025.O01032 (false)

}

Catch (O0109 _ ex)

{

Flag = true

System.out.println ("Parse Error, Non-Legal Java File. (2nd Parse-File has changed since first pars" +

"e)"

);

}

Catch (IOException _ ex)

{

Flag = true

System.out.println ("IO Error. (2nd Parse)")

}

Finally

{

Try

{

O01025.write (new String (O07.O01013 (o01090.O01006, ", O01014) .getBytes (encoding)

O01025.write (new String (O07.O01007 (). GetBytes (encoding)

O01025.close ()

}

Catch (IOException _ ex) {}

Try

{

Filereader.close ()

}

Catch (IOException _ ex) {}

}

If (! flag)

{

System.out.println ("Created:" + S2)

}

}

}

It can be seen from this method that all resources are obtained from class O07.

The above is about the content of this article on "what is the transformation method of HTML in Java2". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more related knowledge, please pay attention to the industry information channel.

Tags: Methods content transformation articles knowledge articles values parameters most of them that is that being the case more steps users knowledge points coding industry resources information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Apple Shulou Tech Info Xiaomi Huawei