public abstract class AbstractCotEventMarshal extends AbstractMarshal implements CotEventMarshal
contentType| Constructor and Description |
|---|
AbstractCotEventMarshal(java.lang.String contentType) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
accept(CotEvent event) |
java.lang.String |
marshal(CotEvent event) |
java.lang.String |
marshal(java.io.InputStream inputStream,
int probeSize)
Analyzes the specified stream to determine if it contains the content associated with this
Marshal. |
java.lang.String |
marshal(android.net.Uri uri)
Analyzes the data at the specified
Uri to determine if it contains the content
associated with this Marshal. |
getContentType, marshalUriAsStreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentType, getPriorityLevelpublic AbstractCotEventMarshal(java.lang.String contentType)
protected abstract boolean accept(CotEvent event)
public java.lang.String marshal(CotEvent event)
marshal in interface CotEventMarshalpublic java.lang.String marshal(java.io.InputStream inputStream,
int probeSize)
throws java.io.IOException
MarshalMarshal. If the stream does contain compatible content, the MIME type of the
stream is returned, otherwise null is returned.
Only the number of bytes specified by probeSize may be read from the stream
during analysis.
marshal in interface MarshalinputStream - A data streamprobeSize - The number of bytes that may be read from the streamnull
otherwise.java.io.IOException - If an IO error occurs while reading data from the streampublic java.lang.String marshal(android.net.Uri uri)
throws java.io.IOException
MarshalUri to determine if it contains the content
associated with this Marshal. If the Uri does contain compatible
content, the MIME type of the Uri is returned, otherwise null is
returned.