com.ecebs.rtd.enabler.types.itso
Class Directory
java.lang.Object
com.ecebs.rtd.enabler.types.itso.Directory
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- DirectoryCMD4
public class Directory
- extends Object
- implements Serializable
Represents an ITSO Directory
- Author:
- kyleb
- See Also:
- Serialized Form
Constructor Summary |
Directory(ITSOShell shell,
byte[] dir,
int offset,
boolean isCMD7)
Parses from the provided byte array starting at the provided offset |
Directory
public Directory(ITSOShell shell,
byte[] dir,
int offset,
boolean isCMD7)
throws IndexOutOfBoundsException
- Parses from the provided byte array starting at the provided offset
- Parameters:
shell
- Shell containing parameters required to parse the directorydir
- byte array to parse fromoffset
- index to start parsing atisCMD7
- set this to true if the directory has been read from a CMD7 CM
- Throws:
IndexOutOfBoundsException
setShellBlocked
public void setShellBlocked(ITSOShell shell)
getHeader
public Header getHeader()
isShellBlocked
public boolean isShellBlocked()
getNumLogEntries
public byte getNumLogEntries()
getDirEntries
public List<DirEntry> getDirEntries()
getDirEntry
public DirEntry getDirEntry(int index)
getSct
public byte[] getSct()
getOriginalSCT
public byte[] getOriginalSCT()
getDirSeqNum
public short getDirSeqNum()
getKID
public byte getKID()
getIns
public byte getIns()
getIsamID
public String getIsamID()
getInstanceID
public InstanceID getInstanceID()
getSeal
public byte[] getSeal()
toString
public String toString()
- Overrides:
toString
in class Object
isNewerThan
public boolean isNewerThan(Directory otherDir)
- Determine if this Directory instance is newer than the
provided Directory instance.
- Parameters:
otherDir
- The directory to compare with
- Returns:
- true if this directory is newer or the same as the other directory, else false
Copyright © 2013 Ecebs Ltd. All Rights Reserved.