public class IonHashWriterBuilder extends Object
IonHashWriter for the given IonWriter and IonHasherProvider.
Instances of this class are not thread-safe.| Modifier and Type | Method and Description |
|---|---|
IonHashWriter |
build()
Constructs a new IonHashWriter, which decorates the IonWriter with hashes.
|
static IonHashWriterBuilder |
standard()
The standard builder of
IonHashWriterBuilders. |
IonHashWriterBuilder |
withHasherProvider(IonHasherProvider hasherProvider)
Specifies the hash function implementation to use.
|
IonHashWriterBuilder |
withWriter(com.amazon.ion.IonWriter writer)
Specifies the stream writer to compute hashes over.
|
public static IonHashWriterBuilder standard()
IonHashWriterBuilders.public IonHashWriterBuilder withWriter(com.amazon.ion.IonWriter writer)
public IonHashWriterBuilder withHasherProvider(IonHasherProvider hasherProvider)
public IonHashWriter build() throws IOException
IOException