org.onebusaway.presentation.impl.text
Class DirectReplacementStrategy

java.lang.Object
  extended by org.onebusaway.presentation.impl.text.DirectReplacementStrategy
All Implemented Interfaces:
TextModification

public class DirectReplacementStrategy
extends Object
implements TextModification


Constructor Summary
DirectReplacementStrategy()
           
 
Method Summary
 String modify(String input)
           
 void setReplacements(Map<String,String> replacements)
           
 void setReplacementsFromFile(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectReplacementStrategy

public DirectReplacementStrategy()
Method Detail

setReplacements

public void setReplacements(Map<String,String> replacements)

setReplacementsFromFile

public void setReplacementsFromFile(File file)
                             throws IOException
Throws:
IOException

modify

public String modify(String input)
Specified by:
modify in interface TextModification


Copyright © 2011 OneBusAway. All Rights Reserved.