Package uk.ac.rdg.resc.edal.covjson
Class JsonStreamingEncoder
- java.lang.Object
-
- uk.ac.rdg.resc.edal.covjson.JsonStreamingEncoder
-
- All Implemented Interfaces:
StreamingEncoder
public class JsonStreamingEncoder extends Object implements StreamingEncoder
- Author:
- Maik Riechert
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface uk.ac.rdg.resc.edal.covjson.StreamingEncoder
StreamingEncoder.ArrayEncoder<T>, StreamingEncoder.ArrayHints, StreamingEncoder.MapEncoder<T>
-
-
Constructor Summary
Constructors Constructor Description JsonStreamingEncoder(OutputStream os, Map<String,DecimalFormat> field2dp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
end()
StreamingEncoder.MapEncoder<StreamingEncoder>
startMap()
-
-
-
Constructor Detail
-
JsonStreamingEncoder
public JsonStreamingEncoder(OutputStream os, Map<String,DecimalFormat> field2dp) throws IOException
- Parameters:
os
- TheOutputStream
to write tofield2dp
- a mapping of field to the number of decimal places required.- Throws:
IOException
-
-
Method Detail
-
startMap
public StreamingEncoder.MapEncoder<StreamingEncoder> startMap() throws IOException
- Specified by:
startMap
in interfaceStreamingEncoder
- Throws:
IOException
-
end
public void end() throws IOException
- Specified by:
end
in interfaceStreamingEncoder
- Throws:
IOException
-
-