org.apache.poi.hpsf
Class MutableProperty
- java.lang.Object
-
- org.apache.poi.hpsf.Property
-
- org.apache.poi.hpsf.MutableProperty
-
- Direct Known Subclasses:
- CustomProperty
public class MutableProperty extends Property
-
-
Constructor Summary
Constructors Constructor and Description MutableProperty()Creates an empty property.MutableProperty(Property p)Creates aMutablePropertyas a copy of an existingProperty.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidsetID(long id)Sets the property's ID.voidsetType(long type)Sets the property's type.voidsetValue(java.lang.Object value)Sets the property's value.intwrite(java.io.OutputStream out, int codepage)Writes the property to an output stream.
-
-
-
Constructor Detail
-
MutableProperty
public MutableProperty()
Creates an empty property. It must be filled using the set method to be usable.
-
MutableProperty
public MutableProperty(Property p)
Creates a
MutablePropertyas a copy of an existingProperty.- Parameters:
p- The property to copy.
-
-
Method Detail
-
setID
public void setID(long id)
Sets the property's ID.
- Parameters:
id- the ID
-
setType
public void setType(long type)
Sets the property's type.
- Parameters:
type- the property's type
-
setValue
public void setValue(java.lang.Object value)
Sets the property's value.
- Parameters:
value- the property's value
-
write
public int write(java.io.OutputStream out, int codepage) throws java.io.IOException, WritingNotSupportedExceptionWrites the property to an output stream.
- Parameters:
out- The output stream to write to.codepage- The codepage to use for writing non-wide strings- Returns:
- the number of bytes written to the stream
- Throws:
java.io.IOException- if an I/O error occursWritingNotSupportedException- if a variant type is to be written that is not yet supported
-
-
DataMelt 3.0 © DataMelt by jWork.ORG