int s = 0;  try { while (s < siz) { int w = pg_input.read(b, off+s, siz - s); if (w < 0) throw new PSQLException("postgresql.stream.eof"); s += w; } } catch (IOException e) { throw new PSQLException("postgresql.stream.ioerror",e); }
byte[] answer = new byte[siz]; Receive(answer,0,siz); return answer;
  public void Receive(byte[] b,int off,int siz) throws SQLException  {    int s = 0;        try       {	while (s < siz)	  {	    int w = pg_input.read(b, off+s, siz - s);	    if (w < 0)	      throw new PSQLException("postgresql.stream.eof");	    s += w;	  }      } catch (IOException e) {	  throw new PSQLException("postgresql.stream.ioerror",e);      }  }