您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

如何使用Java创建PrintStream对象?

2025/8/20 7:37:25发布25次查看
1、将输出流out作为printstream的输出流,不会自动flush,采用默认字符集。
printstream out = new printstream(outputstream out);
2、创建file对应的fileoutputstream,然后将fileoutputstream作为printstream的输出流。
printstream out = new printstream(file file);
创建filename对应的fileoutputstream,然后将fileoutputstream作为printstream的输出流。
printstream out = new printstream(string filename, string charsetname);
以上就是如何使用java创建printstream对象?的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product