com.vaadin.server.communication
Class ResourceWriter

java.lang.Object
  extended by com.vaadin.server.communication.ResourceWriter
All Implemented Interfaces:
java.io.Serializable

public class ResourceWriter
extends java.lang.Object
implements java.io.Serializable

Serializes resources to JSON. Currently only used for CustomLayout templates.

Since:
7.1
Author:
Vaadin Ltd
See Also:
Serialized Form

Constructor Summary
ResourceWriter()
           
 
Method Summary
 void write(UI ui, java.io.Writer writer, JsonPaintTarget target)
          Writes a JSON object containing registered resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceWriter

public ResourceWriter()
Method Detail

write

public void write(UI ui,
                  java.io.Writer writer,
                  JsonPaintTarget target)
           throws java.io.IOException
Writes a JSON object containing registered resources.

Parameters:
ui - The UI whose resources to write.
writer - The Writer to use.
target - The JsonPaintTarget containing the resources.
Throws:
java.io.IOException


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.