langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/FixedStringContent.java
equal
deleted
inserted
replaced
26 |
26 |
27 import java.io.IOException; |
27 import java.io.IOException; |
28 import java.io.Writer; |
28 import java.io.Writer; |
29 |
29 |
30 import jdk.javadoc.internal.doclets.toolkit.Content; |
30 import jdk.javadoc.internal.doclets.toolkit.Content; |
31 import jdk.javadoc.internal.doclets.toolkit.util.DocletAbortException; |
|
32 import jdk.javadoc.internal.doclets.toolkit.util.DocletConstants; |
31 import jdk.javadoc.internal.doclets.toolkit.util.DocletConstants; |
33 |
32 |
34 /** |
33 /** |
35 * Class for containing fixed string content for HTML tags of javadoc output. |
34 * Class for containing fixed string content for HTML tags of javadoc output. |
36 * |
35 * |
55 |
54 |
56 /** |
55 /** |
57 * This method is not supported by the class. |
56 * This method is not supported by the class. |
58 * |
57 * |
59 * @param content content that needs to be added |
58 * @param content content that needs to be added |
60 * @throws DocletAbortException this method will always throw a |
59 * @throws UnsupportedOperationException always |
61 * DocletAbortException because it |
|
62 * is not supported. |
|
63 */ |
60 */ |
64 @Override |
61 @Override |
65 public void addContent(Content content) { |
62 public void addContent(Content content) { |
66 throw new DocletAbortException("not supported"); |
63 throw new UnsupportedOperationException(); |
67 } |
64 } |
68 |
65 |
69 /** |
66 /** |
70 * Adds content for the StringContent object. The method escapes |
67 * Adds content for the StringContent object. The method escapes |
71 * HTML characters for the string content that is added. |
68 * HTML characters for the string content that is added. |
72 * |
69 * |
73 * @param strContent string content to be added |
70 * @param strContent string content to be added |
74 * @throws DocletAbortException this method will always throw a |
71 * @throws UnsupportedOperationException always |
75 * DocletAbortException because it |
|
76 * is not supported. |
|
77 */ |
72 */ |
78 @Override |
73 @Override |
79 public void addContent(CharSequence strContent) { |
74 public void addContent(CharSequence strContent) { |
80 throw new DocletAbortException("not supported"); |
75 throw new UnsupportedOperationException(); |
81 } |
76 } |
82 |
77 |
83 /** |
78 /** |
84 * {@inheritDoc} |
79 * {@inheritDoc} |
85 */ |
80 */ |