public abstract class AbstractDetectorStream extends Object implements DetectorStream
DetectorStream
.Modifier and Type | Field and Description |
---|---|
private boolean |
done |
private Map<String,Object> |
metadata |
private Map<String,Object> |
mutableMetadata |
Constructor and Description |
---|
AbstractDetectorStream()
The constructor.
|
AbstractDetectorStream(Map<String,Object> mutableMetadata)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getMetadata()
This method gets the context with the detected metadata.
|
protected Map<String,Object> |
getMutableMetadata()
This method gets the mutable
Metadata . |
boolean |
isDone()
This method determines if the detection is done.
|
protected void |
setDone()
This method sets the
done flag. |
public AbstractDetectorStream()
public AbstractDetectorStream(Map<String,Object> mutableMetadata)
mutableMetadata
- is the initial mutable metadata
.public Map<String,Object> getMetadata()
DetectorStream
done
. Map
have a look at net.sf.mmm.util.metakey.api.MetakeyCore
.getMetadata
in interface DetectorStream
protected Map<String,Object> getMutableMetadata()
Metadata
.Metadata
-Map that is mutable.protected void setDone()
done
flag.public boolean isDone()
DetectorStream
true
. However the detection may be done before the end of the stream was reached (e.g.
because all metadata
comes from the header of the data).isDone
in interface DetectorStream
true
if the metadata has been completely been collected, false
otherwise.Copyright © 2001–2016 mmm-Team. All rights reserved.