|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.Base64InputStreamConsumer
public class Base64InputStreamConsumer
Basic slurp implementation of an InputStream Consumer which provides Base64 encoded output. Note that this reads the whole input into memory and should not be used for data that may grow big.
Constructor Summary | |
---|---|
Base64InputStreamConsumer(boolean chunked)
Creates this encoder. |
Method Summary | |
---|---|
void |
consume(InputStream element)
Consume the product. |
String |
getEncoded()
Gives the Base64 encoded String only if the consume method ran without exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64InputStreamConsumer(boolean chunked)
chunked
- whether you want a chunked Base64 encoded output.Method Detail |
---|
public void consume(@NotNull InputStream element)
Consumer
consume
in interface Consumer<InputStream>
element
- must not be nullpublic String getEncoded()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |