src/de/uka/ipd/idaho/goldenGateServer/imi/GoldenGateIMI.java
/**
	 * Schedule a document import from a file.
	 * @param mimeType the MIME type of the document
	 * @param file the file to import from
	 * @param id the identifier hashed from the file to import
	 * @param attributes additional document attributes
	 * @param deleteFile delete the cache file after import?
	 * @param owner the owner of the import
	 */
Schedule a document import from a file.
Schedule a document import from a file .
public void scheduleImport(String mimeType, File file, String id, boolean deleteFile, Attributed attributes, ImiDocumentImportOwner owner) {
		ImiDocumentImport idi = new ImiDocumentImport(id, mimeType, file, deleteFile, owner);
		if (owner != null) 
			this.registerImportOwner(owner);
		String fileName = file.getName();
		if (fileName.indexOf('.') == -1) {}
		else if (fileName.toLowerCase().endsWith(".html")) {}
		else if (fileName.toLowerCase().endsWith(".htm")) {}
		else if (fileName.toLowerCase().endsWith(".shtml")) {}
		else if (fileName.toLowerCase().endsWith(".shtm")) {}
		else if (fileName.toLowerCase().endsWith(".xhtml")) {}
		else if (fileName.toLowerCase().endsWith(".xhtm")) {}
		else if (fileName.toLowerCase().endsWith(".xml")) {}
		else idi.setAttribute(DOCUMENT_NAME_ATTRIBUTE, fileName);
		if (attributes != null)
			AttributeUtils.copyAttributes(attributes, idi);
		this.importHandler.enqueueDataAction(id, idi.getArguments());
	}
public void scheduleImport ( String mimeType , File file , String id , boolean deleteFile , Attributed attributes , ImiDocumentImportOwner owner ) { ImiDocumentImport idi = new ImiDocumentImport ( id , mimeType , file , deleteFile , owner ) ; if ( owner != null ) this . registerImportOwner ( owner ) ; String fileName = file . getName ( ) ; if ( fileName . indexOf ( '.' ) == - 1 ) { } else if ( fileName . toLowerCase ( ) . endsWith ( ".html" ) ) { } else if ( fileName . toLowerCase ( ) . endsWith ( ".htm" ) ) { } else if ( fileName . toLowerCase ( ) . endsWith ( ".shtml" ) ) { } else if ( fileName . toLowerCase ( ) . endsWith ( ".shtm" ) ) { } else if ( fileName . toLowerCase ( ) . endsWith ( ".xhtml" ) ) { } else if ( fileName . toLowerCase ( ) . endsWith ( ".xhtm" ) ) { } else if ( fileName . toLowerCase ( ) . endsWith ( ".xml" ) ) { } else idi . setAttribute ( DOCUMENT_NAME_ATTRIBUTE , fileName ) ; if ( attributes != null ) AttributeUtils . copyAttributes ( attributes , idi ) ; this . importHandler . enqueueDataAction ( id , idi . getArguments ( ) ) ; }
Schedule a document import from a file.
Schedule a document import from a file .
// for good measures ... might have been reloaded dynamically or something