public class TarUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static byte |
LONG_LINK_FLAG
The TAR header flag that must be set for @LongLink entries.
|
static java.lang.String |
LONG_LINK_NAME
TAR has a limit of 100 characters in file names.
|
static int |
MAX_NAME_LENGTH
Maximum file name length.
|
Constructor and Description |
---|
TarUtil() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final java.lang.String LONG_LINK_NAME
public static final int MAX_NAME_LENGTH
LONG_LINK_NAME
,
Constant Field Valuesprivate static byte LONG_LINK_FLAG
public static final com.ice.tar.TarEntry getNextEntry(com.ice.tar.TarInputStream tarStream) throws java.io.IOException
tarStream
- The TAR stream to read fromjava.io.IOException
public static final void putNextEntry(com.ice.tar.TarEntry entry, com.ice.tar.TarOutputStream tarStream) throws java.io.IOException
entry
- The next entrytarStream
- The tar stream to write tojava.io.IOException