g6950,头发种植找微信moka818,安雅三级
import java.io.bufferedoutputstream;
import java.io.bytearrayinputstream;
import java.io.ioexception;
import java.io.inputstream;
import java.io.outputstream;
import java.io.reader;
import java.sql.clob;
import java.sql.connection;
import java.sql.resultset;
import java.sql.sqlexception;
/**
* 将输入流写入到输出流当中
* @param is 输入流
* @param os 输出流
* @throws ioexception
*/
public static void copystream( inputstream is, outputstream os )
throws ioexception
{
byte[] data = new byte[4096];
int readed = is.read(data);
while (readed != -1)
{
os.write(data,0,readed);
readed = is.read(data);
}
}
/**
* 通过clob对象返回字符串
* @param c
* @return
*/
public static string getclobstring(clob c) {
try {
reader reader=c.getcharacterstream();
if (reader == null) {
return null;
}
stringbuffer sb = new stringbuffer();
char[] charbuf = new char[4096];
for (int i = reader.read(charbuf); i > 0; i = reader.read(charbuf)) {
sb.append(charbuf, 0, i);
}
return sb.tostring();
} catch (exception e) {
return "";
}
}
}
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Oracle字符串函数length、upper、lower、initcap、 concat、instr、replace
网友评论