예제 #1
0
 /**
  * Extract to file.
  *
  * @param relativePath the relative path
  * @param file the file
  * @return the file
  * @throws IOException Signals that an I/O exception has occurred.
  */
 public File extractToFile(String relativePath, File file) throws IOException {
   return DataUtils.inputStreamToFile(concreteBundle.getEntry(relativePath), file);
 }
예제 #2
0
 /**
  * Gets the temp entry.
  *
  * @param relativePath the relative path
  * @return the temp entry
  * @throws IOException Signals that an I/O exception has occurred.
  */
 public File getTempEntry(String relativePath) throws IOException {
   return DataUtils.inputStreamToFile(
       concreteBundle.getEntry(relativePath),
       Locations.getTempFile(relativePath.replaceAll("/", ".")));
 }