public class TarPackager extends Packager
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
directories |
protected int |
epoch |
protected int |
fileOffset |
protected int |
fileSize |
protected byte[] |
header |
protected OutputStream |
out |
Constructor and Description |
---|
TarPackager() |
Modifier and Type | Method and Description |
---|---|
protected void |
checksumHeader() |
void |
close() |
void |
closeEntry() |
protected void |
digits(long number,
int offset,
int len) |
String |
getExtension() |
protected void |
handleDirectory(String name) |
protected String |
makeExtendedHeader(String key,
String value) |
void |
open(OutputStream out) |
void |
putNextEntry(String name,
boolean executable,
int size) |
void |
write(byte[] b,
int off,
int len) |
protected void |
writeHeader(String name,
int mode,
int size,
int type) |
addDefaultFiles, addFile, getPlatform, initialize, main, setPrefix, setRootDirectory, write
protected OutputStream out
protected byte[] header
protected int epoch
protected int fileOffset
protected int fileSize
public String getExtension()
getExtension
in class Packager
public void open(OutputStream out) throws IOException
open
in class Packager
IOException
public void putNextEntry(String name, boolean executable, int size) throws IOException
putNextEntry
in class Packager
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class Packager
IOException
public void closeEntry() throws IOException
closeEntry
in class Packager
IOException
public void close() throws IOException
close
in class Packager
IOException
protected void handleDirectory(String name) throws IOException
IOException
protected void writeHeader(String name, int mode, int size, int type) throws IOException
IOException
protected void checksumHeader()
protected void digits(long number, int offset, int len)
Copyright © 2015–2021 Fiji. All rights reserved.