tar « Zip « Java I/O Q&A





1. How do I extract a tar file in Java?    stackoverflow.com

How do I extract a tar (or tar.gz, or tar.bz2) file in Java?

2. caching a tar inside jvm for faster file I/O?    stackoverflow.com

I'm working on a java web application that uses thousands of small files to build artifacts in response to requests. I think our system could see performance improvements if we could ...

3. Mounting and untar'ing a file in Java    stackoverflow.com

I'm currently working on a web application that involves mounting a drive and extracting a tar.gz file, all in Java. Since the application runs in a linux environment, I figured I'd ...

4. How to extract a single file from a remote archive file?    stackoverflow.com

Given

  1. URL of an archive (e.g. a zip file)
  2. Full name (including path) of a file inside that archive
I'm looking for a way (preferably in Java) to create a local copy of that ...

5. How to list the contents of a compressed tar file in Java    stackoverflow.com

How do I list the contents of a compressed tar file in Java without extracting the files. I have looked at apache ant api, and I can see how to extract files, ...

7. Is there any way to create tar file without using third party libraries?    stackoverflow.com

Can we create tar file without using third party libraries? Thanks in advance. Regards, Sreenath Reddy

8. Java Compress Large File    stackoverflow.com

I'm working on an app that works with some very large files each are around 180mb and there are 3 of them. I would like to add an option to my ...

9. Zip files with Java: Is there a limit?    stackoverflow.com

I'm creating a backup routine for my application with Java. However, when the zip file is over 4GB, or has more than 65,000 files (approximately), the zip file is corrupted. I'm also testing ...





10. Encoding problem when compressing files with Apache Commons Compression on Linux    stackoverflow.com

I am compressing files using the Apache Commons API Compression. Windows 7 works fine, but in Linux (ubuntu 10.10 - UTF8), characters in file names and folder names, such as "ยบ", ...

11. Make tar file by Java    stackoverflow.com

I want to use Java to compress a folder to a tar file (in programmatic way). I think there must be an open source or library to do it. However, I ...

12. How to get the name of a TAR in a GZIP as well as the number of TARs    stackoverflow.com

I was wondering if there is any Java API to get the name of the TAR file in a GZIP file as well as the number of TAR files in it. ...

13. How to tar and untar insing Java program    coderanch.com

Hi, I have a requirment, I want to write a java class which can do the tar and untar operation on a single file or on a folder (many files). Can anyone through some light on this. if some sample code is there please send it to me. Thanks in advance Regards Ravi Prasad ------------------------------

14. How to extract a tar file using java    coderanch.com

15. How to create a Tar file in Java    coderanch.com





18. How to create tar using Java in windows os    coderanch.com

HI all, I have to take some backup of some files from my application using java program. The final output should be in .tar format because this backed up data will be used in the application running in linux box and the linux box due to limited space does not have any other utilities like GZIP or unzip. Only the tar ...

19. extracting .tar files    forums.oracle.com

System.out.println(e.getMessage()); } } private static void untar(String tarFileName, File dest) throws IOException { //assuming the file you pass in is not a dir dest.mkdir(); //create tar input stream from a .tar.gz file TarInputStream tin = new TarInputStream( new GZIPInputStream ( new FileInputStream(new File(tarFileName)))); //get the first entry in the archive TarEntry tarEntry = tin.getNextEntry(); while (tarEntry != null){//create a file with ...

20. Best practice: tar file handling through java on Linux    forums.oracle.com

What would be the better way to handle large size tar files (size may be more 1 GB) on Linux using Java? One way would be by using linux "tar" command through Runtime.exec, another option is through Java zip classes? Btw, functionality I am doing is extract the large tar file, remove some files and tar it back to make a ...

21. Creating tar file in Java    forums.oracle.com

Hi, What I am trying to do is to create a tar files from the specified directories in my Java application. I know I can call a shell script from the Java program using Runtime.exec but is there any Java API or source code samples for create a tar file. Regards, Satish

22. Extract files from *.tar.zg    forums.oracle.com

23. Extract files from *.tar.zg    forums.oracle.com

24. how to tar a folder into a tar file    forums.oracle.com

I have a folder on my local system which I want my Java code to tar. But I want to also add a file filter so that only one particular subfolder gets added into that tar. How do I do that. How do I create an OutputStream to tar. e.g Say I have the architecture like C:/MainFolder |-subfolder1 |-subfolder2 |-subfolder3 I ...

25. Extracting tar.z file using java    forums.oracle.com

.Z however (upper case) stands usually for compressed files. compress is a classical Unix utility. COMPRESS(P) COMPRESS(P) NAME compress - compress data SYNOPSIS compress [-fv][-b bits][file ...] compress [-cfv][-b bits][file] DESCRIPTION The compress utility shall attempt to reduce the size of the named files by using adaptive Lempel-Ziv coding algorithm. Note: Lempel-Ziv is US Patent 4464650, issued to William Eastman, Abraham ...

26. unzipping tar files    forums.oracle.com