public class CzmlDocumentPacketizer extends Object implements ICzmlDocumentPacketizer
Modifier and Type | Method and Description |
---|---|
CesiumGenerationStatus |
generateNextPacket()
Writes a single CZML packet to the writer that was provided to this packetizer when it was created.
|
CesiumGenerationStatus |
generateNextPacket(Writer writer)
Writes a single CZML packet to the provided writer.
|
@Nonnull public final CesiumGenerationStatus generateNextPacket()
generateNextPacket
in interface ICzmlDocumentPacketizer
CesiumGenerationStatus.DONE
if all packets have been generated; otherwise CesiumGenerationStatus.MORE_TO_GENERATE
.IllegalStateException
- Thrown when this object was not created with a writer.DataUnavailableException
- Thrown when all CZML has been generated.@Nonnull public final CesiumGenerationStatus generateNextPacket(Writer writer)
generateNextPacket
in interface ICzmlDocumentPacketizer
writer
- The writer to write to.CesiumGenerationStatus.DONE
if all packets have been generated; otherwise CesiumGenerationStatus.MORE_TO_GENERATE
.ArgumentNullException
- Thrown when writer
is null
.DataUnavailableException
- Thrown when all CZML has been generated.