public class ContentStreamImpl extends AbstractExtensionData implements MutableContentStream
| Constructor and Description |
|---|
ContentStreamImpl()
Constructor.
|
ContentStreamImpl(String filename,
BigInteger length,
String mimetype,
InputStream stream)
Constructor.
|
ContentStreamImpl(String filename,
String mimetype,
String string)
Convenience constructor for tests.
|
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getBigLength() |
String |
getFileName() |
long |
getLength() |
String |
getMimeType() |
InputStream |
getStream() |
void |
setFileName(String filename) |
void |
setLength(BigInteger length) |
void |
setMimeType(String mimeType) |
void |
setStream(InputStream stream) |
String |
toString() |
getExtensions, setExtensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExtensions, setExtensionspublic ContentStreamImpl()
public ContentStreamImpl(String filename, BigInteger length, String mimetype, InputStream stream)
public String getFileName()
getFileName in interface ContentStreampublic void setFileName(String filename)
setFileName in interface MutableContentStreampublic long getLength()
getLength in interface ContentStreampublic BigInteger getBigLength()
getBigLength in interface ContentStreampublic void setLength(BigInteger length)
setLength in interface MutableContentStreampublic String getMimeType()
getMimeType in interface ContentStreampublic void setMimeType(String mimeType)
setMimeType in interface MutableContentStreampublic InputStream getStream()
getStream in interface ContentStreampublic void setStream(InputStream stream)
setStream in interface MutableContentStreampublic String toString()
toString in class AbstractExtensionDataCopyright © 2009–2017 The Apache Software Foundation. All rights reserved.