public class SceneZipEncoder extends SceneEncoder
message| 构造器和说明 |
|---|
SceneZipEncoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected java.util.List<MediaType> |
createSupportedMediaTypes()
创建支持的媒体类型,这里是 scenezip 类型。
|
Representation |
toRepresentation(MediaType mediaType, java.lang.Object content)
将 XML 字符串序列化为基于 DOM 的 XML 表述。
|
getSceneXMLgetSupportedMediaTypes, isEncodeAllowprotected java.util.List<MediaType> createSupportedMediaTypes()
创建支持的媒体类型,这里是 scenezip 类型。
即 SceneZipEncoder 支持将格式化的对象转换为什么媒体类型的表述。
createSupportedMediaTypes 在类中 SceneEncoder
public Representation toRepresentation(MediaType mediaType,
java.lang.Object content)
将 XML 字符串序列化为基于 DOM 的 XML 表述。
toRepresentation 在类中 SceneEncodermediaType - 欲序列化成的目标媒体类型。content - 欲序列化的源 XML 字符串。