Esempio n. 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);
 }
Esempio n. 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("/", ".")));
 }