import java.util.*;
+import org.apache.poi.hpsf.ClassID;
+
/**
* This interface defines methods specific to Directory objects
* managed by a Filesystem instance.
public DirectoryEntry createDirectory(final String name)
throws IOException;
+
+ /**
+ * Gets the storage clsid of the directory entry
+ *
+ * @return storage Class ID
+ */
+ public ClassID getStorageClsid();
+
+ /**
+ * Sets the storage clsid for the directory entry
+ *
+ * @param clsidStorage storage Class ID
+ */
+ public void setStorageClsid(ClassID clsidStorage);
+
} // end public interface DirectoryEntry
import java.util.*;
+import org.apache.poi.hpsf.ClassID;
import org.apache.poi.poifs.dev.POIFSViewable;
import org.apache.poi.poifs.property.DirectoryProperty;
import org.apache.poi.poifs.property.DocumentProperty;
return rval;
}
+ /**
+ * Gets the storage clsid of the directory entry
+ *
+ * @return storage Class ID
+ */
+ public ClassID getStorageClsid()
+ {
+ return getProperty().getStorageClsid();
+ }
+
+ /**
+ * Sets the storage clsid for the directory entry
+ *
+ * @param clsidStorage storage Class ID
+ */
+ public void setStorageClsid(ClassID clsidStorage)
+ {
+ getProperty().setStorageClsid(clsidStorage);
+ }
+
/* ********** END implementation of DirectoryEntry ********** */
/* ********** START implementation of Entry ********** */
DirectoryNode new_dir =
( DirectoryNode ) parent.createDirectory(name);
+ new_dir.setStorageClsid( property.getStorageClsid() );
+
processProperties(
small_blocks, big_blocks,
(( DirectoryProperty ) property).getChildren(), new_dir);