XMLEncoder (Java SE 25 & JDK 25)
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
Constructors
Creates a new XML encoder to write out JavaBeans to the stream
outusing an XML encoding.Creates a new XML encoder to write out JavaBeans to the stream
outusing the givencharsetstarting from the givenindentation. -
Method Summary
voidclose()This method calls
flush, writes the closing postamble and then closes the output stream associated with this stream.voidflush()This method writes out the preamble associated with the XML encoding if it has not been written already and then writes out all of the values that been written to the stream since the last time
flushwas called.getOwner()Gets the owner of this encoder.
voidSets the owner of this encoder to
owner.voidRecords the Expression so that the Encoder will produce the actual output when the stream is flushed.
voidWrite an XML representation of the specified object to the output.
voidRecords the Statement so that the Encoder will produce the actual output when the stream is flushed.
-
Constructor Details
-
XMLEncoder
-
XMLEncoder
-
-
Method Details
-
setOwner
-
getOwner
-
writeObject
-
writeStatement
-
writeExpression
-
flush
-
close
-