uk.me.parabola.imgfmt.app.labelenc
Class AnyCharsetEncoder

java.lang.Object
  extended by uk.me.parabola.imgfmt.app.labelenc.BaseEncoder
      extended by uk.me.parabola.imgfmt.app.labelenc.AnyCharsetEncoder
All Implemented Interfaces:
CharacterEncoder

public class AnyCharsetEncoder
extends BaseEncoder
implements CharacterEncoder

Convert text to a specified charset. This is used when you give a charset name on the command line to convert to.

Author:
Steve Ratcliffe

Field Summary
 
Fields inherited from class uk.me.parabola.imgfmt.app.labelenc.BaseEncoder
NO_TEXT
 
Constructor Summary
AnyCharsetEncoder(java.lang.String cs)
           
 
Method Summary
 EncodedText encodeText(java.lang.String text)
           
 
Methods inherited from class uk.me.parabola.imgfmt.app.labelenc.BaseEncoder
isCharsetSupported, isUpperCase, prepareForCharacterSet, setUpperCase, simpleEncode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnyCharsetEncoder

public AnyCharsetEncoder(java.lang.String cs)
Method Detail

encodeText

public EncodedText encodeText(java.lang.String text)
Specified by:
encodeText in interface CharacterEncoder