| java.lang.Object com.teamkonzept.lib.TKConverter
All known Subclasses: com.teamkonzept.lib.TKXmlConverter, com.teamkonzept.lib.TKIso88591Converter, com.teamkonzept.lib.TKJavaScriptConverter, com.teamkonzept.lib.TKUrlConverter, com.teamkonzept.lib.TKStringConverter, com.teamkonzept.lib.TKAnsiConverter, com.teamkonzept.webman.attr.TKWMXmlMConverter, com.teamkonzept.lib.TKLaTeXConverter, com.teamkonzept.lib.TKHtmlConverter, com.teamkonzept.lib.TKUppercaseConverter,
TKConverter | abstract public class TKConverter (Code) | | Basisklasse fuer Konvertierungsklassen zum Umwandeln von
Javas Unicode in andere Kodierungen oder zurueck
author: $Author: alex $ version: $Revision: 1.11 $ |
Method Summary | |
public static void | addConverter(String id, String converterClass) | public static void | addConverter(String[] ids, String converterClass) | abstract public int | bytesToChars(byte src, char dst, int srcBegin, int length, int dstBegin) Converts a string in this CharacterSet to a Java char string. | public String | bytesToString(byte[] code) Converts a string from this CharacterSet to a Java string. | abstract public int | charsToBytes(char src, byte dst, int srcBegin, int length, int dstBegin) Converts a Java char string to this CharacterSet. | public static Enumeration | converterIds() | public byte[] | doYourself(String src) | public boolean | equals(Object converter) Returns the boolean result whether this character set is equivalent to another CharacterSet. | public static TKConverter | getConverter(String id) | abstract public int | getMaxBytesPerChar() Returns the maximum number of bytes a character takes in this CharacterSet. | abstract public String | getName() Returns the Internet Assigned Numbers Authority (IANA) name of this CharacterSet. | public int | hashCode() | final public static void | initialize() | public int | minByteSize(byte code, TKConverter srcConverter) Determines the minimum number of bytes needed to store a string in this CharacterSet. | public int | minByteSize(byte bytes, int begin, int length, TKConverter srcConverter) Determines the minimum number of bytes needed to store a string in this CharacterSet. | public int | minByteSize(char src) Determines the minimum number of bytes needed to store an Java char string in this CharacterSet. | public int | minByteSize(char chars, int begin, int length) Determines the minimum number of bytes needed to store an Java char string in this CharacterSet. | public int | minByteSize(int charCount) Determines the minimum number of bytes needed to store a Java char string in this CharacterSet. | public int | minByteSize(int length, TKConverter srcConverter) Determines the minimum number of bytes needed to store a string in this CharacterSet. | public int | minCharSize(byte[] code) Determines the minimum number of chars needed to store a string in this CharacterSet in a Java string. | public int | minCharSize(byte[] code, int begin, int length) Determines the minimum number of chars needed to store a string in this CharacterSet in a Java string. | abstract public int | minCharSize(int length) Determines the minimum number of chars needed to store a string in this CharacterSet in a Java string. | public byte[] | stringToBytes(String src) Converts a Java string to this CharacterSet. |
initialized | protected static boolean initialized(Code) | | |
bytesToChars | abstract public int bytesToChars(byte src, char dst, int srcBegin, int length, int dstBegin)(Code) | | Converts a string in this CharacterSet to a Java char string.
|
bytesToString | public String bytesToString(byte[] code)(Code) | | Converts a string from this CharacterSet to a Java string.
|
charsToBytes | abstract public int charsToBytes(char src, byte dst, int srcBegin, int length, int dstBegin)(Code) | | Converts a Java char string to this CharacterSet.
|
doYourself | public byte[] doYourself(String src)(Code) | | ask wether the converter want's to do the job itself
|
equals | public boolean equals(Object converter)(Code) | | Returns the boolean result whether this character set is equivalent to another CharacterSet.
|
getMaxBytesPerChar | abstract public int getMaxBytesPerChar()(Code) | | Returns the maximum number of bytes a character takes in this CharacterSet.
|
getName | abstract public String getName()(Code) | | Returns the Internet Assigned Numbers Authority (IANA) name of this CharacterSet.
|
hashCode | public int hashCode()(Code) | | |
initialize | final public static void initialize()(Code) | | |
minByteSize | public int minByteSize(byte code, TKConverter srcConverter)(Code) | | Determines the minimum number of bytes needed to store a string in this CharacterSet.
|
minByteSize | public int minByteSize(byte bytes, int begin, int length, TKConverter srcConverter)(Code) | | Determines the minimum number of bytes needed to store a string in this CharacterSet.
|
minByteSize | public int minByteSize(char src)(Code) | | Determines the minimum number of bytes needed to store an Java char string in this CharacterSet.
|
minByteSize | public int minByteSize(char chars, int begin, int length)(Code) | | Determines the minimum number of bytes needed to store an Java char string in this CharacterSet.
|
minByteSize | public int minByteSize(int charCount)(Code) | | Determines the minimum number of bytes needed to store a Java char string in this CharacterSet.
|
minByteSize | public int minByteSize(int length, TKConverter srcConverter)(Code) | | Determines the minimum number of bytes needed to store a string in this CharacterSet.
|
minCharSize | public int minCharSize(byte[] code)(Code) | | Determines the minimum number of chars needed to store a string in this CharacterSet in a Java string.
|
minCharSize | public int minCharSize(byte[] code, int begin, int length)(Code) | | Determines the minimum number of chars needed to store a string in this CharacterSet in a Java string.
|
minCharSize | abstract public int minCharSize(int length)(Code) | | Determines the minimum number of chars needed to store a string in this CharacterSet in a Java string.
|
stringToBytes | public byte[] stringToBytes(String src)(Code) | | Converts a Java string to this CharacterSet.
|
|
|