01: /*
02: * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/web/oracle/Attic/TKConverterGateway.java,v 1.6 2000/05/29 15:24:55 alex Exp $
03: *
04: */
05: package com.teamkonzept.web.oracle;
06:
07: import oracle.owas.nls.*;
08:
09: import com.teamkonzept.lib.*;
10:
11: public class TKConverterGateway extends CharacterSet {
12: TKConverter converter;
13:
14: TKConverterGateway(TKConverter converter) {
15: this .converter = converter;
16: }
17:
18: public int bytesToChars(byte src[], char dst[], int srcBegin,
19: int length, int dstBegin) {
20: return converter.bytesToChars(src, dst, srcBegin, length,
21: dstBegin);
22: }
23:
24: public String bytesToString(byte[] code) {
25: return converter.bytesToString(code);
26: }
27:
28: public int charsToBytes(char src[], byte dst[], int srcBegin,
29: int length, int dstBegin) {
30: return converter.charsToBytes(src, dst, srcBegin, length,
31: dstBegin);
32: }
33:
34: public int getMaxBytesPerChar() {
35: return converter.getMaxBytesPerChar();
36: }
37:
38: public String getName() {
39: return converter.getName();
40: }
41:
42: public int minByteSize(char src[]) {
43: return converter.minByteSize(src);
44: }
45:
46: public int minByteSize(char chars[], int begin, int length) {
47: return converter.minByteSize(chars, begin, length);
48: }
49:
50: public int minByteSize(int charCount) {
51: return converter.minByteSize(charCount);
52: }
53:
54: public int minCharSize(byte[] code) {
55: return converter.minCharSize(code);
56: }
57:
58: public int minCharSize(byte[] code, int begin, int length) {
59: return converter.minCharSize(code, begin, length);
60: }
61:
62: public int minCharSize(int length) {
63: return converter.minCharSize(length);
64: }
65:
66: public byte[] stringToBytes(String src) {
67: return converter.stringToBytes(src);
68: }
69: //{{DECLARE_CONTROLS
70: //}}
71: }
|