public class Base64InputStreamConsumer extends Object implements Consumer<InputStream>
Constructor and Description |
---|
Base64InputStreamConsumer(boolean chunked)
Creates this encoder.
|
Modifier and Type | Method and Description |
---|---|
void |
consume(InputStream element)
Consume the product.
|
String |
getEncoded()
Gives the Base64 encoded String only if the consume method ran without exception.
|
public Base64InputStreamConsumer(boolean chunked)
chunked
- whether you want a chunked Base64 encoded output.public void consume(@Nonnull InputStream element)
Consumer
consume
in interface Consumer<InputStream>
element
- must not be nullpublic String getEncoded()
Copyright © 2002-2019 Atlassian. All Rights Reserved.