info.bliki.wiki.cache
Class CachedHTML

java.lang.Object
  extended by info.bliki.wiki.cache.CachedHTML

public class CachedHTML
extends java.lang.Object

Cache the HTML output so that editable or non-editable wiki links could be refreshed with the different HTML <a href="..." class="new" > links.


Constructor Summary
CachedHTML(WikiStringBuilder builder)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String refresh()
          Refresh the internal HTML string representation (for example after some modifications made with the setCharactersAt() method).
 void setCharactersAt(int index, char[] chars)
           Sets the characters at the index in the internal WikiStringBuilder.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CachedHTML

public CachedHTML(WikiStringBuilder builder)
Method Detail

refresh

public java.lang.String refresh()
Refresh the internal HTML string representation (for example after some modifications made with the setCharactersAt() method).

Returns:
a new String() object representation of the WikiStringBuilder's content.

setCharactersAt

public void setCharactersAt(int index,
                            char[] chars)

Sets the characters at the index in the internal WikiStringBuilder.

Parameters:
index - the zero-based index of the characters to replace.
chars - the characters to set.
Throws:
java.lang.IndexOutOfBoundsException - if index is negative or index+chars.length is greater than or equal to the current #length().

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object