Class 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

      Constructors 
      Constructor Description
      ResourceWriter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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