langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/StringContent.java
equal
deleted
inserted
replaced
27 |
27 |
28 import java.io.IOException; |
28 import java.io.IOException; |
29 import java.io.Writer; |
29 import java.io.Writer; |
30 |
30 |
31 import jdk.javadoc.internal.doclets.toolkit.Content; |
31 import jdk.javadoc.internal.doclets.toolkit.Content; |
32 import jdk.javadoc.internal.doclets.toolkit.util.DocletAbortException; |
|
33 import jdk.javadoc.internal.doclets.toolkit.util.DocletConstants; |
32 import jdk.javadoc.internal.doclets.toolkit.util.DocletConstants; |
34 |
33 |
35 /** |
34 /** |
36 * Class for generating string content for HTML tags of javadoc output. |
35 * Class for generating string content for HTML tags of javadoc output. |
37 * |
36 * |
42 * |
41 * |
43 * @author Bhavesh Patel |
42 * @author Bhavesh Patel |
44 */ |
43 */ |
45 public class StringContent extends Content { |
44 public class StringContent extends Content { |
46 |
45 |
47 private StringBuilder stringContent; |
46 private final StringBuilder stringContent; |
48 |
47 |
49 /** |
48 /** |
50 * Constructor to construct StringContent object. |
49 * Constructor to construct StringContent object. |
51 */ |
50 */ |
52 public StringContent() { |
51 public StringContent() { |
65 |
64 |
66 /** |
65 /** |
67 * This method is not supported by the class. |
66 * This method is not supported by the class. |
68 * |
67 * |
69 * @param content content that needs to be added |
68 * @param content content that needs to be added |
70 * @throws DocletAbortException this method will always throw a |
69 * @throws UnsupportedOperationException always |
71 * DocletAbortException because it |
|
72 * is not supported. |
|
73 */ |
70 */ |
74 @Override |
71 @Override |
75 public void addContent(Content content) { |
72 public void addContent(Content content) { |
76 throw new DocletAbortException("not supported"); |
73 throw new UnsupportedOperationException(); |
77 } |
74 } |
78 |
75 |
79 /** |
76 /** |
80 * Adds content for the StringContent object. The method escapes |
77 * Adds content for the StringContent object. The method escapes |
81 * HTML characters for the string content that is added. |
78 * HTML characters for the string content that is added. |