OutputStreamWriter boutw = new OutputStreamWriter(bout);
try { OutputStreamWriter boutw = new OutputStreamWriter(bout, javaEncoding);
    public void setCharacterStream(Reader in, int length) throws SQLException {                if (in == READER_NULL_VALUE) {            setNull();            return;        }                if (!c.getAutoCommit()) {            copyCharacterStream(in, length);        } else {            char[] buff = new char[BUFF_SIZE];            ByteArrayOutputStream bout = new ByteArrayOutputStream(length);            OutputStreamWriter boutw = new OutputStreamWriter(bout);            int chunk;            try {                while (length >0) {                    chunk =in.read(buff, 0, ((length<BUFF_SIZE) ? length:BUFF_SIZE));                    boutw.write(buff, 0, chunk);                    length -= chunk;                }                boutw.close();                bout.close();            }            catch (IOException ioe) {                throw new FBSQLException(ioe);            }                        this.data = bout.toByteArray();            this.length = ((byte[])this.data).length;            isCachedData = true;        }    }