• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
博雅居
要想跟上时代,就得不断学习!
博客园    首页    新随笔    联系   管理    订阅  订阅
2016年5月12日
关于getClass().getClassLoader()
摘要: InputStream is = getClass().getClassLoader().getResourceAsStream("helloworld.properties");中getClass()和getClassLoader()都是什么意思呀.getClass():取得当前对象所属的Clas 阅读全文
posted @ 2016-05-12 17:19 博雅居 阅读(267) 评论(0) 推荐(0)
After reading a picture than out a picture
摘要: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //设置响应文本类型 response.setContentTy 阅读全文
posted @ 2016-05-12 16:57 博雅居 阅读(231) 评论(0) 推荐(0)
关于InputStream类的available()方法
摘要: 要一次读取多个字节时,经常用到InputStream.available()方法,这个方法可以在读写操作前先得知数据流里有多少个字节可以读取。需要注意的是,如果这个方法用在从本地文件读取数据时,一般不会遇到问题,但如果是用于网络操作,就经常会遇到一些麻烦。比如,Socket通讯时,对方明明发来了10 阅读全文
posted @ 2016-05-12 16:17 博雅居 阅读(61777) 评论(4) 推荐(5)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3