public class InMemoryDocument extends CommonDocument
absolutePath, base64EncodeDigestMap, mimeType, name| Constructor and Description |
|---|
InMemoryDocument() |
InMemoryDocument(byte[] bytes)
Creates dss document that retains the data in memory
|
InMemoryDocument(byte[] bytes,
String name)
Creates dss document that retains the data in memory
|
InMemoryDocument(byte[] bytes,
String name,
MimeType mimeType)
Creates dss document that retains the data in memory
|
InMemoryDocument(InputStream inputStream)
Creates dss document that retains the data in memory
|
InMemoryDocument(InputStream inputStream,
String name)
Creates dss document that retains the data in memory
|
InMemoryDocument(InputStream inputStream,
String name,
MimeType mimeType)
Creates dss document that retains the data in memory
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBase64Encoded() |
byte[] |
getBytes() |
InputStream |
openStream() |
void |
setBytes(byte[] bytes) |
getAbsolutePath, getDigest, getMimeType, getName, save, setAbsolutePath, setMimeType, setName, toString, writeTopublic InMemoryDocument()
public InMemoryDocument(byte[] bytes)
bytes - array of bytes representing the documentpublic InMemoryDocument(byte[] bytes,
String name)
bytes - array of bytes representing the documentname - the file name if the data originates from a filepublic InMemoryDocument(byte[] bytes,
String name,
MimeType mimeType)
bytes - array of bytes representing the documentname - the file name if the data originates from a filemimeType - the mime type of the file if the data originates from a filepublic InMemoryDocument(InputStream inputStream)
inputStream - input stream representing the documentpublic InMemoryDocument(InputStream inputStream, String name)
inputStream - input stream representing the documentname - the file name if the data originates from a filepublic InMemoryDocument(InputStream inputStream, String name, MimeType mimeType)
inputStream - input stream representing the documentname - the file name if the data originates from a filemimeType - the mime type of the file if the data originates from a filepublic InputStream openStream()
public byte[] getBytes()
public void setBytes(byte[] bytes)
public String getBase64Encoded()
Copyright © 2019. All rights reserved.