public interface Encoding
Encoding implementations need to be thread-safe.
| Modifier and Type | Method and Description | 
|---|---|
| java.io.Reader | createReader(java.io.InputStream inputStream)Creates a reader wrapping an input stream. | 
| java.io.Writer | createWriter(java.io.OutputStream outputStream)Creates a writer wrapping an input stream. | 
| java.lang.String | decodeFromCharset(byte[] in)Decodes the supplied byte array to a String. | 
| java.lang.String | decodeFromCharset(byte[] in,
                 int offset,
                 int length)Decodes a part of the supplied byte array to a String. | 
| byte[] | encodeToCharset(java.lang.String in)Encodes the supplied String to bytes in this encoding. | 
| java.lang.String | getCharsetName() | 
byte[] encodeToCharset(java.lang.String in)
in - String to encodejava.lang.String decodeFromCharset(byte[] in)
in - byte array to decodejava.lang.String decodeFromCharset(byte[] in,
                                 int offset,
                                 int length)
in - byte array to decodeoffset - Offset into the byte arraylength - Length in bytes to decodejava.lang.String getCharsetName()
java.io.Reader createReader(java.io.InputStream inputStream)
inputStream - Input streamjava.io.Writer createWriter(java.io.OutputStream outputStream)
outputStream - Input streamCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.