ASF Bugzilla – Attachment 8860 Details for
Bug 22195
[RFE] [PATCH] Support for Storage Class ID
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH] getters and setters for CLSID
patch_POI_24183_getters_and_setters.txt (text/plain), 3.43 KB, created by
Kirill Jacobson
on 2003-10-31 21:18:39 UTC
(
hide
)
Description:
[PATCH] getters and setters for CLSID
Filename:
MIME Type:
Creator:
Kirill Jacobson
Created:
2003-10-31 21:18:39 UTC
Size:
3.43 KB
patch
obsolete
>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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 22195
:
7682
|
7703
| 8860