Tabnine Logo
TarUtil
Code IndexAdd Tabnine to your IDE (free)

How to use
TarUtil
in
org.jboss.windup.util

Best Java code snippets using org.jboss.windup.util.TarUtil (Showing top 5 results out of 315)

origin: windup/windup

public static void tarDirectory(Path outputFile, Path inputDirectory) throws IOException
{
  tarDirectory(outputFile, inputDirectory, Collections.emptyList());
}
origin: org.jboss.windup.utils/windup-utils

public static void untar(Path outputDirectory, Path inputTarFile) throws IOException
{
  try (FileInputStream fileInputStream = new FileInputStream(inputTarFile.toFile()))
  {
    untar(outputDirectory, fileInputStream);
  }
}
origin: windup/windup

public static void untar(Path outputDirectory, Path inputTarFile) throws IOException
{
  try (FileInputStream fileInputStream = new FileInputStream(inputTarFile.toFile()))
  {
    untar(outputDirectory, fileInputStream);
  }
}
origin: org.jboss.windup.web.addons/windup-web-messaging-executor-impl

  Path createResultArchive(Long projectID, WindupExecution execution, Path outputDirectory)
  {
    try
    {
      Files.createDirectories(outputDirectory);
      Path tempFile = outputDirectory.resolve("report_files.tar");
      TarUtil.tarDirectory(tempFile, Paths.get(execution.getOutputPath()));
      return tempFile;
    }
    catch (IOException e)
    {
      throw new RuntimeException("Failed to create result archive due to: " + e.getMessage(), e);
    }
  }
}
origin: org.jboss.windup.web.addons/windup-web-messaging-executor-impl

private WindupExecution deserializeStatusUpdateFromStream(StreamMessage streamMessage, WindupExecution lastStatusFromDB)
{
  // this is a results message with final result contents, untar the results
  try
  {
    Path outputPath = Paths.get(lastStatusFromDB.getOutputPath());
    Path tempFile = outputPath.resolve("report_files.tar");
    streamMessage.setObjectProperty(AMQConstants.AMQ_LARGE_MESSAGE_SAVESTREAM_PROPERTY, new FileOutputStream(tempFile.toFile()));
    TarUtil.untar(outputPath, tempFile);
  }
  catch (Exception e)
  {
    LOG.log(Level.SEVERE, "Error handling status result with contents due to: " + e.getMessage(), e);
  }
  return lastStatusFromDB;
}
org.jboss.windup.utilTarUtil

Most used methods

  • tarDirectory
  • untar

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JTextField (javax.swing)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now