public class MergeObjectMapper extends Object
ObjectMapper
to allowing merging of InputStream
s.Constructor and Description |
---|
MergeObjectMapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
deserialize(NestedAttributesMapJsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext context,
com.fasterxml.jackson.databind.deser.std.MapDeserializer rootDeserializer) |
org.sonatype.nexus.common.collect.NestedAttributesMap |
merge(List<org.sonatype.nexus.common.io.InputStreamSupplier> inputStreams)
Same as
merge(List, Charset) but no Charset needed to be provided. |
org.sonatype.nexus.common.collect.NestedAttributesMap |
merge(List<org.sonatype.nexus.common.io.InputStreamSupplier> inputStreams,
Charset charset)
Merge the given
InputStreamSupplier s into a NestedAttributesMap . |
protected void |
merge(org.sonatype.nexus.common.collect.NestedAttributesMap result,
InputStream inputStream,
Charset charset)
Made available for implementers to have a handle on the result inbetween individual merges.
|
org.sonatype.nexus.common.collect.NestedAttributesMap |
read(InputStream inputStream)
Similar to
merge(List) but only for a single InputStream , allowing for the same manner
of parsing the output map as the merged ones. |
public org.sonatype.nexus.common.collect.NestedAttributesMap read(InputStream inputStream) throws IOException
merge(List)
but only for a single InputStream
, allowing for the same manner
of parsing the output map as the merged ones.inputStream
- InputStream
to parseIOException
public org.sonatype.nexus.common.collect.NestedAttributesMap merge(List<org.sonatype.nexus.common.io.InputStreamSupplier> inputStreams) throws IOException
merge(List, Charset)
but no Charset
needed to be provided.IOException
merge(List, Charset)
public org.sonatype.nexus.common.collect.NestedAttributesMap merge(List<org.sonatype.nexus.common.io.InputStreamSupplier> inputStreams, @Nullable Charset charset) throws IOException
InputStreamSupplier
s into a NestedAttributesMap
. The merging is done
according the order of the InputStreamSupplier
s which dictate which values will be considered
the dominant and preserved (the last is the most dominant) value.inputStreams
- List
of InputStreamSupplier
scharset
- Charset
used for changing from default UTF-8IOException
protected void merge(org.sonatype.nexus.common.collect.NestedAttributesMap result, InputStream inputStream, @Nullable Charset charset) throws IOException
result
- NestedAttributesMap
result of previous run merge'sinputStream
- InputStream
of the latest and therefor most dominant to be added to merge resultcharset
- Charset
used for changing from default UTF-8IOException
protected void deserialize(NestedAttributesMapJsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context, com.fasterxml.jackson.databind.deser.std.MapDeserializer rootDeserializer) throws IOException
IOException
Copyright © 2008–2021 Sonatype, Inc.. All rights reserved.