Class DirectoryEntry
java.lang.Object
com.independentsoft.io.structuredstorage.DirectoryEntry
- All Implemented Interfaces:
Comparable<DirectoryEntry>
- Direct Known Subclasses:
RootDirectoryEntry,Storage,Stream
Represents a directory entry.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte[]protected com.independentsoft.io.structuredstorage.LittleEndianUInt32protected byte[]protected com.independentsoft.io.structuredstorage.Colorprotected Dateprotected DirectoryEntryListprotected Dateprotected com.independentsoft.io.structuredstorage.LittleEndianUInt32protected Stringprotected DirectoryEntryprotected static shortprotected com.independentsoft.io.structuredstorage.LittleEndianUInt32protected com.independentsoft.io.structuredstorage.LittleEndianUInt32protected com.independentsoft.io.structuredstorage.LittleEndianUInt32protected DirectoryEntryTypeprotected com.independentsoft.io.structuredstorage.LittleEndianUInt32 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(DirectoryEntry entry)Compares this instance with the specified DirectoryEntry object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified DirectoryEntry.byte[]Gets classID.Gets creation time.Gets last modified time.getName()Gets name.longgetSize()Gets size.voidsetClassId(byte[] classId)Sets classID.voidSets name.
-
Field Details
-
name
-
type
-
color
protected com.independentsoft.io.structuredstorage.Color color -
leftSiblingSid
protected com.independentsoft.io.structuredstorage.LittleEndianUInt32 leftSiblingSid -
rightSiblingSid
protected com.independentsoft.io.structuredstorage.LittleEndianUInt32 rightSiblingSid -
childSid
protected com.independentsoft.io.structuredstorage.LittleEndianUInt32 childSid -
classId
protected byte[] classId -
userFlags
protected com.independentsoft.io.structuredstorage.LittleEndianUInt32 userFlags -
createdTime
-
lastModifiedTime
-
startSector
protected com.independentsoft.io.structuredstorage.LittleEndianUInt32 startSector -
size
protected com.independentsoft.io.structuredstorage.LittleEndianUInt32 size -
PROPERTY_TYPE
protected static final short PROPERTY_TYPE- See Also:
- Constant Field Values
-
buffer
protected byte[] buffer -
directoryEntries
-
parent
-
-
Constructor Details
-
DirectoryEntry
public DirectoryEntry()
-
-
Method Details
-
compareTo
Compares this instance with the specified DirectoryEntry object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified DirectoryEntry.- Specified by:
compareToin interfaceComparable<DirectoryEntry>- Parameters:
entry- the entry- Returns:
- A 32-bit signed integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the value parameter.
-
getName
Gets name.- Returns:
- the name
-
setName
Sets name.- Parameters:
name- the new name
-
getCreatedTime
Gets creation time.- Returns:
- the created time
-
getLastModifiedTime
Gets last modified time.- Returns:
- the last modified time
-
getSize
public long getSize()Gets size.- Returns:
- the size
-
getClassId
public byte[] getClassId()Gets classID.- Returns:
- the class id
-
setClassId
public void setClassId(byte[] classId)Sets classID.- Parameters:
classId- the new class id
-