public class CPIO extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
CPIO.Link |
protected static class |
CPIO.LinkNameLengthComparator |
Modifier and Type | Field and Description |
---|---|
static int |
S_IFDIR |
static int |
S_IFLNK |
static int |
S_IFREG |
Constructor and Description |
---|
CPIO(File cpioFile) |
CPIO(InputStream input) |
Modifier and Type | Method and Description |
---|---|
void |
extractTo(File destinationFolder,
boolean symbolicLinksSupported,
IWOInstallerProgressMonitor progressMonitor) |
protected byte[] |
readFully(InputStream is,
byte[] b) |
protected byte[] |
readFully(InputStream is,
byte[] b,
int offset,
int length) |
protected String |
readString(InputStream is,
byte[] b) |
void |
setLength(long length) |
protected void |
skipFully(InputStream inputStream,
long skip) |
protected File |
toFile(File workingDir,
String path) |
public static final int S_IFDIR
public static final int S_IFREG
public static final int S_IFLNK
public CPIO(File cpioFile) throws FileNotFoundException
FileNotFoundException
public CPIO(InputStream input)
public void setLength(long length)
public void extractTo(File destinationFolder, boolean symbolicLinksSupported, IWOInstallerProgressMonitor progressMonitor) throws IOException, InterruptedException
IOException
InterruptedException
protected String readString(InputStream is, byte[] b) throws IOException
IOException
protected byte[] readFully(InputStream is, byte[] b) throws IOException
IOException
protected byte[] readFully(InputStream is, byte[] b, int offset, int length) throws IOException
IOException
protected void skipFully(InputStream inputStream, long skip) throws IOException
IOException
Copyright © 2002 – 2020 Project Wonder.