org.egothor.text
Class Anchor

java.lang.Object
  extended by org.egothor.text.Anchor

public final class Anchor
extends java.lang.Object


Field Summary
 java.net.URI uri
           
 
Constructor Summary
Anchor(java.lang.StringBuilder sb, int offset, int len, java.net.URI uri)
           
Anchor(java.lang.String text, java.net.URI uri)
           
 
Method Summary
 java.lang.String anchorText()
          Returns anchor text of this object.
 void store(DataOutput out)
          Stores the anchor text, not the URI link.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uri

public java.net.URI uri
Constructor Detail

Anchor

public Anchor(java.lang.StringBuilder sb,
              int offset,
              int len,
              java.net.URI uri)

Anchor

public Anchor(java.lang.String text,
              java.net.URI uri)
Method Detail

store

public void store(DataOutput out)
           throws java.io.IOException
Stores the anchor text, not the URI link.

Throws:
java.io.IOException

anchorText

public java.lang.String anchorText()
Returns anchor text of this object.

Returns:
the text which cannot be null in any case