return Long.toString(file.length());
{ if (file.isDirectory()) { return Integer.toString(getContentLength()); } return Long.toString(file.length()); }
  public String getHeaderField(String field)  {    try      {	if (!connected)	  connect();	if (field.equals("content-type"))          return guessContentTypeFromName(file.getName());	else if (field.equals("content-length"))          return Long.toString(file.length());	else if (field.equals("last-modified"))	  {	    synchronized (dateFormat)	      {        	return dateFormat.format(new Date(file.lastModified()));	      }	  }      }    catch (IOException e)      {        // Fall through.      }    return null;  }