* @param fullPath The path of the file
* @return The properties of the file
* @throws IOException if any error occurs during reading of the file
*/
public static Hashtable getProperties( String fullPath ) throws IOException {
FileConnection con = open( fullPath );
if( con == null ) {
throw new IOException( fullPath + " does not exist." );
}
String name = con.getName();
String mimeType = MIMETypeAssociations.getMIMEType( name );
int size = (int) con.fileSize();
byte[] data = new byte[ size ];
DataInputStream dis = con.openDataInputStream();
dis.read( data, 0, size );
close( dis );
close( con );
String encoding = getEncoding( data );