Package org.apache.tajo.pullserver

Examples of org.apache.tajo.pullserver.FileAccessForbiddenException


      File file = chunk.getFile();
      if (file.isHidden() || !file.exists()) {
        throw new FileNotFoundException("No such file: " + file.getAbsolutePath());
      }
      if (!file.isFile()) {
        throw new FileAccessForbiddenException(file.getAbsolutePath() + " is not file");
      }

      return new FileChunk[] {chunk};
    }
  }
View Full Code Here


    File file = new File(baseDir, path);
    if (file.isHidden() || !file.exists()) {
      throw new FileNotFoundException("No such file: " + baseDir + "/" + path);
    }
    if (!file.isFile()) {
      throw new FileAccessForbiddenException("No such file: "
          + baseDir + "/" + path);
    }
   
    return new FileChunk[] {new FileChunk(file, 0, file.length())};
  }
View Full Code Here

TOP

Related Classes of org.apache.tajo.pullserver.FileAccessForbiddenException

Copyright © 2018 www.massapicom. 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.