public class FileEntry extends Entry
Constructor and Description |
---|
FileEntry(java.io.DataInput in,
boolean dummy) |
FileEntry(int nameId,
Content content,
long timestamp,
boolean isReadOnly) |
FileEntry(java.lang.String name,
Content content,
long timestamp,
boolean isReadOnly) |
Modifier and Type | Method and Description |
---|---|
protected void |
collectCreatedDifferences(java.util.List<? super Difference> result,
boolean isRightContentCurrent) |
protected void |
collectDeletedDifferences(java.util.List<? super Difference> result,
boolean isRightContentCurrent) |
void |
collectDifferencesWith(Entry e,
java.util.List<? super Difference> result,
boolean isRightContentCurrent) |
FileEntry |
copy() |
Content |
getContent() |
long |
getTimestamp() |
boolean |
hasUnavailableContent(java.util.List<? super Entry> entriesWithUnavailableContent) |
boolean |
isReadOnly() |
void |
setContent(Content newContent,
long newTimestamp) |
void |
setReadOnly(boolean isReadOnly) |
void |
write(java.io.DataOutput out) |
addChild, addChildren, calcNameHash, findChild, findEntry, getChildren, getDifferencesBetween, getDifferencesBetween, getEntry, getName, getNameHash, getNameId, getNameSequence, getParent, getPath, hasEntry, hasUnavailableContent, isDirectory, isOutdated, nameEquals, pathEquals, removeChild, setName, setParent, toNameId, toString
public FileEntry(int nameId, Content content, long timestamp, boolean isReadOnly)
public FileEntry(java.lang.String name, Content content, long timestamp, boolean isReadOnly)
public FileEntry(java.io.DataInput in, boolean dummy) throws java.io.IOException
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
public long getTimestamp()
getTimestamp
in class Entry
public boolean isReadOnly()
isReadOnly
in class Entry
public void setReadOnly(boolean isReadOnly)
setReadOnly
in class Entry
public Content getContent()
getContent
in class Entry
public boolean hasUnavailableContent(java.util.List<? super Entry> entriesWithUnavailableContent)
hasUnavailableContent
in class Entry
public void setContent(Content newContent, long newTimestamp)
setContent
in class Entry
public void collectDifferencesWith(Entry e, java.util.List<? super Difference> result, boolean isRightContentCurrent)
collectDifferencesWith
in class Entry
protected void collectCreatedDifferences(java.util.List<? super Difference> result, boolean isRightContentCurrent)
collectCreatedDifferences
in class Entry
protected void collectDeletedDifferences(java.util.List<? super Difference> result, boolean isRightContentCurrent)
collectDeletedDifferences
in class Entry