|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.hpsf.Property
org.apache.poi.hpsf.MutableProperty
public class MutableProperty
Adds writing capability to the Property class.
Please be aware that this class' functionality will be merged into the
Property class at a later time, so the API will change.
| Field Summary |
|---|
| Fields inherited from class org.apache.poi.hpsf.Property |
|---|
id, type, value |
| Constructor Summary | |
|---|---|
MutableProperty()
Creates an empty property. |
|
MutableProperty(Property p)
Creates a MutableProperty as a copy of an existing
Property. |
|
| Method Summary | |
|---|---|
void |
setID(long id)
Sets the property's ID. |
void |
setType(long type)
Sets the property's type. |
void |
setValue(java.lang.Object value)
Sets the property's value. |
int |
write(java.io.OutputStream out,
int codepage)
Writes the property to an output stream. |
| Methods inherited from class org.apache.poi.hpsf.Property |
|---|
equals, getID, getSize, getType, getValue, hashCode, readDictionary, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MutableProperty()
Creates an empty property. It must be filled using the set method to be usable.
public MutableProperty(Property p)
Creates a MutableProperty as a copy of an existing
Property.
p - The property to copy.| Method Detail |
|---|
public void setID(long id)
Sets the property's ID.
id - the IDpublic void setType(long type)
Sets the property's type.
type - the property's typepublic void setValue(java.lang.Object value)
Sets the property's value.
value - the property's value
public int write(java.io.OutputStream out,
int codepage)
throws java.io.IOException,
WritingNotSupportedException
Writes the property to an output stream.
out - The output stream to write to.codepage - The codepage to use for writing non-wide strings
java.io.IOException - if an I/O error occurs
WritingNotSupportedException - if a variant type is to be
written that is not yet supported
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||