1 21 22 package org.apache.derby.client.net; 23 24 27 public abstract class CcsidManager { 28 public byte space_; byte dot_; 31 byte[] numToCharRepresentation_; 34 35 byte[] numToSnaRequiredCrrtknChar_; 39 40 CcsidManager(byte space, 41 byte dot, 42 byte[] numToCharRepresentation, 43 byte[] numToSnaRequiredCrrtknChar) { 44 space_ = space; 45 dot_ = dot; 46 numToCharRepresentation_ = numToCharRepresentation; 47 numToSnaRequiredCrrtknChar_ = numToSnaRequiredCrrtknChar; 48 } 49 50 51 public abstract byte[] convertFromUCS2(String sourceString, org.apache.derby.client.am.Agent agent) throws org.apache.derby.client.am.SqlException; 56 57 58 public abstract int convertFromUCS2(String sourceString, 66 byte[] buffer, 67 int offset, 68 org.apache.derby.client.am.Agent agent) throws org.apache.derby.client.am.SqlException; 69 70 abstract String convertToUCS2(byte[] sourceBytes); 75 76 77 abstract String convertToUCS2(byte[] sourceBytes, int offset, int numToConvert); 84 85 86 abstract char convertToUCS2Char(byte sourceByte); 91 92 } 93 94 | Popular Tags |