Index: src/java/org/apache/poi/poifs/filesystem/DirectoryEntry.java =================================================================== RCS file: /home/cvspublic/jakarta-poi/src/java/org/apache/poi/poifs/filesystem/DirectoryEntry.java,v retrieving revision 1.2 diff -u -r1.2 DirectoryEntry.java --- src/java/org/apache/poi/poifs/filesystem/DirectoryEntry.java 30 Apr 2003 04:39:07 -0000 1.2 +++ src/java/org/apache/poi/poifs/filesystem/DirectoryEntry.java 31 Oct 2003 21:15:50 -0000 @@ -59,6 +59,8 @@ import java.util.*; +import org.apache.poi.hpsf.ClassID; + /** * This interface defines methods specific to Directory objects * managed by a Filesystem instance. @@ -160,5 +162,20 @@ 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 Index: src/java/org/apache/poi/poifs/filesystem/DirectoryNode.java =================================================================== RCS file: /home/cvspublic/jakarta-poi/src/java/org/apache/poi/poifs/filesystem/DirectoryNode.java,v retrieving revision 1.2 diff -u -r1.2 DirectoryNode.java --- src/java/org/apache/poi/poifs/filesystem/DirectoryNode.java 30 Apr 2003 04:39:07 -0000 1.2 +++ src/java/org/apache/poi/poifs/filesystem/DirectoryNode.java 31 Oct 2003 21:15:50 -0000 @@ -59,6 +59,7 @@ 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; @@ -344,6 +345,26 @@ _filesystem.addDirectory(property); _entries.put(name, rval); 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 ********** */ Index: src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java =================================================================== RCS file: /home/cvspublic/jakarta-poi/src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java,v retrieving revision 1.4 diff -u -r1.4 POIFSFileSystem.java --- src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java 30 Apr 2003 04:39:07 -0000 1.4 +++ src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java 31 Oct 2003 21:15:50 -0000 @@ -423,6 +423,8 @@ DirectoryNode new_dir = ( DirectoryNode ) parent.createDirectory(name); + new_dir.setStorageClsid( property.getStorageClsid() ); + processProperties( small_blocks, big_blocks, (( DirectoryProperty ) property).getChildren(), new_dir);