![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java笔记
fxde
这个作者很懒,什么都没留下…
展开
-
java之反射获取构造方法与成员方法与成员变量
反射获取构造方法与成员方法 注意: 获取class对象的方法 通过class对象调用构造方法getConstrutor的方法,返回Constructor对象接收 通过Constructor对象,调用newInstance(+//参数)实例化,使用向下转型接收带参或无参构造 Constructor方法,getName,getConstructor,getDeclaredConstructor可返回私有公有构造方法对象 getConstructors返回公有构造方法对象数组 获取成员方法 通过class对象调用原创 2020-12-01 23:08:00 · 165 阅读 · 0 评论 -
java之使用字节流上传用户头像
1.对字节流、字符流区分,字节流处理音视频,文本;字符流只能处理文本 字节流顶层类InputStream/OutputStream 使用FileInputStream BufferInputStream,使用缓冲区读写时,需要传入FileInputStream对象 BufferInputStream bo = new BufferInputStream(new FileInputStream("file")); 字符流,Reader Writer Filereader BufferReader 常用原创 2020-11-30 23:49:51 · 178 阅读 · 0 评论