|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectccs.cpc.impl.MimeBindery
class MimeBindery
| Constructor Summary | |
|---|---|
MimeBindery()
Creates an empty MIME bindery. |
|
| Method Summary | |
|---|---|
MimeBinding |
bindingForType(java.lang.String mimetype)
|
CodecBinding |
codecsForType(java.lang.String mimetype)
|
CodecBinding[] |
getCodecBindings()
Obtains the list of bindings. |
MimeBinding[] |
getMimeBindings()
Obtains the list of bindings. |
void |
loadDefault(ViewerRegistry vreg)
loads the default set of MIME bindings |
void |
marshalTo(java.io.DataOutputStream dest)
Marshals the MIME bindery onto the supplied stream. |
void |
register(CodecBinding cb)
Add a CodecBinding to the bindery. |
void |
register(MimeBinding mb)
Add a MimeBinding to the bindery. |
void |
unmarshalFrom(java.io.DataInputStream src,
int marshalver,
ViewerRegistry vreg)
Unmarshals the MIME registry from the supplied stream. |
void |
unregister(CodecBinding cb)
remove a CodecBinding from the registry. |
void |
unregister(MimeBinding mb)
remove a MimeBinding from the registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MimeBindery()
| Method Detail |
|---|
public MimeBinding bindingForType(java.lang.String mimetype)
public void register(MimeBinding mb)
throws java.lang.IllegalStateException
java.lang.IllegalStateException - If the type is already registered.
public void unregister(MimeBinding mb)
throws java.lang.IllegalStateException
java.lang.IllegalStateException - If the type is not registered here.public MimeBinding[] getMimeBindings()
public CodecBinding codecsForType(java.lang.String mimetype)
public void register(CodecBinding cb)
throws ccs.LoseException
ccs.LoseException - If the type is already registered.
public void unregister(CodecBinding cb)
throws ccs.LoseException
ccs.LoseException - If the type is not registered here.public CodecBinding[] getCodecBindings()
public void marshalTo(java.io.DataOutputStream dest)
throws java.io.IOException
dest - The stream to marshal onto.
java.io.IOException - If thrown by the stream.
public void unmarshalFrom(java.io.DataInputStream src,
int marshalver,
ViewerRegistry vreg)
throws java.io.IOException
src - The stream to unmarshal from.
java.io.IOException - If thrown by the stream.
public void loadDefault(ViewerRegistry vreg)
throws ccs.LoseException,
java.io.IOException
ccs.LoseException - If there is a conflict with any pre-existing types.
java.io.IOException - If there is an I/O failure during the load.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||