|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.zip.TarUtil
public class TarUtil
Contains utility functions for TAR archives. Most importantly functions for handling entries with too long file names to fit in the header section.
Field Summary | |
---|---|
private static byte |
LONG_LINK_FLAG
The TAR header flag that must be set for @LongLink entries. |
static String |
LONG_LINK_NAME
TAR has a limit of 100 characters in file names. |
static int |
MAX_NAME_LENGTH
Maximum file name length. |
Constructor Summary | |
---|---|
TarUtil()
|
Method Summary | |
---|---|
static com.ice.tar.TarEntry |
getNextEntry(com.ice.tar.TarInputStream tarStream)
Get the next entry from a TAR input stream. |
static void |
putNextEntry(com.ice.tar.TarEntry entry,
com.ice.tar.TarOutputStream tarStream)
Put the next entry to a TAR stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String LONG_LINK_NAME
public static final int MAX_NAME_LENGTH
LONG_LINK_NAME
,
Constant Field Valuesprivate static byte LONG_LINK_FLAG
Constructor Detail |
---|
public TarUtil()
Method Detail |
---|
public static final com.ice.tar.TarEntry getNextEntry(com.ice.tar.TarInputStream tarStream) throws IOException
tarStream
- The TAR stream to read from
IOException
public static final void putNextEntry(com.ice.tar.TarEntry entry, com.ice.tar.TarOutputStream tarStream) throws IOException
entry
- The next entrytarStream
- The tar stream to write to
IOException
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |