de.smartics.maven.exceptions.util
Class TextCoder

Package class diagram package TextCoder
java.lang.Object
  extended by de.smartics.maven.exceptions.util.TextCoder

public final class TextCoder
     
     
extends Object

Helper to encode and decode texts according to the encodings requested by the project configuration.


Constructor Summary
TextCoder(de.smartics.exceptions.report.data.ProjectConfiguration<?> config)
          Default constructor.
 
Method Summary
 String run(String text)
          Decodes and encodes the given text with the encodings provided by the configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextCoder

public TextCoder(de.smartics.exceptions.report.data.ProjectConfiguration<?> config)
Default constructor.

Parameters:
config - the configuration to use.
Method Detail

run

public String run(String text)
           throws IllegalArgumentException
Decodes and encodes the given text with the encodings provided by the configuration.

Parameters:
text - the text to deal with.
Returns:
the de- and encoded text.
Throws:
IllegalArgumentException - if any encoding is not supported on the platform.


Copyright © 2007-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.