Base64Encoded, Blobpublic abstract class AbstractBlob extends Object
| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractBlob(org.glassfish.jersey.media.multipart.ContentDisposition contentDisposition) |
| Modifier and Type | Method | Description |
|---|---|---|
protected static byte[] |
fromFile(File file) |
|
protected static byte[] |
fromInputStream(InputStream is) |
|
protected static byte[] |
fromPath(Path path) |
|
Date |
getCreationDate() |
Get the creation date, if any, associated with this Blob
|
abstract byte[] |
getData() |
Get the contents of this Blob as a byte array
|
String |
getFileName() |
Get the name, if any, associated with this Blob
|
org.glassfish.jersey.media.multipart.FormDataContentDisposition |
getFormDataContentDisposition(String name) |
Create a FormDataContentDisposition suitable for submitting this Blob
as part of a multipart form submission
|
Date |
getModificationDate() |
Get the last modified date, if any, associated with this Blob
|
void |
toFile(File f) |
Write the contents of this Blob to a File
|
void |
toFile(Path p) |
Write the contents of this Blob to a File
|
InputStream |
toInputStream() |
Get an InputStream to read the contents of this Blob
|
protected AbstractBlob(org.glassfish.jersey.media.multipart.ContentDisposition contentDisposition)
public abstract byte[] getData()
public final void toFile(File f) throws IOException
f - File to write toIOException - If writing failspublic final void toFile(Path p) throws IOException
p - Path to write toIOException - If writing failspublic final InputStream toInputStream()
public final String getFileName()
public final Date getCreationDate()
public final Date getModificationDate()
public final org.glassfish.jersey.media.multipart.FormDataContentDisposition getFormDataContentDisposition(String name)
name - Name of the blob fieldprotected static byte[] fromFile(File file) throws IOException
IOExceptionprotected static byte[] fromPath(Path path) throws IOException
IOExceptionprotected static byte[] fromInputStream(InputStream is) throws IOException
IOExceptionCopyright © 2021. All rights reserved.