|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.threerings.jpkg.ar.ArchiveStringEntry
public class ArchiveStringEntry
An ArchiveEntry
where the entry data is a held in a string.
Constructor Summary | |
---|---|
ArchiveStringEntry(String data,
String path)
Construct an ArchiveStringEntry with the supplied string as the entry data and the
supplied path name as the entry path in the archive. |
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 ArchiveStringEntry(String data, String path)
ArchiveStringEntry
with the supplied string as the entry data and the
supplied path name as the entry path in the archive. The entry will be owned by the root
user and group and have standard permissions.
data
- The string data for the entry.path
- The path name in the archive.UnixStandardPermissions.ROOT_USER
,
UnixStandardPermissions.ROOT_GROUP
,
UnixStandardPermissions.STANDARD_FILE_MODE
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 |