org.egothor.text
Class StringWithWeights

java.lang.Object
  extended by org.egothor.text.Stringer
      extended by org.egothor.text.StringWithWeights

public class StringWithWeights
extends Stringer

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
StringWithWeights()
          Constructor for the Stringer object
StringWithWeights(int maxlen)
          Constructor for the Stringer object
 
Method Summary
 void close()
           
 CharStream open()
           
 void save(int priority)
          Description of the Method
 
Methods inherited from class org.egothor.text.Stringer
append, createAnchor, handle, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringWithWeights

public StringWithWeights()
Constructor for the Stringer object


StringWithWeights

public StringWithWeights(int maxlen)
Constructor for the Stringer object

Parameters:
maxlen - Description of the Parameter
Method Detail

open

public CharStream open()

save

public void save(int priority)
Description of the Method

Parameters:
priority - Description of the Parameter
position - Description of the Parameter

close

public void close()