er.woinstaller.archiver
Class CPIO
java.lang.Object
er.woinstaller.archiver.CPIO
public class CPIO
- extends java.lang.Object
Constructor Summary |
CPIO(java.io.File cpioFile)
|
CPIO(java.io.InputStream input)
|
Method Summary |
void |
extractTo(java.io.File destinationFolder,
boolean symbolicLinksSupported,
IProgressMonitor progressMonitor)
|
protected byte[] |
readFully(java.io.InputStream is,
byte[] b)
|
protected byte[] |
readFully(java.io.InputStream is,
byte[] b,
int offset,
int length)
|
protected java.lang.String |
readString(java.io.InputStream is,
byte[] b)
|
void |
setLength(long length)
|
protected void |
skipFully(java.io.InputStream inputStream,
long skip)
|
protected java.io.File |
toFile(java.io.File workingDir,
java.lang.String path)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
S_IFDIR
public static final int S_IFDIR
- See Also:
- Constant Field Values
S_IFREG
public static final int S_IFREG
- See Also:
- Constant Field Values
S_IFLNK
public static final int S_IFLNK
- See Also:
- Constant Field Values
CPIO
public CPIO(java.io.File cpioFile)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
CPIO
public CPIO(java.io.InputStream input)
setLength
public void setLength(long length)
extractTo
public void extractTo(java.io.File destinationFolder,
boolean symbolicLinksSupported,
IProgressMonitor progressMonitor)
throws java.io.IOException,
java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
toFile
protected java.io.File toFile(java.io.File workingDir,
java.lang.String path)
readString
protected java.lang.String readString(java.io.InputStream is,
byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
readFully
protected byte[] readFully(java.io.InputStream is,
byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
readFully
protected byte[] readFully(java.io.InputStream is,
byte[] b,
int offset,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
skipFully
protected void skipFully(java.io.InputStream inputStream,
long skip)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2002 – 2007 Project Wonder.