public interface Transferable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DIR_MODE |
static int |
DEFAULT_FILE_MODE |
Modifier and Type | Method and Description |
---|---|
default byte[] |
getBytes() |
default java.lang.String |
getDescription() |
default int |
getFileMode()
Get file mode.
|
long |
getSize()
Size of an object.
|
static Transferable |
of(byte[] bytes) |
static Transferable |
of(byte[] bytes,
int fileMode) |
static Transferable |
of(java.lang.String string) |
default void |
transferTo(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream tarArchiveOutputStream,
java.lang.String destination)
transfer content of this Transferable to the output stream.
|
default void |
updateChecksum(java.util.zip.Checksum checksum) |
static final int DEFAULT_FILE_MODE
static final int DEFAULT_DIR_MODE
static Transferable of(java.lang.String string)
static Transferable of(byte[] bytes)
static Transferable of(byte[] bytes, int fileMode)
default int getFileMode()
DEFAULT_FILE_MODE
long getSize()
default void transferTo(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream tarArchiveOutputStream, java.lang.String destination)
tarArchiveOutputStream
- stream to outputdestination
- default byte[] getBytes()
default java.lang.String getDescription()
default void updateChecksum(java.util.zip.Checksum checksum)