public class CesiumOutputStream extends Object
Constructor and Description |
---|
CesiumOutputStream(Writer writer)
Initializes a new instance.
|
CesiumOutputStream(Writer writer,
boolean prettyFormatting)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getPrettyFormatting()
Gets a value indicating whether or not the written data should be formatted for easy human readability.
|
void |
setPrettyFormatting(boolean value)
Sets a value indicating whether or not the written data should be formatted for easy human readability.
|
void |
writeEndObject()
Writes the end of an object.
|
void |
writeEndSequence()
Writes the end of a sequence.
|
void |
writeLineBreak()
|
void |
writePropertyName(String propertyName)
Writes the name of a property.
|
void |
writeStartObject()
Writes the start of an object.
|
void |
writeStartSequence()
Writes the start of a sequence.
|
void |
writeValue(boolean value)
Writes the value of a property or element in a sequence.
|
void |
writeValue(double value)
Writes the value of a property or element in a sequence.
|
void |
writeValue(int value)
Writes the value of a property or element in a sequence.
|
void |
writeValue(long value)
Writes the value of a property or element in a sequence.
|
void |
writeValue(String value)
Writes the value of a property or element in a sequence.
|
void |
writeValue(URI value)
Writes the value of a property or element in a sequence.
|
public CesiumOutputStream(@Nonnull Writer writer)
writer
- The writer to which data will be written.public final boolean getPrettyFormatting()
false
(the default), more compact CZML is generated.public final void setPrettyFormatting(boolean value)
false
(the default), more compact CZML is generated.public void writeStartObject()
public void writeEndObject()
public void writeStartSequence()
public void writeEndSequence()
public void writePropertyName(@Nonnull String propertyName)
propertyName
- The name of the property.public void writeValue(@Nullable String value)
value
- The value to write.public void writeValue(double value)
value
- The value to write.public void writeValue(int value)
value
- The value to write.public void writeValue(long value)
value
- The value to write.public void writeValue(boolean value)
value
- The value to write.public void writeValue(@Nonnull URI value)
value
- The value to write.public void writeLineBreak()