Package com.levigo.jadice.server.archive
Class UnTARNode
- java.lang.Object
-
- com.levigo.jadice.server.internal.NodeInternal
-
- com.levigo.jadice.server.Node
-
- com.levigo.jadice.server.archive.AbstractUnArchiveNode
-
- com.levigo.jadice.server.archive.UnTARNode
-
public class UnTARNode extends AbstractUnArchiveNode
ANode
used to untar the data contained in the input streams, i.e. unpack data archived using the GNU tar format. Each file within the TAR archive will produce a correspondingStream
in the output bundle.Archives in the .tar.gz or .tgz format (GZIP compressed TARs) must first be filtered through the
UnGZIPNode
in order to undo the GZIP compression.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.levigo.jadice.server.Node
Node.Cardinality
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_BLKSIZE
The default block size (20 times the default record size).static int
DEFAULT_RCDSIZE
The default record size (512 bytes).
-
Constructor Summary
Constructors Constructor Description UnTARNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBlockSize()
int
getRecordSize()
void
setBlockSize(int blockSize)
Set the block size to use.void
setRecordSize(int recordSize)
Set the record size to use.-
Methods inherited from class com.levigo.jadice.server.archive.AbstractUnArchiveNode
isApplyFilters, setApplyFilters
-
Methods inherited from class com.levigo.jadice.server.Node
addTransportReceiver, appendSuccessor, apply, equals, getInputCardinality, getJob, getOutputCardinality, getPredecessors, getSubsidiaryNodes, getSuccessors, getTransportSender, getUUID, getWorkerClassName, hashCode, initialize, prependPredecessor, remove, validateConfiguration
-
-
-
-
Field Detail
-
DEFAULT_RCDSIZE
public static final int DEFAULT_RCDSIZE
The default record size (512 bytes).- See Also:
- Constant Field Values
-
DEFAULT_BLKSIZE
public static final int DEFAULT_BLKSIZE
The default block size (20 times the default record size).- See Also:
- Constant Field Values
-
-
Method Detail
-
getRecordSize
public int getRecordSize()
- Returns:
- the record size
-
setRecordSize
public void setRecordSize(int recordSize)
Set the record size to use.- Parameters:
recordSize
- record size to use
-
getBlockSize
public int getBlockSize()
- Returns:
- the block size
-
setBlockSize
public void setBlockSize(int blockSize)
Set the block size to use.- Parameters:
blockSize
- block size to use
-
-