Package org.tn5250j.tools.encoder
Class EncodeComponent.Encoding
- java.lang.Object
-
- org.tn5250j.tools.encoder.EncodeComponent.Encoding
-
- Enclosing class:
- EncodeComponent
public static class EncodeComponent.Encoding extends java.lang.ObjectClass used to enumerate valid encodings
-
-
Constructor Summary
Constructors Constructor Description Encoding(java.lang.String short_name, java.lang.String long_name, java.lang.String encoder_class, java.lang.String failure_message)Constructs and new image encoder.
-
Method Summary
Modifier and Type Method Description EncodergetEncoder()Return an encoder for this encoding type.java.lang.StringgetFailureMessage()Message to return about possible reasons for encoder load failure (i.e. getEncoder() returns null)java.lang.StringgetLongName()Return the long name of the supported encoding typejava.lang.StringgetShortName()Return the short brief name of the supported encoding typejava.lang.StringtoString()Returns a string representation bassed on the long and short name of the Encoder.
-
-
-
Constructor Detail
-
Encoding
public Encoding(java.lang.String short_name, java.lang.String long_name, java.lang.String encoder_class, java.lang.String failure_message)Constructs and new image encoder.- Parameters:
short_name- namelong_name- nameencoder_class- classnamefailure_message- message
-
-
Method Detail
-
getShortName
public java.lang.String getShortName()
Return the short brief name of the supported encoding type- Returns:
- string
-
getLongName
public java.lang.String getLongName()
Return the long name of the supported encoding type- Returns:
- string
-
toString
public java.lang.String toString()
Returns a string representation bassed on the long and short name of the Encoder.- Overrides:
toStringin classjava.lang.Object- Returns:
- string
-
getFailureMessage
public java.lang.String getFailureMessage()
Message to return about possible reasons for encoder load failure (i.e. getEncoder() returns null)- Returns:
- string
-
getEncoder
public Encoder getEncoder()
Return an encoder for this encoding type.- Returns:
- returns null if it cannot locate or load the encoder
-
-