KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > web > oracle > TKConverterGateway


1 /*
2  * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/web/oracle/Attic/TKConverterGateway.java,v 1.6 2000/05/29 15:24:55 alex Exp $
3  *
4  */

5 package com.teamkonzept.web.oracle;
6
7 import oracle.owas.nls.*;
8
9 import com.teamkonzept.lib.*;
10
11 public class TKConverterGateway extends CharacterSet {
12     TKConverter converter;
13     
14     TKConverterGateway( TKConverter converter )
15     {
16         this.converter = converter;
17     }
18     
19     public int bytesToChars(
20         byte src[],
21         char dst[],
22         int srcBegin,
23         int length,
24         int dstBegin
25     )
26     {
27         return converter.bytesToChars( src, dst, srcBegin, length, dstBegin );
28     }
29     
30     public String JavaDoc bytesToString( byte[] code )
31     {
32         return converter.bytesToString( code );
33     }
34     public int charsToBytes(
35         char src[],
36         byte dst[],
37         int srcBegin,
38         int length,
39         int dstBegin
40     )
41     {
42         return converter.charsToBytes( src, dst, srcBegin, length, dstBegin );
43     }
44     
45     public int getMaxBytesPerChar()
46     {
47         return converter.getMaxBytesPerChar();
48     }
49         
50     public String JavaDoc getName()
51     {
52         return converter.getName();
53     }
54     
55     public int minByteSize( char src[] )
56     {
57         return converter.minByteSize( src );
58     }
59     
60     public int minByteSize(
61         char chars[],
62         int begin,
63         int length
64     )
65     {
66         return converter.minByteSize( chars, begin, length );
67     }
68     
69     public int minByteSize( int charCount )
70     {
71         return converter.minByteSize( charCount );
72     }
73     
74     public int minCharSize( byte[] code )
75     {
76         return converter.minCharSize( code );
77     }
78     
79     public int minCharSize( byte[] code, int begin, int length )
80     {
81         return converter.minCharSize( code, begin, length );
82     }
83     
84     public int minCharSize( int length )
85     {
86         return converter.minCharSize( length );
87     }
88     
89     public byte[] stringToBytes( String JavaDoc src )
90     {
91         return converter.stringToBytes( src );
92     }
93     //{{DECLARE_CONTROLS
94
//}}
95
}
96
97
98
Popular Tags