Examples of extractFile()


Examples of com.badlogic.gdx.utils.SharedLibraryLoader.extractFile()

        File extractedFile = loader.extractFile("liblwjgl.jnilib", null);
        nativesDir = extractedFile.getParentFile();
        new FileHandle(extractedFile).copyTo(new FileHandle(new File(nativesDir, "liblwjgl.dylib")));
        if (!LwjglApplicationConfiguration.disableAudio) loader.extractFile("openal.dylib", nativesDir.getName());
      } else if (isLinux) {
        nativesDir = loader.extractFile(is64Bit ? "liblwjgl64.so" : "liblwjgl.so", null).getParentFile();
        if (!LwjglApplicationConfiguration.disableAudio)
          loader.extractFile(is64Bit ? "libopenal64.so" : "libopenal.so", nativesDir.getName());
      }
    } catch (Throwable ex) {
      throw new GdxRuntimeException("Unable to extract LWJGL natives.", ex);
View Full Code Here

Examples of com.badlogic.gdx.utils.SharedLibraryLoader.extractFile()

        new FileHandle(extractedFile).copyTo(new FileHandle(new File(nativesDir, "liblwjgl.dylib")));
        if (!LwjglApplicationConfiguration.disableAudio) loader.extractFile("openal.dylib", nativesDir.getName());
      } else if (isLinux) {
        nativesDir = loader.extractFile(is64Bit ? "liblwjgl64.so" : "liblwjgl.so", null).getParentFile();
        if (!LwjglApplicationConfiguration.disableAudio)
          loader.extractFile(is64Bit ? "libopenal64.so" : "libopenal.so", nativesDir.getName());
      }
    } catch (Throwable ex) {
      throw new GdxRuntimeException("Unable to extract LWJGL natives.", ex);
    }
    System.setProperty("org.lwjgl.librarypath", nativesDir.getAbsolutePath());
View Full Code Here

Examples of com.github.junrar.Archive.extractFile()

        if (fh.isDirectory()) {
      createDirectory(fh, destination);
        } else {
      File f = createFile(fh, destination);
      OutputStream stream = new FileOutputStream(f);
      arch.extractFile(fh, stream);
      stream.close();
        }
    } catch (IOException e) {
        logger.error("error extracting the file", e);
    } catch (RarException e) {
View Full Code Here

Examples of com.github.junrar.Archive.extractFile()

           
            ByteArrayOutputStream os = new ByteArrayOutputStream();
           
           
            try {
              arc.extractFile(fh, os);
            } catch (RarException e) {
              if(e.getType().equals(RarExceptionType.notImplementedYet)){
                logger.error("error extracting unsupported file: "+fh.getFileNameString(),e);
                unsupportedFiles.add(file.toString());
                return;
View Full Code Here

Examples of com.github.junrar.Archive.extractFile()

              break;
            }
          }
          if (header != null) {
            LOGGER.trace("Starting the extraction of " + header.getFileNameString());
            rarFile.extractFile(header, out);
          }
        } catch (RarException | IOException e) {
          LOGGER.debug("Unpack error, maybe it's normal, as backend can be terminated: " + e.getMessage());
        } finally {
          try {
View Full Code Here

Examples of com.github.junrar.Archive.extractFile()

              break;
            }
          }
          if (header != null) {
            logger.trace("Starting the extraction of " + header.getFileNameString());
            rarFile.extractFile(header, out);
          }
        } catch (Exception e) {
          logger.debug("Unpack error, maybe it's normal, as backend can be terminated: " + e.getMessage());
        } finally {
          try {
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.NotesEmbeddedObject.extractFile()

      // be sent.
      if ((0 != MimeType.length()) &&
          eo.getFileSize() <= ncs.getMaxFileSize()) {
        attachDoc.replaceItemValue(NCCONST.ITM_MIMETYPE, MimeType);
        String attachmentPath = getAttachmentFilePath(crawlDoc, attachNameHash);
        eo.extractFile(attachmentPath);
        attachDoc.replaceItemValue(NCCONST.ITM_CONTENTPATH, attachmentPath);
      } else {
        // Not a supported attachment so sending meta data only
        // with the filename as content
        attachDoc.replaceItemValue(NCCONST.ITM_CONTENT, AttachmentName);
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.