Interface StreamWriterMountPointExtension
- All Superinterfaces:
NormalizedNodeStreamWriterExtension
,ObjectExtension<NormalizedNodeStreamWriter,
NormalizedNodeStreamWriterExtension>
- All Known Implementing Classes:
ImmutableMountPointNormalizedNodeStreamWriter
,JSONNormalizedNodeStreamWriter
@Beta
@NonNullByDefault
public interface StreamWriterMountPointExtension
extends NormalizedNodeStreamWriterExtension
A
NormalizedNodeStreamWriterExtension
exposed by stream writers which can handle mount point data, notably
providing the facilities to resolve a mount point schema and normalize mount point contents into a normalized
structure.-
Method Summary
Modifier and TypeMethodDescriptionstartMountPoint
(MountPointIdentifier mountId, MountPointContext mountCtx) Start a new mount point with a specific mount point context.
-
Method Details
-
startMountPoint
NormalizedNodeStreamWriter startMountPoint(MountPointIdentifier mountId, MountPointContext mountCtx) throws IOException Start a new mount point with a specific mount point context. The returned writer will be used to emit the content of the mount point, without touching the writer to which this extension is attached to. Once that is done, the returned writer will beNormalizedNodeStreamWriter.close()
d, at which point the parent writer will be used again to emit the rest of the tree.- Parameters:
mountId
- Mount point identifiermountCtx
- Mount point context- Returns:
- A new NormalizedNodeStreamWriter
- Throws:
IOException
- if an error occurs
-