title: How to Access files in a .tar file in Java
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/315618/how-do-i-extract-a-tar-file-in-java">How do I extract a tar file in Java?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm working on an application that needs to access files within a .tar. What is the easiest way to do this? I just started Java around a week ago with a C/C++ background so I'm not sure if I can implement complicated solutions.</p>
  
  <p>Also, can you treat .tgz files as zip entries?</p>
  
  <p>Thanks!</p>