20230621 java.io.Reader

介绍

  • java.io.Reader
  • public abstract class Reader implements Readable, Closeable

API

  • read

    • abstract int read(char[] cbuf, int off, int len) throws IOException;
      • 唯一的抽象方法
    • int read() throws IOException
    • int read(char[] cbuf) throws IOException
    • int read(CharBuffer target) throws IOException
      • 实现 Readable.read
  • skip

  • ready

    • 是否已准备好被读入
    • 如果保证下一个 read() 不会阻塞输入,则为 true,否则为 false。请注意,返回 false 并不能保证下一次读取会阻塞。
  • markSupported

  • mark

  • reset

  • transferTo

  • nullReader

posted @   流星<。)#)))≦  阅读(4)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!
历史上的今天:
2017-08-29 SpringBoot(二) :web综合开发
点击右上角即可分享
微信分享提示