com.ice.tar
Class FastTarStream

java.lang.Object
  |
  +--com.ice.tar.FastTarStream

public class FastTarStream
extends Object

Special class designed to parse a Tar archive VERY FAST. This class is not a general Tar archive solution because it does not accomodate TarBuffer, or blocking. It does not allow you to read the entries either. This would not be difficult to add in a subclass. The real purpose of this class is that there are folks out there who wish to parse an ENORMOUS tar archive, and maybe only want to know the filenames, or they wish to locate the offset of a particular entry so that can process that entry with special code.

Author:
Timothy Gerard Endres,

Constructor Summary
FastTarStream(InputStream in)
           
FastTarStream(InputStream in, int recordSize)
           
 
Method Summary
 TarEntry getNextEntry()
           
static void main(String[] args)
           
 void setDebug(boolean debug)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastTarStream

public FastTarStream(InputStream in)

FastTarStream

public FastTarStream(InputStream in,
                     int recordSize)
Method Detail

setDebug

public void setDebug(boolean debug)

getNextEntry

public TarEntry getNextEntry()
                      throws IOException

main

public static void main(String[] args)


This software has been placed into the public domain.