public class ContentStreamImpl extends AbstractExtensionData implements ContentStream
| 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()
Returns the length of stream.
|
String |
getFileName()
Returns the file name of the stream.
|
long |
getLength()
Returns the length of stream.
|
String |
getMimeType()
Returns the MIME type of the stream.
|
InputStream |
getStream()
Returns the stream.
|
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()
ContentStreamgetFileName in interface ContentStreamnull if the file name
is unknownpublic void setFileName(String filename)
public long getLength()
ContentStreamgetLength in interface ContentStream-1 if the
length is unknownpublic BigInteger getBigLength()
ContentStreamgetBigLength in interface ContentStreamnull if the
length is unknownpublic void setLength(BigInteger length)
public String getMimeType()
ContentStreamgetMimeType in interface ContentStreamnull if the MIME type
is unknownpublic void setMimeType(String mimeType)
public InputStream getStream()
ContentStreamgetStream in interface ContentStreampublic void setStream(InputStream stream)
public String toString()
toString in class AbstractExtensionDataCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.