Class EntityObjectsToXmlWriter
java.lang.Object
com.atlassian.confluence.impl.backuprestore.backup.container.EntityObjectsToXmlWriter
- All Implemented Interfaces:
AutoCloseable
Implementation of EntityObjectsWriter that coverts objects to XML stream (the same way as the legacy XML writer does).
The only difference is that it provides better formatting.
It does not support multi-threading, so for parallel converting, a few converters (with separate writers) should be
instantiated.
- Since:
- 7.20.0
-
Constructor Summary
ConstructorsConstructorDescriptionEntityObjectsToXmlWriter
(Writer writer, Instant currentTime) EntityObjectsToXmlWriter
(Writer writer, Instant currentTime, int characterLimit) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
void
close()
static String
void
serialise
(Collection<EntityObjectReadyForExport> objectsToSerialise) Thread-safe serialisation of the objects collection.static String
static String
-
Constructor Details
-
EntityObjectsToXmlWriter
public EntityObjectsToXmlWriter(Writer writer, Instant currentTime, int characterLimit) throws IOException - Throws:
IOException
-
EntityObjectsToXmlWriter
- Throws:
IOException
-
-
Method Details
-
serialise
Thread-safe serialisation of the objects collection.- Throws:
IOException
-
addClass
- Throws:
IOException
-
unqualify
-
unqualify
-
qualifier
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-