Project Wonder 5.0

er.woinstaller.archiver
Class CPIO

java.lang.Object
  extended by er.woinstaller.archiver.CPIO

public class CPIO
extends java.lang.Object


Nested Class Summary
protected static class CPIO.Link
           
protected static class CPIO.LinkNameLengthComparator
           
 
Field Summary
static int S_IFDIR
           
static int S_IFLNK
           
static int S_IFREG
           
 
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
 

Field Detail

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
Constructor Detail

CPIO

public CPIO(java.io.File cpioFile)
     throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

CPIO

public CPIO(java.io.InputStream input)
Method Detail

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

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.