public DirectoryEntry getDirectory() throws IOException {EmbeddedObjectRefSubRecord subRecord = findObjectRecord();int streamId = subRecord.getStreamId().intValue();String streamName = "MBD" + HexDump.toHex(streamId);Entry entry = _root.getEntry(streamName);if (entry instanceof DirectoryEntry) {return (DirectoryEntry) entry;}throw new IOException("Stream " + streamName + " was not an OLE2 directory");}

public DirectoryEntry GetDirectory(){EmbeddedObjectRefSubRecord subRecord = FindObjectRecord();int? streamId = ((EmbeddedObjectRefSubRecord)subRecord).StreamId;String streamName = "MBD" + HexDump.ToHex((int)streamId);Entry entry = _root.GetEntry(streamName);if (entry is DirectoryEntry){return (DirectoryEntry)entry;}else{throw new IOException("Stream " + streamName + " was not an OLE2 directory");}}
