I don't think I understand what void write(byte[] buff,int form, int count) is doing.