Programmatic HTMLDocument generation using Java

前端 未结 9 1905
孤独总比滥情好
孤独总比滥情好 2021-02-14 03:34

Does anyone know how to generate an HTMLDocument object programmatically in Java without resorting to generating a String externally and then using HTMLEditorKit#read to parse i

9条回答
  •  心在旅途
    2021-02-14 04:18

    I think manually generating your HTML via something like a StringBuilder (or directly to a stream) is going to be your best option, especially if you cannot use any external libraries.

    Not being able to use any external libraries, you will suffer more in terms of speed of development rather than performance.

提交回复
热议问题