|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.content.value.base.AbstractBlob
public abstract class AbstractBlob
This is the abstract base implementation of the Blob interface.
| Field Summary |
|---|
| Fields inherited from interface net.sf.mmm.content.value.api.Blob |
|---|
VALUE_NAME |
| Constructor Summary | |
|---|---|
AbstractBlob()
The constructor. |
|
| Method Summary | |
|---|---|
String |
getMimeType()
This method gets the mimetype of this file. |
long |
getSize()
This method gets the current size of this file. |
void |
streamData(OutputStream outStream)
This method writes the data of this BLOB to the given output stream. |
void |
writeData(InputStream inputStream,
boolean append)
This method writes the data from the give input stream to this BLOB. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.mmm.content.value.api.MutableBlob |
|---|
getWriteAccess |
| Methods inherited from interface net.sf.mmm.content.value.api.Blob |
|---|
getChecksum, getReadAccess, getRevision |
| Constructor Detail |
|---|
public AbstractBlob()
| Method Detail |
|---|
public void writeData(InputStream inputStream,
boolean append)
throws IOException
writeData in interface MutableBlobinputStream - is an input stream containing the data to write to this
BLOB.append - true if the data should be appended to the
BLOB, false if the BLOB should be overridden.
IOException - if the writing fails.
public void streamData(OutputStream outStream)
throws IOException
streamData in interface BloboutStream - is the stream where to write the data to.
IOException - if the streaming fails.public long getSize()
getSize in interface Blobpublic String getMimeType()
getMimeType in interface Blob
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||