private static int write(int fd,byte[] src,int pos,int len) throws IOException {
  int bytes=FileSystem.writeBytes(fd,src,pos,len);
  if (bytes < 0)   throw new IOException("Error code " + Integer.toString(bytes));
  return bytes;
}

private static int write ( int fd , byte [ ] src , int pos , int len ) throws IOException { int bytes = FileSystem . writeBytes ( fd , src , pos , len ) ; if ( bytes < 0 ) throw new IOException ( "Error code " + Integer . toString ( bytes ) ) ; return bytes ; }
use jikesrvm ' s internal read function - the fast way .
