public class WorkspaceComponentDeserializer
extends java.lang.Object
Constructor and Description |
---|
WorkspaceComponentDeserializer() |
Modifier and Type | Method and Description |
---|---|
(package private) GuiComponent<?> |
deserializeDesktopComponent(java.lang.String className,
WorkspaceComponent component,
java.io.InputStream input,
java.lang.String name)
Deserializes a desktop component given a class, input stream and name.
|
(package private) WorkspaceComponent |
deserializeWorkspaceComponent(ArchiveContents.ArchivedComponent archivedComponent,
java.io.InputStream input)
Deserializes a workspace component using the information from the
provided component and input stream.
|
static WorkspaceComponent |
deserializeWorkspaceComponent(java.lang.Class<?> clazz,
java.lang.String name,
java.io.InputStream input,
java.lang.String format)
Deserialized a component for the given class, input and input format.
|
(package private) WorkspaceComponent |
getComponent(java.lang.String uri)
Returns the workspace component associated with the given uri.
|
WorkspaceComponent getComponent(java.lang.String uri)
uri
- The uri for the component to retrieve.WorkspaceComponent deserializeWorkspaceComponent(ArchiveContents.ArchivedComponent archivedComponent, java.io.InputStream input)
archivedComponent
- The component entry from the archive contents.input
- The input stream to read data from.public static WorkspaceComponent deserializeWorkspaceComponent(java.lang.Class<?> clazz, java.lang.String name, java.io.InputStream input, java.lang.String format)
clazz
- the class of the componentname
- the name of the componentinput
- the input streamformat
- the format of the dataGuiComponent<?> deserializeDesktopComponent(java.lang.String className, WorkspaceComponent component, java.io.InputStream input, java.lang.String name)
className
- The class name for the DesktopComponentcomponent
- The desktop component entry for the desktop component.input
- The input stream.name
- The name of the desktop component.