public void copyCharacterStream(Reader inputStream, int length) throws SQLException {
public void copyCharacterStream(Reader inputStream, int length, String encoding) throws SQLException {
    public void copyCharacterStream(Reader inputStream, int length) throws SQLException {        OutputStream os = setBinaryStream(0);        OutputStreamWriter osw = new OutputStreamWriter(os);        char[] buffer = new char[bufferlength];        int chunk;        try {            while (length >0) {                chunk =inputStream.read(buffer, 0, ((length<bufferlength) ? length:bufferlength));                if (chunk == -1)                    break;                osw.write(buffer, 0, chunk);                                length -= chunk;            }            os.close();        }        catch (IOException ioe) {            throw new FBSQLException(ioe);        }    }