public class MutableProperty extends Property
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.
Constructor and Description |
---|
MutableProperty()
Creates an empty property.
|
MutableProperty(Property p)
Creates a
MutableProperty as a copy of an existing
Property . |
Modifier and Type | Method and Description |
---|---|
void |
setID(long id)
Sets the property's ID.
|
void |
setType(long type)
Sets the property's type.
|
void |
setValue(Object value)
Sets the property's value.
|
int |
write(OutputStream out,
int codepage)
Writes the property to an output stream.
|
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.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(Object value)
Sets the property's value.
value
- the property's valuepublic int write(OutputStream out, int codepage) throws 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 stringsIOException
- if an I/O error occursWritingNotSupportedException
- if a variant type is to be
written that is not yet supportedCopyright © 2020. All rights reserved.