|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.threerings.jpkg.debian.ControlFile
public class ControlFile
Handles the creation of the Debian package control.tar.gz file.
Constructor Summary | |
---|---|
ControlFile(PackageInfo info,
PackageTarFile dataTar)
Construct a new ControlFile which creates the contents of control.tar.gz entry in the Debian package. |
Method Summary | |
---|---|
int |
getGroupId()
Returns the group id which will own this entry in the archive. |
InputStream |
getInputStream()
Returns an InputStream from the data contained in this entry. |
int |
getMode()
Returns the file permissions mode (e.g. |
String |
getPath()
Returns the path name used to identify this entry in the archive. |
long |
getSize()
Returns the size of the data contained in this entry in bytes. |
int |
getUserId()
Returns the user id which will own this entry in the archive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ControlFile(PackageInfo info, PackageTarFile dataTar) throws IOException, ScriptDataTooLargeException
info
- The fully populated package meta data.dataTar
- The fully populated PackageTarFile
represented by this control file.
IOException
- If any i/o exceptions occur during the control file creation.
ScriptDataTooLargeException
- If any maintainer script is too large to be added to the tar file.Method Detail |
---|
public InputStream getInputStream()
ArchiveEntry
InputStream
from the data contained in this entry.
getInputStream
in interface ArchiveEntry
public long getSize()
ArchiveEntry
Archive
can only
store data whose size can be expressed in a 32 bit integer however the interface allows
size to be expressed as a long to support for example File
objects. The
Archive
class will guarantee that the size returned by this method can be converted
safely into a 32 bit integer.
getSize
in interface ArchiveEntry
public String getPath()
ArchiveEntry
getPath
in interface ArchiveEntry
public int getUserId()
ArchiveEntry
getUserId
in interface ArchiveEntry
public int getGroupId()
ArchiveEntry
getGroupId
in interface ArchiveEntry
public int getMode()
ArchiveEntry
getMode
in interface ArchiveEntry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |