|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dasein.media.MultiIngester
public class MultiIngester
| Field Summary |
|---|
| Fields inherited from interface org.dasein.media.Ingester |
|---|
EXTENSION, HEIGHT, WIDTH |
| Constructor Summary | |
|---|---|
MultiIngester(Ingester first,
Ingester second)
|
|
| Method Summary | |
|---|---|
void |
add(Ingester ing)
|
void |
clear()
Clears the ingester to handle a new media stream. |
Map<String,Object> |
getMetaData()
Provides the meta-data associated with the last ingested media asset. |
MimeType |
getMimeType()
|
long |
getSize()
If the ingest process requires multiple passes in order to determine file size, this method should return -1 to allow the requesting application to determine size on its own. |
void |
ingest()
Performs an ingest of the specified stream. |
void |
setInput(InputStream is)
Sets an input stream to be ingested. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiIngester(Ingester first,
Ingester second)
| Method Detail |
|---|
public void add(Ingester ing)
public void clear()
Ingester
clear in interface Ingesterpublic Map<String,Object> getMetaData()
Ingester
getMetaData in interface Ingesterpublic MimeType getMimeType()
getMimeType in interface Ingesterpublic long getSize()
Ingester
getSize in interface Ingester
public void ingest()
throws InvalidMediaTypeException,
IOException
Ingester
ingest in interface IngesterInvalidMediaTypeException - the media in the input stream
is not one supported by this ingester
IOException - an error occurred reading the input streampublic void setInput(InputStream is)
IngesterIngester.clear() method to clear out any information from a previous
ingest.
setInput in interface Ingesteris - the input stream to be ingested
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||