public class ArchiveFile extends AccessibleAbstractArchiveComponent
| Modifier and Type | Field and Description |
|---|---|
private ArchiveData |
data
the data, that should be put in the archive as content of the file.
|
static java.lang.String |
DEFAULT_FLAG
Default value for flags property.
|
private java.lang.String |
flags
the flags of the file.
|
| Constructor and Description |
|---|
ArchiveFile(java.lang.String name,
int mode,
ArchiveData data,
java.lang.String flags)
Creates a ArchiveFile.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ArchiveComponentVisitor visitor)
calls back to the appropriate handle-method.
|
ArchiveData |
getArchiveData()
Getter.
|
java.lang.String |
getFlags()
Getter.
|
getModegetNamepublic static final java.lang.String DEFAULT_FLAG
private final ArchiveData data
private final java.lang.String flags
public ArchiveFile(java.lang.String name,
int mode,
ArchiveData data,
java.lang.String flags)
name - the name of the archive filemode - the access modedata - the content of the archive file.flags - the flagspublic void accept(ArchiveComponentVisitor visitor) throws java.io.FileNotFoundException, java.io.IOException
Visitablevisitor - the visiting visitorjava.io.FileNotFoundExceptionjava.io.IOExceptionpublic ArchiveData getArchiveData()
public java.lang.String getFlags()