Package com.vaadin.server.communication
Class ResourceWriter
- java.lang.Object
-
- com.vaadin.server.communication.ResourceWriter
-
- All Implemented Interfaces:
Serializable
public class ResourceWriter extends Object implements Serializable
Serializes resources to JSON. Currently only used forCustomLayout
templates.- Since:
- 7.1
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(UI ui, Writer writer, JsonPaintTarget target)
Writes a JSON object containing registered resources.
-
-
-
Method Detail
-
write
public void write(UI ui, Writer writer, JsonPaintTarget target) throws IOException
Writes a JSON object containing registered resources.- Parameters:
ui
- TheUI
whose resources to write.writer
- TheWriter
to use.target
- TheJsonPaintTarget
containing the resources.- Throws:
IOException
-
-