Package br.com.jteam.jfcm.model.validator.impl

Examples of br.com.jteam.jfcm.model.validator.impl.ShowFileExtensionValidator.validate()


      if (!FileTypeUtil.isFilePresentOnDisk(path)) {
        throw new ShowFileContentServiceException(
            "File doesn't exist anymore on disc");
      }
      FileExtensionValidator fileExtensionValidator = new ShowFileExtensionValidator();
      fileExtensionValidator.validate(name);
      FileType fileType = FileType.getFileTypeByFileName(name);
      br.com.jteam.jfcm.model.File fileToBeViewed = FileFactory.getInstance(
          fileType).createFile(name, path);
      return fileToBeViewed;
    } catch (IncorrectFileExtensionException ex) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.