Package uk.ac.rdg.resc.edal.covjson
Interface StreamingEncoder
-
- All Known Implementing Classes:
JsonStreamingEncoder
public interface StreamingEncoder
A streaming encoder interface for JSON-compatible object structures with additional hints for more advanced formats like CBOR encoders. This interface is a mix of cbor-java's CborBuilder and Jackson's Streaming API, with the goal of being compatible to both and being able to write simple adapters for them.- Author:
- Maik Riechert
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
StreamingEncoder.ArrayEncoder<T>
static class
StreamingEncoder.ArrayHints
static interface
StreamingEncoder.MapEncoder<T>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
end()
StreamingEncoder.MapEncoder<StreamingEncoder>
startMap()
-
-
-
Method Detail
-
startMap
StreamingEncoder.MapEncoder<StreamingEncoder> startMap() throws IOException
- Throws:
IOException
-
end
void end() throws IOException
- Throws:
IOException
-
-