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 forCustomLayouttemplates.- 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 voidwrite(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- TheUIwhose resources to write.writer- TheWriterto use.target- TheJsonPaintTargetcontaining the resources.- Throws:
IOException
-
-