/**
* Load a file path
* @throws Exception
*/
public boolean connect () throws Exception{
AsciiFileDataSourceVO vo = (AsciiFileDataSourceVO) this.getVo();
this.file = new File( vo.getFilePath() );
if ( !file.exists() ) {
raiseEvent(DATA_SOURCE_EXCEPTION_EVENT, System.currentTimeMillis(), true, new TranslatableMessage("file.event.fileNotFound",vo.getFilePath()));
return false;
}else if ( !file.canRead() ){
raiseEvent(DATA_SOURCE_EXCEPTION_EVENT, System.currentTimeMillis(), true, new TranslatableMessage("file.event.readFailed",vo.getFilePath()));
return false;
}else{
this.fobs = new FileAlterationObserver(this.file);
this.fobs.initialize();
this.fobs.addListener(this);