![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
IO
文章平均质量分 81
weixin_41062965
这个作者很懒,什么都没留下…
展开
-
网络编程笔记
端口 端口表示计算机上的一个程序的进程 不同的进程有不同的端口号,用来区分软件! 被规定0~65535 TCP,UDP:65535*2 tcp80和udp80不冲突 端口分类 公有端口 0~1023 HTTP:80 HTTPS:443 FTP:21 Telnet:23 程序注册端口:1024~49151,分配用户或者程序 Tomc...原创 2022-04-09 21:31:08 · 445 阅读 · 0 评论 -
各种流
各种流 缓冲流 字节缓冲流 字节输出缓冲流 构造方法 public BufferedInputStream(InputStream in):创建一个新的缓冲输入流 public BufferedOutputStream(OutputStream out):创建一个新的缓冲输出流 FileOutputStream fos = new FileOutputStream("C:\\temp\\m.txt"); BufferedOutputStream bos = n原创 2021-03-17 05:29:45 · 197 阅读 · 0 评论 -
IO流
IO流 字节流使用 FileOutputStream相关方法 构造方法: new FileOutputStream(String name) new FileOutputStream(File file) new FileOutputStream(String name,boolean append) new FileOutputStream(File file, boolean append) 实例方法 一次写一个字节 public void write(int b) 一次写多个字节 publ原创 2021-03-17 05:11:33 · 64 阅读 · 0 评论 -
File类
IO流 常见面试题 https://blog.csdn.net/chengyuqiang/article/details/79183748 File类 File类代表一个特定的文件或者目录(文件夹),并提供了若干方法对该文件或目录进行操作 File类构造方法 共有4个,常用的有以下3个 1、File(String pathname):通过路径名创建一个新 File 实例。 2、File(File parent, String child):根据父目录路径File实例和子目录或文件路径创建一个新 File 实原创 2021-03-16 23:40:48 · 323 阅读 · 0 评论