public interface 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 CesiumGenerationStatus generateNextPacket()
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 CesiumGenerationStatus generateNextPacket(@Nonnull Writer writer)
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.