org.egothor.text
Class Stringer

java.lang.Object
  extended by org.egothor.text.Stringer
Direct Known Subclasses:
StringWithWeights

public class Stringer
extends java.lang.Object

This string class works this way: extra spaces are reduced, maximum length of the string cannot be exceeded, string has different weights for its substrings (w/o overlapping).

Author:
Leo Galambos

Constructor Summary
Stringer()
          Constructor for the Stringer object
Stringer(int maxlen)
          Constructor for the Stringer object
 
Method Summary
 void append(char c)
          Description of the Method
 Anchor createAnchor(int fromHandle, java.net.URI uri)
           
 int handle()
           
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stringer

public Stringer()
Constructor for the Stringer object


Stringer

public Stringer(int maxlen)
Constructor for the Stringer object

Parameters:
maxlen - Description of the Parameter
Method Detail

toString

public java.lang.String toString()
Description of the Method

Overrides:
toString in class java.lang.Object
Returns:
Description of the Return Value

handle

public int handle()

createAnchor

public Anchor createAnchor(int fromHandle,
                           java.net.URI uri)

append

public void append(char c)
Description of the Method

Parameters:
c - Description of the Parameter