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
FileNotFoundExceptionpublic CPIO(InputStream input)
public void setLength(long length)
public void extractTo(File destinationFolder, boolean symbolicLinksSupported, IWOInstallerProgressMonitor progressMonitor) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected String readString(InputStream is, byte[] b) throws IOException
IOExceptionprotected byte[] readFully(InputStream is, byte[] b) throws IOException
IOExceptionprotected byte[] readFully(InputStream is, byte[] b, int offset, int length) throws IOException
IOExceptionprotected void skipFully(InputStream inputStream, long skip) throws IOException
IOExceptionCopyright © 2002 – 2020 Project Wonder.