com.ecebs.rtd.enabler.types.itso
Class Directory

java.lang.Object
  extended by 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
 
Method Summary
 List<DirEntry> getDirEntries()
           
 DirEntry getDirEntry(int index)
           
 short getDirSeqNum()
           
 Header getHeader()
           
 byte getIns()
           
 InstanceID getInstanceID()
           
 String getIsamID()
           
 byte getKID()
           
 byte getNumLogEntries()
           
 byte[] getOriginalSCT()
           
 byte[] getSct()
           
 byte[] getSeal()
           
 boolean isNewerThan(Directory otherDir)
          Determine if this Directory instance is newer than the provided Directory instance.
 boolean isShellBlocked()
           
 void setShellBlocked(ITSOShell shell)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 directory
dir - byte array to parse from
offset - index to start parsing at
isCMD7 - set this to true if the directory has been read from a CMD7 CM
Throws:
IndexOutOfBoundsException
Method Detail

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.