Java Doc for MutablePropertySet.java in  » Collaboration » poi-3.0.2-beta2 » org » apache » poi » hpsf » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Collaboration » poi 3.0.2 beta2 » org.apache.poi.hpsf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.poi.hpsf.PropertySet
      org.apache.poi.hpsf.MutablePropertySet

All known Subclasses:   org.apache.poi.hpsf.SpecialPropertySet,
MutablePropertySet
public class MutablePropertySet extends PropertySet (Code)

Adds writing support to the PropertySet class.

Please be aware that this class' functionality will be merged into the PropertySet class at a later time, so the API will change.


author:
   Rainer Klute author:
   href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de>
version:
   $Id: MutablePropertySet.java 489730 2006-12-22 19:18:16Z bayard $
since:
   2003-02-19



Constructor Summary
public  MutablePropertySet()
    

Constructs a MutablePropertySet instance.

public  MutablePropertySet(PropertySet ps)
    

Constructs a MutablePropertySet by doing a deep copy of an existing PropertySet.


Method Summary
public  voidaddSection(Section section)
    

Adds a section to this property set.


Parameters:
  section - The Section to add.
public  voidclearSections()
    
public  voidsetByteOrder(int byteOrder)
    
public  voidsetClassID(ClassID classID)
    
public  voidsetFormat(int format)
    
public  voidsetOSVersion(int osVersion)
    
public  InputStreamtoInputStream()
    

Returns the contents of this property set stream as an input stream. The latter can be used for example to write the property set into a POIFS document.

public  voidwrite(OutputStream out)
    
public  voidwrite(DirectoryEntry dir, String name)
    

Writes a property set to a document in a POI filesystem directory.


Parameters:
  dir - The directory in the POI filesystem to write the document to.
Parameters:
  name - The document's name.


Constructor Detail
MutablePropertySet
public MutablePropertySet()(Code)

Constructs a MutablePropertySet instance. Its primary task is to initialize the immutable field with their proper values. It also sets fields that might change to reasonable defaults.




MutablePropertySet
public MutablePropertySet(PropertySet ps)(Code)

Constructs a MutablePropertySet by doing a deep copy of an existing PropertySet. All nested elements, i.e. Sections and Property instances, will be their mutable counterparts in the new MutablePropertySet.


Parameters:
  ps - The property set to copy




Method Detail
addSection
public void addSection(Section section)(Code)

Adds a section to this property set.


Parameters:
  section - The Section to add. It will be appendedafter any sections that are already present in the property setand thus become the last section.



clearSections
public void clearSections()(Code)

Removes all sections from this property set.




setByteOrder
public void setByteOrder(int byteOrder)(Code)

Sets the "byteOrder" property.


Parameters:
  byteOrder - the byteOrder value to set



setClassID
public void setClassID(ClassID classID)(Code)

Sets the property set stream's low-level "class ID" field.


Parameters:
  classID - The property set stream's low-level "class ID" field.
See Also:   PropertySet.getClassID



setFormat
public void setFormat(int format)(Code)

Sets the "format" property.


Parameters:
  format - the format value to set



setOSVersion
public void setOSVersion(int osVersion)(Code)

Sets the "osVersion" property.


Parameters:
  osVersion - the osVersion value to set



toInputStream
public InputStream toInputStream() throws IOException, WritingNotSupportedException(Code)

Returns the contents of this property set stream as an input stream. The latter can be used for example to write the property set into a POIFS document. The input stream represents a snapshot of the property set. If the latter is modified while the input stream is still being read, the modifications will not be reflected in the input stream but in the MutablePropertySet only.

the contents of this property set stream
throws:
  WritingNotSupportedException - if HPSF does not yet support writingof a property's variant type.
throws:
  IOException - if an I/O exception occurs.



write
public void write(OutputStream out) throws WritingNotSupportedException, IOException(Code)

Writes the property set to an output stream.


Parameters:
  out - the output stream to write the section to
exception:
  IOException - if an error when writing to the output streamoccurs
exception:
  WritingNotSupportedException - if HPSF does not yet supportwriting a property's variant type.



write
public void write(DirectoryEntry dir, String name) throws WritingNotSupportedException, IOException(Code)

Writes a property set to a document in a POI filesystem directory.


Parameters:
  dir - The directory in the POI filesystem to write the document to.
Parameters:
  name - The document's name. If there is already a document with thesame name in the directory the latter will be overwritten.
throws:
  WritingNotSupportedException -
throws:
  IOException -



Fields inherited from org.apache.poi.hpsf.PropertySet
final static byte[] BYTE_ORDER_ASSERTION(Code)(Java Doc)
final static byte[] FORMAT_ASSERTION(Code)(Java Doc)
final public static int OS_MACINTOSH(Code)(Java Doc)
final public static int OS_WIN16(Code)(Java Doc)
final public static int OS_WIN32(Code)(Java Doc)
protected int byteOrder(Code)(Java Doc)
protected ClassID classID(Code)(Java Doc)
protected int format(Code)(Java Doc)
protected int osVersion(Code)(Java Doc)
protected List sections(Code)(Java Doc)

Methods inherited from org.apache.poi.hpsf.PropertySet
public boolean equals(Object o)(Code)(Java Doc)
public int getByteOrder()(Code)(Java Doc)
public ClassID getClassID()(Code)(Java Doc)
public Section getFirstSection()(Code)(Java Doc)
public int getFormat()(Code)(Java Doc)
public int getOSVersion()(Code)(Java Doc)
public Property[] getProperties() throws NoSingleSectionException(Code)(Java Doc)
protected Object getProperty(int id) throws NoSingleSectionException(Code)(Java Doc)
protected boolean getPropertyBooleanValue(int id) throws NoSingleSectionException(Code)(Java Doc)
protected int getPropertyIntValue(int id) throws NoSingleSectionException(Code)(Java Doc)
public int getSectionCount()(Code)(Java Doc)
public List getSections()(Code)(Java Doc)
public Section getSingleSection()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isDocumentSummaryInformation()(Code)(Java Doc)
public static boolean isPropertySetStream(InputStream stream) throws MarkUnsupportedException, IOException(Code)(Java Doc)
public static boolean isPropertySetStream(byte[] src, int offset, int length)(Code)(Java Doc)
public boolean isSummaryInformation()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public boolean wasNull() throws NoSingleSectionException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.