public class EntryToArchive extends Object
ArchiveBuilder
.
Instances of this class is immutable.
Constructor and Description |
---|
EntryToArchive(org.entityfs.el.AbsoluteLocation loc,
org.entityfs.EntityType entType,
Object entryToArchive)
Create a new configuration object for an entry that are to be added to an
archive.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
org.entityfs.EntityType |
getEntityType()
Get the entry type.
|
Object |
getEntryToArchive()
Get the entry to archive.
|
org.entityfs.el.AbsoluteLocation |
getLocation()
Get the location of the entry in the archive.
|
int |
hashCode() |
public EntryToArchive(org.entityfs.el.AbsoluteLocation loc, org.entityfs.EntityType entType, Object entryToArchive)
loc
- The entry's location in the archive.entType
- The entry's type.entryToArchive
- The entry to archive. This may be a
ReadableFile
, a DirectoryView
,
a File
or an InputStream
. In the latter
case, this method may not read any data from the stream. If the
entity is ReadLockable
(which ReadableFile
and DirectoryView
is), it is locked for reading
while this object is used.public org.entityfs.el.AbsoluteLocation getLocation()
public org.entityfs.EntityType getEntityType()
public Object getEntryToArchive()
ReadableFile
, a DirectoryView
, a File
or an
InputStream
. In the latter case, this method may
not read any data from the stream. If the entity is
ReadLockable
(which ReadableFile
and
DirectoryView
is), it is locked for reading when this method is
called.