public class CzmlUpdateDocument extends Object implements ICzmlDocument
Modifier and Type | Method and Description |
---|---|
CzmlUpdateDocumentPacketizer |
createStreamingDocument()
Creates a
CzmlUpdateDocumentPacketizer that can be used to stream CZML incrementally to a client. |
CzmlUpdateDocumentPacketizer |
createStreamingDocument(Writer writer)
Creates a
CzmlUpdateDocumentPacketizer that can be used to stream CZML incrementally to a client. |
int |
getPacketCount()
Gets the number of CZML packets contained by this document.
|
boolean |
getPrettyFormatting()
Gets a value indicating whether the resulting CZML file is formatted using whitespace for
easy readability, which will produce a significantly larger file.
|
void |
setPrettyFormatting(boolean value)
Sets a value indicating whether the resulting CZML file is formatted using whitespace for
easy readability, which will produce a significantly larger file.
|
void |
writeDocument(CesiumOutputStream outputStream)
Writes the document to the provided output stream.
|
void |
writeDocument(Writer writer)
Writes the document to the provided writer.
|
public final boolean getPrettyFormatting()
false
.public final void setPrettyFormatting(boolean value)
false
.public final void writeDocument(Writer writer)
writeDocument
in interface ICzmlDocument
writer
- The writer to use.public final void writeDocument(CesiumOutputStream outputStream)
writeDocument
in interface ICzmlDocument
outputStream
- The output stream to use.@Nonnull public final CzmlUpdateDocumentPacketizer createStreamingDocument(@Nonnull Writer writer)
CzmlUpdateDocumentPacketizer
that can be used to stream CZML incrementally to a client.writer
- The writer to use.CzmlUpdateDocumentPacketizer
for this document.@Nonnull public final CzmlUpdateDocumentPacketizer createStreamingDocument()
Creates a CzmlUpdateDocumentPacketizer
that can be used to stream CZML incrementally to a client.
The resulting CzmlUpdateDocumentPacketizer
must be given a writer to write each packet to
by calling CzmlUpdateDocumentPacketizer.generateNextPacket(Writer)
.
CzmlUpdateDocumentPacketizer
for this document.public final int getPacketCount()
Gets the number of CZML packets contained by this document.
Note that a CZML document always starts with a document packet, so this will always be at least one.