Package com.itextpdf.io.font
Class PdfEncodings.SymbolTTConversion
- java.lang.Object
-
- com.itextpdf.io.font.PdfEncodings.SymbolTTConversion
-
- All Implemented Interfaces:
IExtraEncoding
- Enclosing class:
- PdfEncodings
private static class PdfEncodings.SymbolTTConversion extends java.lang.Object implements IExtraEncoding
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSymbolTTConversion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringbyteToChar(byte[] b, java.lang.String encoding)Converts a byte array to an Unicode string according to some encoding.byte[]charToByte(char char1, java.lang.String encoding)Converts an Unicode char to a byte array according to some encoding.byte[]charToByte(java.lang.String text, java.lang.String encoding)Converts an Unicode string to a byte array according to some encoding.
-
-
-
Method Detail
-
charToByte
public byte[] charToByte(char char1, java.lang.String encoding)Description copied from interface:IExtraEncodingConverts an Unicode char to a byte array according to some encoding.- Specified by:
charToBytein interfaceIExtraEncoding- Parameters:
char1- the Unicode charencoding- the requested encoding. It's mainly of use if the same class supports more than one encoding.- Returns:
- the conversion or
nullif no conversion is supported
-
charToByte
public byte[] charToByte(java.lang.String text, java.lang.String encoding)Description copied from interface:IExtraEncodingConverts an Unicode string to a byte array according to some encoding.- Specified by:
charToBytein interfaceIExtraEncoding- Parameters:
text- the Unicode stringencoding- the requested encoding. It's mainly of use if the same class supports more than one encoding.- Returns:
- the conversion or
nullif no conversion is supported
-
byteToChar
public java.lang.String byteToChar(byte[] b, java.lang.String encoding)Description copied from interface:IExtraEncodingConverts a byte array to an Unicode string according to some encoding.- Specified by:
byteToCharin interfaceIExtraEncoding- Parameters:
b- the input byte arrayencoding- the requested encoding. It's mainly of use if the same class supports more than one encoding.- Returns:
- the conversion or
nullif no conversion is supported
-
-