java.lang.Object
gw.gosudoc.com.sun.tools.doclets.internal.toolkit.Content
gw.gosudoc.com.sun.tools.doclets.formats.html.markup.StringContent

@Deprecated public class StringContent extends Content
Deprecated.
Class for generating string content for HTML tags of javadoc output.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Constructor to construct StringContent object.
    StringContent(String initialContent)
    Deprecated.
    Constructor to construct StringContent object with some initial content.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    This method is not supported by the class.
    void
    addContent(String strContent)
    Deprecated.
    Adds content for the StringContent object.
    private void
    Deprecated.
     
    int
    Deprecated.
    Return the number of characters of plain text content in this object (optional operation.)
    boolean
    Deprecated.
    Returns true if the content is empty.
    Deprecated.
    Returns a string representation of the content.
    boolean
    write(Writer out, boolean atNewline)
    Deprecated.
    Writes content to a writer.

    Methods inherited from class gw.gosudoc.com.sun.tools.doclets.internal.toolkit.Content

    isValid, nullCheck

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • stringContent

      private StringBuilder stringContent
      Deprecated.
  • Constructor Details

    • StringContent

      public StringContent()
      Deprecated.
      Constructor to construct StringContent object.
    • StringContent

      public StringContent(String initialContent)
      Deprecated.
      Constructor to construct StringContent object with some initial content.
      Parameters:
      initialContent - initial content for the object
  • Method Details

    • addContent

      public void addContent(Content content)
      Deprecated.
      This method is not supported by the class.
      Specified by:
      addContent in class Content
      Parameters:
      content - content that needs to be added
      Throws:
      DocletAbortException - this method will always throw a DocletAbortException because it is not supported.
    • addContent

      public void addContent(String strContent)
      Deprecated.
      Adds content for the StringContent object. The method escapes HTML characters for the string content that is added.
      Specified by:
      addContent in class Content
      Parameters:
      strContent - string content to be added
    • isEmpty

      public boolean isEmpty()
      Deprecated.
      Returns true if the content is empty.
      Specified by:
      isEmpty in class Content
      Returns:
      true if no content to be displayed else return false
    • charCount

      public int charCount()
      Deprecated.
      Description copied from class: Content
      Return the number of characters of plain text content in this object (optional operation.)
      Overrides:
      charCount in class Content
      Returns:
      the number of characters of plain text content in this
    • toString

      public String toString()
      Deprecated.
      Returns a string representation of the content.
      Overrides:
      toString in class Content
      Returns:
      string representation of the content
    • write

      public boolean write(Writer out, boolean atNewline) throws IOException
      Deprecated.
      Writes content to a writer.
      Specified by:
      write in class Content
      Throws:
      IOException
    • appendChars

      private void appendChars(String s)
      Deprecated.