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, setExtensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExtensions, setExtensions
public ContentStreamImpl()
public ContentStreamImpl(String filename, BigInteger length, String mimetype, InputStream stream)
public String getFileName()
ContentStream
getFileName
in interface ContentStream
null
if the file name
is unknownpublic void setFileName(String filename)
public long getLength()
ContentStream
getLength
in interface ContentStream
-1
if the
length is unknownpublic BigInteger getBigLength()
ContentStream
getBigLength
in interface ContentStream
null
if the
length is unknownpublic void setLength(BigInteger length)
public String getMimeType()
ContentStream
getMimeType
in interface ContentStream
null
if the MIME type
is unknownpublic void setMimeType(String mimeType)
public InputStream getStream()
ContentStream
getStream
in interface ContentStream
public void setStream(InputStream stream)
public String toString()
toString
in class AbstractExtensionData
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.