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, toStringpublic 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.IOExceptionpublic void write(java.io.DataOutput out)
throws java.io.IOException
public long getTimestamp()
getTimestamp in class Entrypublic boolean isReadOnly()
isReadOnly in class Entrypublic void setReadOnly(boolean isReadOnly)
setReadOnly in class Entrypublic Content getContent()
getContent in class Entrypublic boolean hasUnavailableContent(java.util.List<? super Entry> entriesWithUnavailableContent)
hasUnavailableContent in class Entrypublic void setContent(Content newContent, long newTimestamp)
setContent in class Entrypublic void collectDifferencesWith(Entry e, java.util.List<? super Difference> result, boolean isRightContentCurrent)
collectDifferencesWith in class Entryprotected void collectCreatedDifferences(java.util.List<? super Difference> result, boolean isRightContentCurrent)
collectCreatedDifferences in class Entryprotected void collectDeletedDifferences(java.util.List<? super Difference> result, boolean isRightContentCurrent)
collectDeletedDifferences in class Entry