code: public int peek() throws IOException{
          peekindex = 0;
          int v = peek(peekindex ++);
          if(v == -1){
              end = true;
          }
          return v;
      }
docs: 访问头部字节, 不删除
  @return 头部字节
  @throws IOException