| Modifier and Type | Method and Description |
|---|---|
static Blob |
compress(Blob blob)
Gets a
Blob that is blob compressed. |
static Blob |
from(InputStream inputStream) |
static Blob |
from(JsonTemplate template) |
static Blob |
from(Path file) |
static Blob |
from(String content)
Creates a
StringBlob with UTF-8 encoding. |
static Blob |
from(WritableContents writable) |
static byte[] |
writeToByteArray(Blob blob)
Writes the BLOB to a byte array.
|
static String |
writeToString(Blob blob)
Writes the BLOB to a string with UTF-8 decoding.
|
public static Blob from(InputStream inputStream)
public static Blob from(JsonTemplate template)
public static Blob from(String content)
StringBlob with UTF-8 encoding.content - the string to create the blob fromStringBlobpublic static Blob from(WritableContents writable)
public static String writeToString(Blob blob) throws IOException
blob - the BLOB to writeIOException - if writing out the BLOB contents failspublic static byte[] writeToByteArray(Blob blob) throws IOException
blob - the BLOB to writeIOException - if writing out the BLOB contents failsCopyright © 2019. All rights reserved.